Core App
The AI Agent is a step you add to a workflow. You tell it what to do in plain words, give it some tools, and it works out the rest by itself.
A normal AI step answers once and stops. An AI Agent can think, use a tool, look at the result, use another tool, and keep going until the job is done. For example, it can look up an order, check the stock, and then write a reply to the customer.
The AI Agent step is listed as AI Agent (Pabbly) in the app list.

Use the AI Agent when the next step depends on what the AI finds out. Some common cases:
Answering customer questions using your own data
Reading an email or message and deciding what to do with it
Researching a company or a website and filling in a sheet
Sorting requests by type, urgency or mood
Talking with someone over WhatsApp or Telegram and remembering the conversation
If you only need one piece of text from the AI, such as a summary or a translation, a normal AI step is enough.
The AI Agent is set up in four places: the step itself, and three circles under it called Model, Memory and Tools. The circles only work after the step is saved once.
Open your workflow and click + where you want the agent.
Search for AI Agent (Pabbly) and choose Run AI Agent.

The step appears on the canvas with three circles under it: Model, Memory and Tools.
The AI Agent runs on your own AI account. You need an API key from one of these providers:
Provider | Where to get the key |
|---|---|
Anthropic (Claude) | console.anthropic.com |
OpenAI | platform.openai.com |
Google (Gemini) | aistudio.google.com |
xAI (Grok) | console.x.ai |
DeepSeek | platform.deepseek.com |
Groq | console.groq.com |
OpenRouter (any model) | openrouter.ai |
Google AI Studio, Groq and OpenRouter all give free keys with no card, which is handy for testing.
To connect it:
On the AI Agent step, click Connect.
Choose Add New Connection.
Enter a New Connection Name, choose your AI Provider, paste your API Key and click Save.

Pabbly checks the key when you save it. The key is stored on that connection only and is never sent to any other provider.
System Instructions: who the agent is and the rules it must always follow. Example: "You are a support agent. Answer only from your tools and knowledge. If you cannot answer, say so."
Prompt: the task for this run. Usually you map it from the trigger, such as the customer's message. If the Prompt is empty when the workflow runs, the step fails.

Click Save. The Model, Memory and Tools circles now work.
Click the Model circle.
Pick a Model from the list. The list shows the models your connected provider offers that can use tools.
Optionally pick a Fallback Model. Choose a different model from the main one.
Click Save.
The model you pick shows on the Model circle.

If you change the connection on the step later, the model is cleared. Save the step, then pick a model again on the Model circle.
Click the Tools circle, or right-click the agent step and choose Add Tool. See Tools below.
You can test in two ways:
Save & Send Test Request on the step runs the agent once with your sample data.
Right-click the agent step and choose Test AI Agent to chat with it in a Test Run window.
Tests are real runs. Any app tool the agent uses really runs, and uses tasks.

When the test looks right, switch the workflow on.
Instructions
Setting | What it does |
|---|---|
System Instructions | Who the agent is and the rules it always follows. |
Prompt | The task for this run, usually mapped from an earlier step. |
Knowledge
Setting | What it does |
|---|---|
Knowledge | Facts the agent should answer from, such as your refund policy or price list. For several topics, start each with a heading like |
Knowledge Files | Public links, separated by commas: up to 5 links of up to 10 MB each. PDF, Word (.docx), web pages and text or CSV files work. Google Docs, Sheets, Slides, Drive and Dropbox share links work too. The agent reads them on every run. |
Media
Setting | What it does |
|---|---|
Media Files | Public links to images, audio or video for the agent to look at, separated by commas. Up to 5 links. Images up to 5 MB, audio and video up to 20 MB. The model must support the file type. Files it cannot read are skipped. |
Output
Setting | What it does |
|---|---|
Never Send | Removes things from the answer before it is sent on. Pick Email addresses, Phone numbers, Card numbers or API keys from the list, or turn on the switch to type your own exact values. |
Split The Answer Into | Pick the parts the answer should come back in: Reply, Needs Human Review, Category, One-Line Summary or Customer Sentiment. Each one comes back as its own field under |
Reply in Chat | Shown only when the workflow starts with the AI Chat (Pabbly): New Chat Message trigger. Choose No for an agent that only prepares work for a later step, such as sorting the message. The chat shows the answer of the first AI Agent set to Yes. Default is Yes. |


