> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/setting-up-guide/ai-agent/getting-started.md).

# Getting Started

Get Started with Ai Agents

### Add AI Agent to a flow

1. Open[ **Flow Builder**.](https://app.pickyassist.com/flows?flow)
2. Open an existing chatbot flow or create a new one.
3. Drag **AI Agent** onto the canvas. You can also right-click the canvas and select **AI Agents**.
4. Connect the AI Agent to the required flow steps.
5. Select the block and choose **Configure Agent**.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FkmQuiqOmFm6r36ifnXbV%2Fezgif.com-video-to-gif-converter%20(7).gif?alt=media&amp;token=de65315d-f8f8-456f-a119-bf17955016cb" alt=""><figcaption></figcaption></figure>

### Configure instructions

The **Instructions** tab defines the agent's behaviour. Select an AI persona, then define:<br>

* What the agent should do.
* What the agent should never do.
* When the conversation should be marked as completed.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FLOMhEHUeD6kHQ0E9SvB3%2Fenhance_1kyldbhuvwshwsuo8f6k.png?alt=media&amp;token=3758eaf7-03d1-45d1-8780-a26cbc1024c3" alt=""><figcaption></figcaption></figure>

#### Select an AI persona

Choose a persona that matches your use case. Common options include:

* Sales Assistant
* FAQ / Support
* Lead Qualification

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FZ5L2R096SkJerErXUPga%2Fenhance_gta5pfc4vv94bhxmz32y.png?alt=media&amp;token=e509c928-ed10-4a0b-ac62-37599ca413b1" alt=""><figcaption></figcaption></figure>

Selecting a persona gives you a starting instruction template. You can customize it for your business.

{% hint style="info" %}
Changing a customized agent's persona does not overwrite its instructions automatically. Choose whether to use the new template or keep your existing instructions.
{% endhint %}

#### Instruction fields

| Field                                                   | Purpose                                                                                      |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| What should it do?                                      | Define the agent's tasks, greeting, questions, responses, and conversation handling.         |
| What should it never do?                                | Define restrictions, such as avoiding promises, guesses, and unsupported information.        |
| When should the AI mark this conversation as completed? | Define when the conversation reaches the **Completed** path and moves to the next flow step. |

### Build the Knowledge Base

The **Knowledge** tab contains information the AI Agent can use in customer responses.<br>

You can provide information through:

1. **Add Information**
2. **Upload Documents**
3. **Products & Services**\
   \ <br>

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2F6aq9zMuYR016pGVXlGu5%2Fimage.png?alt=media&amp;token=b8de1e78-8fcb-4654-b609-eee3c7930124" alt=""><figcaption></figcaption></figure>

**Add Information**

Add short, text-based topics that the AI Agent can reference.

For best results:

* Keep each topic focused on one subject.
* Keep topics below approximately 2,500 characters.
* Split long content and large tables into separate topics.
* Avoid duplicate or conflicting information.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FiOpICqUNUbx2axTnrDzo%2Fimage.png?alt=media&amp;token=7720d0f5-9674-4d95-bcf9-5751154b5343" alt=""><figcaption></figcaption></figure>

For example, use separate topics for **Course Details**, **Course Fees**, **Batch Timings**, **Admission Process**, and **Refund Policy**.

**Upload Documents**

Upload supported documents when the agent needs large reference files.

Supported formats include `PDF`, `DOC`, `DOCX`, `XLS`, `XLSX`, `PPT`, `PPTX`, and `TXT`.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FO0Xz3CLeJia2a7YjBUlf%2Fimage.png?alt=media&amp;token=327d1a1d-c2c5-453f-ad32-82e09facf5ed" alt=""><figcaption></figcaption></figure>

You can upload up to two PDFs per agent. Each document can be up to 15 MB.

{% hint style="warning" %}
Document processing can cost up to 10× more per response. Use **Add Information** for smaller content. Keep uploaded documents accurate and current.
{% endhint %}

**Products & Services**

Products and services let the AI Agent present your offerings in conversations.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FuxEDTf5UR89ShefniWnM%2Fimage.png?alt=media&amp;token=9641f957-4509-4405-8131-058fe94ceffe" alt=""><figcaption></figcaption></figure>

Add catalog entries in either mode:

* **Manual** — Enter product or service details directly.
* **Dynamic** — Fetch details from a configured data source.

Both modes create entries the agent can present and reference.

{% hint style="info" %}
Add only information the agent should use. If information is unavailable, instruct it to decline politely or hand off the conversation.
{% endhint %}

**Add dynamic Knowledge Base or product data**

Use Attributes to pass dynamic knowledge and product details to the AI Agent.

For example, pass a previous AI conversation summary as context. You can also pass Picky Assist CRM fields, such as requirements and notes.

To fetch CRM data, add a **Data Lookup** step before the AI Agent. Use the **Search** option, then pass the result through Attributes.

To use third-party data, add an **HTTP API** block before the AI Agent. Pass the API response to the Knowledge Base through Attributes.

{% hint style="warning" %}
The built-in Test Widget may not support dynamic data. Publish the flow and test the live flow to verify dynamic responses.
{% endhint %}

### Collect and extract data

The **Collect & Extract Data** tab lets the agent collect customer details and extract data from customer content.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FrV82yj8i3DkDZBvaaqUK%2Fimage.png?alt=media&amp;token=0548bbab-d9c1-438d-9a8c-f04dbc698fa7" alt=""><figcaption></figcaption></figure>

**Data fields to collect**

Data fields are details that the AI Agent actively asks the customer to provide.\
Click **Add a Field** to add the necessary fields for collecting information from customers.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FulyLYTex6hqoolbuT7P3%2Fezgif.com-video-to-gif-converter%20(8).gif?alt=media&amp;token=763e1bad-30d3-4ec2-a76b-07410c0cff33" alt=""><figcaption></figcaption></figure>

Examples include:

* Name,Email,Mobile,Date.

When adding a field, select the appropriate field type based on the information you want to collect from the customer.

**Text:** Collects text-based information such as name, address, or preferences.

**Number:** Collects numerical values such as age, quantity, or budget.

**Phone:** Collects the customer's phone number.

**Image:** Allows customers to upload an image.

**Email:** Collects the customer's email address.

**Date:** Allows customers to provide or select a date.

**Buttons:** Provides predefined options that customers can select with a tap.

**Document:** Allows customers to upload a supported document or file.

Configure up to 15 fields per AI Agent. Mark a field as **Required** only when the agent must collect it before completing the conversation.

{% hint style="info" %}
Use required fields sparingly. Keep questions to three or four when possible, or customers may stop responding.
{% endhint %}

**Extract data**

Extract data fields let the AI Agent identify information from messages, documents, and images automatically.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FBudy8pTeOBfiLLnactxD%2Fezgif.com-video-to-gif-converter%20(9).gif?alt=media&amp;token=1e5e2c08-f4ad-4b48-b18b-130d1bf7eed1" alt=""><figcaption></figcaption></figure>

For example, an uploaded certificate can provide:

* Name
* Qualification
* Year of completion
* Institution

The agent stores extracted values in their matching Attributes. Use them to update Picky Assist CRM or send values to an external CRM through the [**HTTP API**](/setting-up-guide/setting-up-flow-builder/steps/trigger-http-api.md) block.

Unlike Collect fields, Extract fields do not need a separate question for each value.

{% hint style="warning" %}
Configure extraction fields that match the information customers are expected to provide.
{% endhint %}

**Use Attributes in later steps**

Attributes store data collected or extracted by the AI Agent. This includes customer answers and data from documents or images.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FmiK3hB3ndoiwwGc2E5sQ%2Fezgif.com-crop.gif?alt=media&amp;token=b3562e33-a4ea-4914-a53f-1fabb5b5a034" alt=""><figcaption></figcaption></figure>

The configured Attribute name becomes available in later flow steps. Use it to update Picky Assist CRM, define conditions, or personalize messages.

#### **Pushing Collected or Extracted Data to 3rd-Party Platforms**

To send collected or extracted information to third-party platforms such as CRM or ERP systems, use the [Trigger HTTP API](/setting-up-guide/setting-up-flow-builder/steps/trigger-http-api.md) step in the flow and map the relevant Attributes to the corresponding fields in the API request.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2F66E6VfhqckKbq8ylRzfq%2Fimage.png?alt=media&amp;token=d2326734-f585-4376-bc4e-7a110acb8922" alt=""><figcaption></figcaption></figure>

### Configure handoff

The **Handoff** tab transfers a conversation to a human agent or another AI Agent when the specified conditions are met.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FiudsAW9ieUMUpZDDWNUN%2Fezgif.com-video-to-gif-converter%20(10).gif?alt=media&amp;token=bbd274e3-f32d-4e92-8d17-8e8ef5206b60" alt=""><figcaption></figcaption></figure>

**To add a Handoff path**

* Enter a **Path Name** to identify the purpose of the handoff, such as humen handoff or sales team .
* **Trigger this when**, specify the condition that should trigger the handoff. \
  For example, when the customer requests to speak with a humen agent

You can configure up to 10 handoff paths. A path can trigger when a customer message contains a configured keyword or phrase.

Connect each handoff output to its required next flow step.

{% hint style="warning" %}
Test the complete handoff flow after publishing. Confirm that every configured action runs correctly.
{% endhint %}

{% hint style="success" %}
You can hand off to another AI Agent. Specialized Sales, Support, and Billing agents can share the conversation context.
{% endhint %}

### Configure follow-up

The **Follow-up** feature sends messages when a customer stops responding.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FNIqeygLeWnYD1bqHdrpV%2Fezgif.com-video-to-gif-converter%20(11).gif?alt=media&amp;token=2050c8bc-98b4-4681-ade4-4deab7a9a2de" alt=""><figcaption></figcaption></figure>

You can configure a **follow-up** by specifying

**Send After :** Specify how long the AI Agent should wait before sending the follow-up message.

**Instructions :** Provide instructions for the AI Agent on what to include in the follow-up message and how it should respond based on the conversation.

You can configure up to three follow-up messages.

{% hint style="info" %}
Keep follow-ups short, relevant, and helpful. Avoid repeated messages sent too frequently. Follow-up works only during the 24-hour free-form session and suits sales-focused agents.
{% endhint %}

### Configure settings

The **Settings** tab controls the AI provider, model, file and image processing, reasoning, conversation limits, and related behavior.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FVde9bkOr5gagcWT4xuKm%2Fimage.png?alt=media&amp;token=fb490a4e-0942-434b-ac16-5393d08fb0a7" alt=""><figcaption></figcaption></figure>

Configure how your AI Agent responds, processes customer inputs, and manages conversations using the following settings.

**AI Provider**\
Select the AI provider, such as ChatGPT or Gemini.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2F0wO0gk3sw1TSKV7fp8Q4%2Fimage.png?alt=media&amp;token=b60e453e-e608-4397-bfcf-b7fa7febdd9d" alt=""><figcaption></figcaption></figure>

**Enable Reasoning:** Enables additional reasoning for supported models. This can improve the handling of complex decisions but may increase response time and cost.

{% hint style="info" %}
Enable reasoning only for complex, multi-step decisions. Standard models suit straightforward questions and data collection.
{% endhint %}

**Model**\
Select a model from the chosen AI provider. Recommended models are GPT-4o Mini and Gemini 3.1 Flash Lite (Stable).

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FmqRVHY62ABiwoTPHWe4z%2Fimage.png?alt=media&amp;token=b5114492-a441-410c-a904-1c101c17eeed" alt=""><figcaption></figcaption></figure>

**Messaging**\
When enabled, the AI can use interactive buttons, list menus, and product carousels, allowing customers to select options with a tap instead of typing.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2F6KhOCWI1mREZw5UjEUtO%2Fimage.png?alt=media&amp;token=1cc58951-c4e6-4beb-ba4f-16226d0ab92c" alt=""><figcaption></figcaption></figure>

**Read & Process Files & Images** \
Allows the AI Agent to process supported files and images shared by customers.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FgZqBCgGVK50YIFzuTJFh%2Fimage.png?alt=media&amp;token=3b53ad37-7f11-471e-9ba1-f0515ac77245" alt=""><figcaption></figcaption></figure>

Enable this option to allow the AI Agent to read and process supported files and images shared by customers.The maximum file size is limited to 10 MB.

**Summarize the Conversation**\
Generates a summary of the conversation as an Attribute. You can save it to the CRM, pass it to external software, or use it as context for another AI Agent.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FKcYLTuccklhngN82BCZP%2Fimage.png?alt=media&amp;token=77d071cf-acf9-49b4-9b5f-19c39031b59c" alt=""><figcaption></figcaption></figure>

**Conversation Limit**&#x20;

Ends the conversation when the configured message limit is reached or a specified keyword is detected.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FipVTTS0VwbZ8eMxDRaIF%2Fimage.png?alt=media&amp;token=8028a447-0a59-41b1-887a-e1b662607099" alt=""><figcaption></figcaption></figure>

Use **Conversation Limit** to control when the AI Agent should automatically end a conversation.

**End the conversation after this many customer messages:** Set the maximum number of messages the customer can send while the AI Agent is active. Once the limit is reached, the conversation will be ended automatically.

**End if no reply for:** Set a time limit for customer inactivity. If the customer does not reply within the configured time, the AI Agent will automatically end the conversation.

**End the conversation when the customer sends any of these keywords:** Add specific keywords that indicate the customer wants to end the conversation. eg:- stop,cancel.

### Test AI Agents

Open **Test Agent** from **Configure Agent**, or select **Via TestBot** on the flow canvas. Have a real conversation with your configuration.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FaQo4sZOsP7sebUTRlRlQ%2Fscreen11.jpg?alt=media&amp;token=11408eaf-6422-4f4f-b5be-d7b8a1944106" alt=""><figcaption></figcaption></figure>

The test panel shows the active model, cost per turn, and token breakdown.

| Metric           | Meaning                                                                                                      |
| ---------------- | ------------------------------------------------------------------------------------------------------------ |
| Input tokens     | Everything sent to the model, including Instructions, Knowledge Base, data schema, and conversation history. |
| Output tokens    | The length of the agent response. Detailed responses cost more.                                              |
| Reasoning tokens | Extra billed tokens the model uses before answering.                                                         |
| Time             | The model generation time for that turn.                                                                     |

{% hint style="info" %}
WhatsApp delivery typically adds two to four seconds beyond the Test Agent time. This is normal delivery overhead and does not affect AI cost.
{% endhint %}

**Estimate AI cost**

Each AI Agent reply is billed by the selected provider based on processed and generated content.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2FjgtStvoxEAIInvximlfv%2Fenhance_uwux9rwvluagaoix2qus.png?alt=media&amp;token=240a4e32-2864-485f-9c77-89825966be9c" alt=""><figcaption></figcaption></figure>

Use the Test Widget to review cost estimates for your configuration.

### Save and publish

1. Select **Save** in the **Configure Agent** window.
2. Save the flow in Flow Builder.
3. Select **Validate & Publish**.
4. Select **Publish Now** to make the flow live.

<figure><img src="https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlJChpzcxtwOYGcBd1q%2Fuploads%2F2b7RYtT8oGWzwQPfCYjk%2Fezgif.com-video-to-gif-converter%20(12).gif?alt=media&amp;token=e2950920-765c-443c-95e0-e35e1bdba358" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.pickyassist.com/setting-up-guide/ai-agent/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
