> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/dynamic-components/build-with-ai/prompt-library.md).

# Prompt Library

Copy-paste prompts for building Dynamic Components with your AI assistant, organized by goal.

{% hint style="warning" %}

#### 🚧 **Early access**

Build with AI is rolling out gradually and improving with every release. Something unclear, missing, or broken? [Tell us](/dynamic-components/resources/contact-support.md): your feedback directly shapes what we improve next.
{% endhint %}

Every prompt on this page is ready to paste into Claude, Cursor, or GitHub Copilot once your assistant is set up. Copy one, swap in your own objects and fields, and send. The assistant verifies every component and property against the MCP server before generating, so you can be ambitious.

{% hint style="info" %}
**How to adapt a prompt:** replace the objects (`Account`, `Case`, `Opportunity`) and groupings with yours, and describe the outcome you want. You don't need to name properties or settings: the assistant looks up what exists and configures it.
{% endhint %}

## Record page essentials

Components that give a record page its core information at a glance.

> Create a Dynamic Component for the Account record page showing a Data Table of the account's open Cases with inline editing.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FGgffE8eAiYAhlc8X4lpU%2Fprompt-01-cases-table.png?alt=media" alt="A Data Table of five open cases with case number, subject, priority, status, contact and opened date, one subject cell showing its edit pencil"><figcaption><p>Open cases on the account. <strong>Subject</strong>, <strong>Priority</strong> and <strong>Status</strong> are editable in place: hover a cell and the pencil appears.</p></figcaption></figure>

> Build a component with a Map of the account's billing address and an Avatar with the account owner's details.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FzJQWupMMw3bqv8zcadDm%2Fprompt-02-map-owner.png?alt=media" alt="A map pinned on a billing address in San Francisco, with the account owner&#x27;s avatar and details beside it"><figcaption><p>The billing address on a map, the account owner beside it.</p></figcaption></figure>

> Add an Activity Timeline of the record's recent Tasks and Events.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FGfYhsQWDSxbqvu1mNRjY%2Fprompt-03-activity-timeline.png?alt=media" alt="A vertical activity timeline grouped by week, mixing task and event entries with their dates"><figcaption><p>Tasks and events on one timeline, grouped by week, most recent first.</p></figcaption></figure>

## Dashboards and metrics

Turn Salesforce data into something the team actually looks at.

> Build a dashboard component with a Chart of Opportunities by stage and a Pivot Table of revenue by region and quarter.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FUr7GzUQ9VTzPd3uSb0E6%2Fprompt-04-dashboard.png?alt=media" alt="A horizontal bar chart of pipeline amount by stage above a pivot table of revenue by billing state and quarter"><figcaption><p>Both halves of the dashboard: amount by stage above, revenue by region and quarter below, with a grand total.</p></figcaption></figure>

> Create a component showing this month's closed-won Opportunities in a List, sorted by amount.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FAVgehfcW78RwOtSuAVW3%2Fprompt-05-list-closed-won.png?alt=media" alt="A list of four closed-won opportunities showing amount and owner, ordered from largest to smallest"><figcaption><p>This month's closed-won opportunities, largest amount first.</p></figcaption></figure>

## Team productivity

Working views for people who live in Salesforce all day.

> Create a Kanban of my team's Opportunities grouped by stage, with drag and drop between columns.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FfEN3Y2f6AcMvG8xDaUFN%2Fprompt-06-kanban-pipeline.png?alt=media" alt="A kanban board of opportunities in five stage columns, each column headed with its record count"><figcaption><p>Opportunities grouped by stage. Cards drag between columns to move a deal.</p></figcaption></figure>

> Build a List of today's new Leads with a button on each row that opens the record.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FpqQqgncR17FJir4ZLFC3%2Fprompt-07-list-leads.png?alt=media" alt="A list of four new leads, each row showing source and rating with an Open button on the right"><figcaption><p>Every row carries its own <strong>Open</strong> action.</p></figcaption></figure>

> Create a Repeater of my open Tasks displayed as cards, ordered by due date.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FDvteD844cQqUkUvKIKaC%2Fprompt-08-repeater-tasks.png?alt=media" alt="A grid of eight task cards, each with a green task icon, a bold subject, a dated due line and a colour-coded status"><figcaption><p>One card per open task, soonest due date first. Each status carries its own icon and color: blue for in progress, grey for not started, orange for waiting.</p></figcaption></figure>

## Look and feel

Styling requests work in plain language too.

> Restyle my component to match our brand: white cards, rounded corners, and our primary color on buttons.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F3JI9PuMhCFZs5T2tcHcF%2Fprompt-09-restyle.png?alt=media" alt="Two versions of the same account component side by side, the left one unstyled and the right one on a white rounded card with a dark blue button"><figcaption><p>The same component before and after the restyle: white card, rounded corners, and the brand color on the button.</p></figcaption></figure>

> Make the Data Table denser and add a search bar.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FP1iTbKQOhmpjkm3LixPg%2Fprompt-10-table-dense-search.png?alt=media" alt="The same open cases table with a search box above it and noticeably tighter rows"><figcaption><p>The same table with a search bar above it and tighter rows.</p></figcaption></figure>

## Complete use cases

When a request spans several artifacts, `avonni-architect` plans and builds all the pieces in the right order.

> Create a screen flow for logging a customer visit, and a Dynamic Component with a button on the record page that launches it.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FQR08qAmZlmdyhFNlVfTE%2Fprompt-11-launch-flow.png?alt=media" alt="An account card showing last visit, visited by and visits this quarter, with a Log a visit button"><figcaption><p>The record-page component. Its <strong>Log a visit</strong> button launches the screen flow the same prompt asks for.</p></figcaption></figure>

> Build a case management component with a Kanban of Cases, plus a screen flow to escalate a case that opens from each card.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F0XuqAgTb7dFLPHDpZpBn%2Fprompt-12-cases-kanban.png?alt=media" alt="A kanban board of cases in four status columns, with an open card menu showing an Escalate action"><figcaption><p>Cases by status. <strong>Escalate</strong> sits on each card's menu, and opens the escalation flow.</p></figcaption></figure>

***

## Make these prompts yours

* **Name real objects and fields.** "A Data Table of `Invoice__c` records filtered on `Status__c = 'Overdue'`" beats "a table of invoices".
* **Iterate in the same conversation.** Follow up with "make the columns sortable" or "change the grouping to owner": the assistant updates the same component.
* **Chain goals.** Start with the component, then ask for the flow it should launch. The architect keeps the pieces wired together.

{% hint style="success" %}
Not set up yet? The whole thing takes a few minutes: [Setup](/dynamic-components/build-with-ai/setup.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/dynamic-components/build-with-ai/prompt-library.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