Setting | What it does |
|---|---|
Model | The AI model that runs the agent. Smaller models are faster and cheaper. Bigger ones handle harder tasks better. |
Fallback Model | A backup model. It is used if the main model fails or gives an empty answer, and then stays in use for the rest of that run. |
Web Search | Lets the agent search the web for current information. Off by default. Works with OpenAI, Anthropic and OpenRouter. Google searches only when the agent has no tools. xAI, DeepSeek and Groq do not search. |
Max Turns | The most steps the agent can take before it answers. Default 10, highest 25. |
Max Tool Calls | The most times the agent can use a tool in one run. Default 10, highest 25. |
Temperature | How varied the wording is, from 0 to 1. Lower is more consistent. Empty means 0.2. |
Max Response Tokens | Limits how long the answer can be. Leave empty for no limit. |
Setting | What it does |
|---|---|
Memory | Off: every run starts fresh. Pabbly (Default): Pabbly keeps the conversation for you, encrypted. Your Own MongoDB: the conversation is kept in your own database. |
Memory Key | Tells the agent which conversation this is. Map something unique to each person, such as their email or phone number. Required when Memory is on. |
Conversation Label | A name you will recognise for this conversation, such as the customer's name or email. It is shown when you pick a conversation in a Manage Agent Memory step. |
Memory Window | How many past questions and answers the agent can see. Default 10, highest 25. |
Memory Shared With | This Step Only (safest), All AI Agents in This Workflow, or All AI Agents in Your Account. |
Keep Conversations For | How many days to keep a conversation after its last message. Empty means 30, which is also the highest. |
The other memory settings appear once Memory is not Off. With Your Own MongoDB, they appear after you paste your connection string.
Tools are what make an agent useful. The agent reads each tool's description and decides by itself when to use it.
Click the Tools circle to open the tools window. It has three tabs: Existing Tools, New Tool and Connections.
Any action from any app can become a tool, for example Google Sheets: Lookup Row or Google Calendar: Get Events.
Click the Tools circle and open the New Tool tab.
Pick the app, the action and your connection.
Fill in the fields you want fixed. For a field you want the agent to fill, click the small AI icon next to it. Click Set Manually to change it back.
Click Add Tool.
Give the tool a Tool name and a Tool description, then click Create Tool.


Tools you made are listed under Existing Tools > My Tools, so you can reuse them in other agents. An app tool's description is shared. If you edit it, every agent using that tool gets the new description.
You find these under Existing Tools > Built-in. They do not use tasks.

Tool | What it does |
|---|---|
calculator | Does maths exactly, instead of the AI guessing. |
http_request | Opens a public web page or API and reads it. Only works for the sites you list in its Allowed Websites. |
To set the websites, click the http_request circle on the agent, enter the sites separated by commas, such as pabbly.com, api.github.com, and click Save Allowed Websites. Their subdomains are allowed too. If the list is empty, the tool cannot make requests.
The agent can run another of your workflows and use what it sends back. This is great for steps you have already built, such as "look up an order".
The workflow must start with a webhook trigger, such as Webhook by Pabbly.
To send a result back, end it with a Return step: Data Forwarder (Pabbly): Return Custom Response to the Source.
Switch that workflow on.
Open Existing Tools > Built-in, choose Run a Workflow and pick the workflow.
Click the workflow's circle on the agent to set Input Fields (what the agent should send), Fixed Values (what is always sent), and when the agent should run it.

The called workflow uses its own tasks, and has 25 seconds to answer. An agent cannot run its own workflow as a tool.
The description is how the agent decides which tool to use. Say what the tool does, when to use it and when not to.
"Adds a row to the Orders sheet. Use it once per order, after a refund is approved. Do not use it to look an order up."
To change a tool's description, right-click its circle and choose Edit Tool. Built-in and workflow tools keep their own description in each agent, so the same tool can be described differently in two agents.
Memory lets the agent remember earlier messages, so a follow-up like "and the other one?" still makes sense. Only the questions and the agent's final answers are remembered, not tool results.
To turn it on:
Click the Memory circle and choose Pabbly (Default).
Set Memory Key to something unique for each person, such as their phone number or email.
Click Save.

