Home/Help Center/AI Agent step

Automation

Build a Conversation with the AI Agent Step

Let an AI agent run a whole conversation inside a flow: it answers from your knowledge, sends buttons, links and products, saves leads and hands over to a person.

By Chirag Darji · Updated 1 Dec 2026 · 13 min read

On this page
  1. Before you start
  2. Steps
  3. Text or buttons
  4. How the agent reads your knowledge
  5. Keep the records without replying
  6. What you will see
  7. Questions outside your business
  8. Settings and options
  9. Troubleshooting
  10. Related reading

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

  1. 1Start from the template, or add the
  2. 2Write the goal and persona
  3. 3Choose what it may use
  4. 4Add the material behind the tools
  5. 5Define the exits
The steps on this page, in order.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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

SettingWhat it does
Replies to the customerOn, the agent answers the customer. Off, it works silently and only keeps the records
Goal and personaThe agent's role, aim and tone. This is its main instruction. When it works silently, say what to record
AI connectionVGraple AI by default, or your own provider key from Settings, then AI
KnowledgeWhich knowledge base the agent searches, and whether it may answer business questions from anything else
ToolsAsk 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, catalogThe only items of each kind the agent may send. If you tick none, it cannot send that kind
Allowed link domainsWebsites 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
ExitsWhere the flow goes when the conversation ends: Completed and your own exits, plus Handoff, Timeout and Fallback
Max customer turnsAfter 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 lineAn optional first line telling the customer they are talking to an AI, with a setting for how many hours pass before it repeats
Frustration sensitivityLow 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 unavailableSent 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

SymptomLikely causeFix
The agent says it has no map or file link, or a button never arrivedThe 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 isPaste the full link into your knowledge or into the step's instructions
A link in the agent's reply is missingThe site is not in Allowed link domains, so the link was removedAdd the domain, or have the agent describe where to find it
The agent never sends a form, card or fileNone of that kind is ticked on the step, or no published form or approved template exists yetTick it on the step, and publish the form or get the template approved first
The agent stopped answering one customerA person replied or the agent handed over, which pauses the AI on that chatResume the AI with the toggle in the conversation header
The agent saved no lead while working silentlySave a lead is off under Tools, or the customer has not said what they want yetSwitch on Save a lead, and describe in Goal and persona what to record
The customer got the unavailable messageNo AI connection could answer, or credits ran outCheck 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 handleThe request has nothing to do with your business, so the platform's business-scope rule declines itExpected and cannot be switched off; see Questions outside your business above
The flow ends right after the agent's last messageThe exit it chose has no step connectedConnect 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 eitherKeep 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 sendThe product is not in the synced catalog, or has no image for a carouselCheck 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 hoursWhatsApp allows only an approved template outside the 24 hour window, and no approved template is ticked on the step, so it left through FallbackTick an approved text template under the step's templates, and connect Fallback to the step that should follow

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.

Frequently asked questions

What is the difference between the AI Agent step and the AI Reply step?
The AI Reply step writes one answer and moves on, or keeps answering in a simple loop. The AI Agent step runs the whole conversation. On each customer message it decides what to send (plain text, buttons, a list, a link button, product cards, a form, a contact card, a file) and can save a lead, request an appointment or update the contact before it leaves through one of the exits you defined.
Can the agent say anything it likes?
No. It can only use the tools you switch on, the forms, contact cards, files, templates and catalog you tick on the step, and the link domains you allow. A link on a domain you did not allow is removed before the message is sent, and a price is only quoted from your catalog or your services.
What does it cost to run?
Each customer message the agent answers is one AI reply and costs 10 AI credits, the same as an AI Reply step. Testing the agent in the builder's test chat is not charged. You can set a monthly credits budget under Settings, then AI, which warns you at 80 and 100 percent and never stops replies.
What happens when a person should take over?
The agent leaves through the Handoff exit. The conversation is marked Needs a person, the AI is paused on that chat, and the people who follow this chat get a Needs a person alert, by the same notification settings as a new customer message. The agent also hands over without asking the model when a customer asks for a human or raises a sensitive topic or a payment detail.
Does it work on website chat as well as WhatsApp?
Yes. Buttons, lists, product cards, forms and location requests are WhatsApp features, so on website chat the agent uses text and allowed links only.
Can the agent save leads without replying to customers?
Yes. Switch off Replies to the customer at the top of the step. The agent then reads each customer message and only saves the lead, updates the contact and fills contact fields. It sends nothing at all, and it keeps working after someone in your team replies, from the Inbox or from the WhatsApp Business app.
Can the customer reset the conversation?
Yes. A customer who sends /reset starts from a clean slate, and the running agent closes.

Run your WhatsApp on VGraple CRM

Free forever plan, official Meta WhatsApp Business API, set up in 15 minutes. No card needed.