Connect your own bot as an external AI agent
Let a chatbot you already built answer your Prospect inbox, save customer details and hand over to your team.
Already have a chatbot of your own? An external AI agent lets it answer your Prospect inbox. Each time a customer writes, Prospect sends the conversation to your bot's web address, and your bot replies with a message and, if it wants, a few actions such as saving the customer's details or handing over to your team.
Your team keeps working in one inbox: the bot's replies appear like any AI agent's, and everything it does is written into the thread.
Before you start
External agents live under Settings › AI Agents and are admin-only.
You need a developer (or an AI coding assistant) to run your bot behind an https address that can answer Prospect's requests. The editor gives them everything they need, including ready-to-copy code.
Create an external agent
Go to Settings › AI Agents and click the arrow next to New Agent (1). The main button still creates a regular AI agent.
Choose New external agent (2).
Once saved, your agent shows in the list with an External tag and its connection status (3): Connected, Not responding or Not checked.
The editor is a single page. Setup steps (1) on the left tracks what's done and takes you to each step.
Under Identity, pick an avatar and give the agent a Name (2). This is the name your team sees next to the bot's replies.
Optionally pick Default for services (3). Picking a service turns its AI auto-reply on and makes this agent the one that answers there.
The Let AI build it card (4) is covered in Build the bot's side below.
Connect your bot
In Endpoint, paste your bot's Endpoint URL (1). It must start with https.
Set the Timeout (2): how many seconds Prospect waits for your bot to answer, from 1 to 30.
Click Save at the top right. Prospect checks the new address straight away, and you can check it again any time with Check connection (3). The result shows next to the button with the response time.
The check sends your bot a test request with a code it must send back. If the status says Not responding, the reason shows right next to it.
Keep the signing secret
Every request Prospect sends is signed, so your bot can tell it really comes from Prospect.
After the first save, the Signing secret step shows the secret (1). Click Copy and give it to whoever runs your bot.
The secret is shown only once. If it's lost, click Rotate signing secret (2) to get a new one. The old secret stops working at once, so update your bot right after.
Choose what the bot may do
Your bot answers each message with a reply and, optionally, a list of actions. Only the actions you switch on in What the bot may do run; anything else is skipped and noted in the conversation.
Action | What it lets your bot do |
|---|---|
Handoff (1) | Hand the conversation to a teammate, a flow, another AI agent or the SLA router. |
Update Profile (6) | Save details the customer shares, such as name, phone or email. Use Fields the AI may update to limit which fields; leave it empty to allow all. |
Update Stage | Move the customer to another lifecycle stage, within the stages you pick. |
Send Canned Response | Send a canned response that's allowed for AI in the inbox's service, with its files. |
Start Flow | Start one of the flows you allow, for example to send a form. |
When Handoff is on, decide who the bot may hand to:
People (2): Any member of the inbox, or Only these people that you pick.
Flows (3): the flows it may start. Only flows published with an AI agent trigger can be picked. The same list is used by Start Flow.
AI agents (4): other AI agents it may pass the conversation to.
SLA router (5): turn on Hand to the SLA router to let the bot pass conversations to your inbox's routing rules. With it on, a message your bot fails to answer goes there too, so no customer is left waiting.
Send as multiple messages, further down, lets your bot's reply go out as several short messages, up to Max messages.
Build the bot's side
The Developer guide step holds everything your developer needs:
Working sample code in Node.js or Python (1) that checks the signature, answers the connection check and replies to customers. Each block has a Copy button (2).
An example of what Prospect sends, what your bot answers, and the details each action needs.
Using ChatGPT, Claude or Cursor? Click Copy guide (3) and paste it into your AI assistant. It describes this agent's address and actions so the assistant can write the bot's side for you. The signing secret is never included.
A few things your bot should know:
Each request includes the recent conversation, the customer's fields, and the people, flows, stages and canned responses it may use. Your bot should only use what's listed there.
Files the customer sent come as short-lived links: read them while answering, don't store them.
Replying with no message and no actions means the bot stays silent on that message.
Test the agent
The Test panel on the right sends messages to your bot for real, marked as a test, so you see exactly what customers would get. Actions are checked but never carried out.
Type as the customer and press Enter (1).
Each action your bot asked for shows as a card, such as Updated profile (2) or Handed off to a human agent (3). An action that would be refused shows why.
Your bot's reply appears below (4). Click the status line (5) to see the response time and, for your developer, the exact request sent and response received.
The test uses the action settings you're editing and the endpoint as last saved, so save a new address before testing it.
Put it to work
Use Default for services in the editor to make the agent answer a whole inbox, or pick it for a single conversation from the assignment panel, the same way as any AI agent. See AI agents for the inbox settings, such as pausing the AI when a person replies.
In the conversation, your team sees what the bot did, right in the thread:
Saved details and stage changes show as entries (1), and hand-overs say who received the conversation (2).
The bot's reply goes to the customer like any AI reply (3), and the panel shows who's assigned and which agent answers (4).
If the bot asks to hand over a conversation that someone already owns, nothing changes hands, and an entry says who already has it.
If your bot can't be reached, times out or sends an answer Prospect can't read, the reason is noted in the conversation.
Good to know
An agent stays the type it was created as: an external agent can't become a regular AI agent, or the other way round.
Prospect waits at most the Timeout you set, up to 30 seconds. A bot answer can carry up to 5 messages and 10 actions.
External agents can't be used in a flow's AI agent block, and don't offer AI reply suggestions to your team, since those run on a model in Prospect.
Your bot runs on your side, so its replies don't use your AI usage credits.