On this page
The AI Agent step lets an AI run a whole customer conversation inside a flow. On every customer message it decides what to send, using only the tools, files, forms and links you allow, and when the conversation is finished it leaves through the exit you chose. This guide covers adding the step, what each setting controls, and how to test it before a customer sees it.
AI Agent step: first 5 of 7 steps
- 1Start from the template, or add the
- 2Write the goal and persona
- 3Choose what it may use
- 4Add the material behind the tools
- 5Define the exits
Before you start
- The step is on every plan, including Free, and runs on AI credits. Each customer message the agent answers is one AI reply and costs 10 AI credits, with 1,000 free each month. See how AI credits work.
- It answers on VGraple AI by default, with no key to add. To use your own provider key, see bring your own AI key.
- Add your business knowledge first (a pasted article, a web page, or question and answer pairs) so the agent has something true to say. See the AI chatbot guide for knowledge sources.
- If the agent should share forms, contact cards, files, templates or products, have them ready: a published WhatsApp form, a saved contact card, uploaded files, approved text templates, a connected product catalog.
Steps
- Start from the template, or add the step yourself. On the Flows page, choose Start with an AI Agent. It creates a normal flow in which any message starts the agent, Handoff and Fallback lead to a Human Handoff step, and Completed and Timeout end the flow. You can edit it like any other flow. Or open a flow, click Add step and choose AI Agent.
- Write the goal and persona. In Goal and persona, say who the agent is, what it should achieve in this conversation and how it should speak. For example: you are the studio's assistant, help the customer pick a service, answer from our knowledge, and book them in.
- Choose what it may use. Under Knowledge, pick the knowledge base, and switch on Answer business questions only from knowledge and the catalog if it should never answer from general knowledge. Under Tools, switch on what the agent may do, and add optional guidance for any tool in a few words.
- Add the material behind the tools. Tick the forms the agent may open, the contact fields it may fill in, the contact cards it may share, the files it may send, the templates it may use when the 24 hour window is closed, and the catalog for product messages. Under Allowed link domains, list the websites it may link to, such as your booking page.
- Define the exits. Completed is always there, and you can add your own, each with a line saying when to take it, such as "the customer confirmed a budget and a date". Handoff, Timeout and Fallback are always present. Connect each exit to the next step.
- Set the limits. Choose Max customer turns, the Reply timeout (hours), an optional Disclosure line that is sent before the first reply, and how long to wait before repeating it. Pick the Frustration sensitivity and the Message when the AI is unavailable.
- Test it. Click Test on the step. The flow is saved and a test chat opens, where you type as a customer and see the agent's replies rendered as WhatsApp messages. Nothing is sent to anyone and nothing is charged.
Text or buttons
Buttons and lists are for questions with a few short options to pick from. The agent is told to write plans, inclusions, prices, gear and steps as text.
How the agent reads your knowledge
When a customer asks something about your business, the agent searches the knowledge base you chose and reads what it finds before it answers.
- It reads whole passages. A long passage is never cut short, so a day by day plan or a price list written near the end of a passage reaches the agent in full.
- A search reads up to about 3,000 tokens of your knowledge. If an article is longer than that, the agent knows which parts it has not read and can search once more with the same subject; the second search continues with the next parts of the same article instead of repeating the first ones.
- For a long article, write the headings the way a customer would ask: "Day 1", "Day 2", "What is included", "Price". Each heading starts a new part of the article, and the agent sees the part it is reading ("part 3 of 9").
- If you add a line to your Goal and persona such as "When a customer asks for the full programme, give one line per day", the agent follows it; the tool itself already tells the agent to write what fits one message.
If a customer asks for something your knowledge does not contain, the agent says it does not have that detail and offers a person, and the question appears in the knowledge gaps list in Settings, Chat Widget. A search that only finds what the agent already read in this conversation is not a gap: the agent is told nothing new matched.
Keep the records without replying
Some teams answer every customer themselves but still want the agent's record keeping. Switch off Replies to the customer at the top of the step. The agent then works silently:
On each customer message it reads the conversation and only uses the record-keeping tools: save a lead, request an appointment, update the contact, fill the contact fields you tick, and store values for later steps.
It never sends anything to the customer: no reply, no disclosure line, no message when the AI is unavailable, not even a typing indicator.
It keeps working when someone in your team replies, from the Inbox or from the WhatsApp Business app. Your other steps and flows, such as a welcome message before it or a follow-up sequence, run as usual.
It keeps listening until one of your own exits clearly fits, the customer stays quiet for the reply timeout (Timeout), or the customer asks for a person (Handoff, which alerts your team). If your team is already answering that chat, the flow stops at the step instead of moving on, so no later step talks over the person.
Each customer message it reads costs 10 AI credits, the same as a reply.
It hears every customer message, including messages that arrive while it is busy with the one before and messages that another flow is answering at the same moment, such as a reminder waiting for a reply.
To send a Welcome message and reminders next to it, use two flows: in the first, Trigger, then the Welcome message, then the AI Agent with Replies to the customer off; in the second, a flow that starts when the customer goes quiet and sends the reminders (see follow up when a customer goes quiet). A customer reply ends the reminders, and the AI Agent keeps recording.
The Pause AI button in the conversation header stops it, like any other automation.
What you will see
In a live conversation the agent's messages appear in the Inbox with the flow's Auto badge. Select Why beside one to see what the agent did on that turn: the tools it used, what each returned, and which exit it chose. On the Flows page, a flow with an AI Agent step has an Insights link showing conversations, how they ended, handoff and fallback rates, and reply time over 7, 30 or 90 days.
AI suggestions, summaries, the AI Agent and chatbots never read a message that was deleted for everyone, deleted from your inbox, failed to send, or is waiting for your automated message delivery window. A reply AI already sent before a message was deleted is not changed. If a customer deletes a message while the agent is still talking to them, the agent stops reading it from their next message on.
Questions outside your business
The agent only helps with your business. The platform adds a rule after your Goal and persona and your knowledge, because Meta's WhatsApp Business policy allows AI only as part of your own service: a request unrelated to your business, such as general knowledge, homework, coding or an essay, gets a one-sentence decline and a question about what the customer needs from you, with no tool called and no hand-off. Greetings, small talk and questions a customer would naturally ask while buying from you stay in scope. The rule cannot be switched off from the step, and an instruction in Goal and persona to answer anything does not widen it. An agent that works silently only records what concerns your business.
Settings and options
| Setting | What it does |
|---|---|
| Replies to the customer | On, the agent answers the customer. Off, it works silently and only keeps the records |
| Goal and persona | The agent's role, aim and tone. This is its main instruction. When it works silently, say what to record |
| AI connection | VGraple AI by default, or your own provider key from Settings, then AI |
| Knowledge | Which knowledge base the agent searches, and whether it may answer business questions from anything else |
| Tools | Ask with buttons or a list, send a link button, send products, request a location, search knowledge, search the catalog, save a lead, request an appointment, update the contact, store a value for later steps. Hand off to a person and Exit are always on |
| Forms, contact cards, files, templates, catalog | The only items of each kind the agent may send. If you tick none, it cannot send that kind |
| Allowed link domains | Websites the agent may link to. Links to any other site are removed before sending. A map, short or share link (Google Maps, Drive, bit.ly, YouTube and similar) is also sent only when it is written out in full in your knowledge, your instructions or the customer's message |
| Exits | Where the flow goes when the conversation ends: Completed and your own exits, plus Handoff, Timeout and Fallback |
| Max customer turns | After this many customer messages the agent leaves through Fallback so the flow can hand off |
| Reply timeout (hours) | How long the agent waits for the customer before leaving through Timeout |
| Disclosure line | An optional first line telling the customer they are talking to an AI, with a setting for how many hours pass before it repeats |
| Frustration sensitivity | Low offers a person only when asked, normal on frustration or a third repeat, high on the first sign of it |
| Message when the AI is unavailable | Sent to a waiting customer when no model can answer; the chat then goes to a person and the flow leaves through Handoff (through Fallback when only Fallback is connected) |
Some limits do not change. The agent sends at most three messages in one turn. When a customer sends several messages in a row, it waits for them to finish and answers them together in one reply, and it never closes a conversation without answering the customer first. It never sends an answer that was cut off: it writes a shorter complete one, and if that is too long as well, it hands the chat to your team. A lead moves to a stage only after the reply that justifies it has reached the customer. It will not send a free-form message when the 24 hour window is closed, and uses a template you ticked instead, or leaves through Fallback if there is none. A conversation allows 60 agent turns a day. Safety topics, payment details and an explicit request for a person always go to Handoff, whatever the sensitivity. When a customer asks for a person, such as "please call me", the agent first saves what that message tells it (the lead, their name or email, contact fields) and then hands over, so an enquiry that ends with a request for a call is never lost. Payment details are never passed to the AI.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| The agent says it has no map or file link, or a button never arrived | The link is on a map, short or share site and is not written out in full anywhere the agent can read, or only the site name is | Paste the full link into your knowledge or into the step's instructions |
| A link in the agent's reply is missing | The site is not in Allowed link domains, so the link was removed | Add the domain, or have the agent describe where to find it |
| The agent never sends a form, card or file | None of that kind is ticked on the step, or no published form or approved template exists yet | Tick it on the step, and publish the form or get the template approved first |
| The agent stopped answering one customer | A person replied or the agent handed over, which pauses the AI on that chat | Resume the AI with the toggle in the conversation header |
| The agent saved no lead while working silently | Save a lead is off under Tools, or the customer has not said what they want yet | Switch on Save a lead, and describe in Goal and persona what to record |
| The customer got the unavailable message | No AI connection could answer, or credits ran out | Check Settings, then AI, and the balance. See AI is on but not replying |
| The agent declines a request your Goal and persona asks it to handle | The request has nothing to do with your business, so the platform's business-scope rule declines it | Expected and cannot be switched off; see Questions outside your business above |
| The flow ends right after the agent's last message | The exit it chose has no step connected | Connect the exit to the next step, or to End Flow on purpose |
| A chat was handed over as "The AI's answer was too long to send" | The customer asked for more than fits in one WhatsApp message, and the shorter answer did not fit either | Keep long itineraries and lists in a file the agent may send, and describe in Goal and persona what a short answer holds |
| A product card does not send | The product is not in the synced catalog, or has no image for a carousel | Check the catalog sync, and that the product has an image |
| The agent sent nothing to a contact who has not written in the last 24 hours | WhatsApp allows only an approved template outside the 24 hour window, and no approved template is ticked on the step, so it left through Fallback | Tick an approved text template under the step's templates, and connect Fallback to the step that should follow |
Related reading
For the simpler single-answer step, see the AI chatbot guide. Every step type is listed in the Flow Builder node reference, and handing a conversation to a person is covered in AI escalation to a human.