All AI Agents in This Workflow shares memory between agents in the same path. Agents in different Router routes do not share it.
Choose Your Own MongoDB, then paste your MongoDB Connection String into the field that appears. Example: mongodb+srv://user:[email protected]/agent_memory. It is checked when you save, and only this step uses it.
In your MongoDB Atlas account, before you save:
Database Access: give the database user the Read and write to any database role.
Network Access: click Add IP Address and add the Pabbly IP address shown under the field. Otherwise, the connection is refused.
Conversations are saved in your database as readable text, not encrypted.

AI Agent (Pabbly): Manage Agent Memory lets you work with a conversation from any step. Choose an Action:
Read Conversation: set How Many Exchanges to return.
Add to Conversation: enter the User Message and Assistant Message to save.
Clear Conversation: for example when a support chat ends.
It works only for conversations shared with All AI Agents in This Workflow or All AI Agents in Your Account. Use the same Memory and Memory Shared With settings as the agent. In Memory Key, pick a saved conversation from the list, or switch on Map and use the same Memory Key as the agent. If you use your own MongoDB, paste the same connection string here too.


After the agent runs, you can map these in later steps:
Field | What it holds |
|---|---|
output | The agent's answer as text. |
output_json | Each part of the answer as its own field, when you used Split The Answer Into. The keys are |
turns | How many steps the agent took. |
tool_calls | How many times it used a tool. |
stopped_by | Why it stopped: |

Open the run in Task History to see every tool the agent used, with what it sent and got back.

Webhook → AI Agent → Gmail: Send Email
The agent reads each message, decides if it is a question or a complaint, gives it a priority from 1 to 5 and writes a short summary. Turn on the switch on Split The Answer Into and write your own format, such as {"category": "complaint", "priority": 3, "summary": "..."}, so each part comes back as a separate field you can use in a Router.

Schedule → Google Sheets: Lookup Rows → Iterator → AI Agent → Google Sheets: Update Row
For each company website in your sheet, the agent visits the site with a workflow tool and finds the domain, LinkedIn page, market and cheapest plan. The results go back into the same row.

WhatsApp Cloud API: Message Notification → AI Agent → WhatsApp Cloud API: Send Message
The agent has PostgreSQL tools, so it can look up the customer's orders and products by itself. Memory is on with the customer's phone number as the key, so it remembers the conversation.

Webhook → AI Agent → Human in Loop → Facebook, LinkedIn, X, Instagram
The agent writes a post for each platform, a person approves it, and then it is published.

Be specific in System Instructions. Tell the agent what it must never do, not only what to do.
Give it only the tools it needs. Fewer tools means better choices.
Write clear tool descriptions. This matters more than anything else.
Use Knowledge for facts that rarely change, and tools for live data.
Start with a small Max Tool Calls, such as 3 for a simple lookup, then raise it if needed.
Use Temperature 0 for support replies and data work, and around 0.7 for creative writing.
Test with real examples from your trigger before switching the workflow on.
Any model your provider offers that can use tools. Pick it on the Model circle after you connect your AI account and save the step.
The AI usage is billed by your AI provider to the API key you connected.
Yes. The AI Agent step uses a task like any other step. Each app tool call uses a task, even if the app returns an error. Built-in tools use none, and a workflow used as a tool uses its own tasks.
Yes. Each account can run up to 60 agent runs a minute, and each run has about 100 seconds to finish.
Yes. Turn on Memory on the Memory circle and set a Memory Key that is unique to each person.
Yes. Open the run in Task History to see the answer and every tool call.
The agent decides from the tool description. Make it clearer about when to use the tool, and mention the tool in the System Instructions if needed.
Yes, if your model supports it. Map the file link into Media Files. The link must be public.
Use Never Send. Pick the kinds of data to remove, or type exact values. They are removed from the answer before it goes anywhere.
Yes. For example, one agent writes a draft and a second one edits it. You can map the first agent's output into the second agent's Prompt.
Yes. It runs once for each item. Keep the 60 runs a minute limit in mind for large lists.