AI Agent Webhooks

AI Agent Webhooks for Your Business Workflows

Send Lead Capture, Human Handoff, and Session End events from Robofy to your HTTPS endpoint. Use the event data in your own CRM, support, reporting, automation, or internal workflows, with subscriptions configured for each AI Agent.

Lead Capture Human Handoff Session End
ISO/IEC 27001:2022 certified Optional secret · HMAC-SHA256 signing Subscriptions configured per AI Agent
The concept

What Are AI Agent Webhooks?

AI agent webhooks are HTTP notifications that send supported AI conversation events from Robofy to an external HTTPS endpoint.

1

Something meaningful happens

When Lead Capture, Human Handoff, or Session End occurs, Robofy prepares the corresponding webhook payload for that AI Agent.

2

Robofy notifies your endpoint

The payload is sent to the HTTPS endpoint configured for that agent. Lead Capture and Human Handoff can occur while the conversation is still active.

3

Your system decides what happens next

Your receiving application owns the outcome. Robofy does not directly update your CRM or helpdesk - your workflow does.

Your endpoint might…

  • Create or update a CRM record
  • Notify a support team
  • Open a ticket
  • Store conversation information
  • Trigger an automation
  • Send data into an analytics or reporting workflow

The AI conversation happens in Robofy. Webhooks carry important conversation events into the rest of your business workflow.

Webhook events

Choose Which AI Agent Events Your Webhook Receives

Subscribe each webhook to the events relevant to the workflow connected to that endpoint.

Event 01 · Sales & follow-up

Lead Capture

Move captured leads into your follow-up workflow

Send captured lead information and available conversation context to your endpoint when the AI Agent creates a Lead Capture event. Your system can use that information to create or update records, route leads, or begin the next sales workflow.

Lead captured Robofy sends webhook your endpoint receives the payload your CRM or sales workflow processes it.
  • Captured lead fields, source and context information, and capture timing when available.
  • Session reference when available, so the lead can be traced back to its conversation.
What email should I send the quote to?
priya@acme.co - need pricing for 40 seats
Lead Capture event created - conversation can stay active
{
"event": "lead.captured",
"lead": { "email, phone, fields…" },
"context": { "source, timing, session…" }
}
Your Endpointcreates / updates the record in your CRM workflow

Event 02 · Support & escalation

Human Handoff

Give your support workflow the context it needs

Send handoff context to your endpoint when a handoff request is created, including details such as the reason, conversation summary, preferred contact method, and available customer contact information. Your system can use the event to create a support ticket, notify a team, or start another escalation workflow.

Handoff request created Robofy sends webhook your endpoint receives the context your support workflow continues the escalation.
  • Handoff reason, conversation summary, and preferred contact method when available.
  • Available customer contact details - only fields the conversation actually captured.
Would you like me to have someone from support call you back?
Yes please - WhatsApp works best
Handoff request created - follow-up is owned by your team
{
"event": "handoff.created",
"reason": "billing dispute",
"summary": "2 failed payments…",
"contact": { "whatsapp, email…" }
}
Your Endpointopens a ticket in your support workflow

Event 03 · Reporting & analysis

Session End

Send completed session context into reporting and analysis workflows

When a conversation becomes eligible for Session End processing after the configured inactivity threshold, Robofy can send session information and a text transcript to your endpoint. Your system can then store or process that information for reporting, analytics, review, or other internal workflows.

Conversation becomes inactive session becomes eligible for Session End processing Robofy sends webhook your system processes the session data.
  • Standard payload: agent reference, session reference, and text transcript.
  • The inactivity threshold is shared per agent - see the timer section below.
Thanks - your demo is booked for Friday at 2 PM.
Great, thanks!
Inactivity threshold reached - session eligible for Session End
{
"event": "session.ended",
"agent": { "reference…" },
"session": { "reference…" },
"transcript": "text…"
}
Your Endpointstores the session in your reporting workflow

Payload contents can vary depending on the event and the information available in the conversation.

Session End timing

Set One Session End Timer for Your AI Agent

Choose how many minutes a conversation must remain inactive before it becomes eligible for Session End processing. The Session End timer belongs to the event configuration of the AI Agent, not to an individual webhook. Every webhook on the same AI Agent that subscribes to Session End uses the same inactivity threshold.

Agent A - shared 15-minute thresholdChanging this value updates every Session End subscription on that agent.

Reporting webhookUses the same timer
Archive webhookUses the same timer

What happens as inactivity grows

Processing runs through the platform background workflow. Treat the timer as an eligibility threshold, not an exact dispatch deadline.

  1. 1
    Active conversationMessages are still flowing. The timer has not started.
  2. 2
    InactiveNo new messages. Inactivity time starts accumulating.
  3. 3
    Eligible for Session EndInactivity period reached. Session becomes eligible for processing.
  4. 4
    Webhook sentSubscribed endpoints receive session data via background processing.
Lead Capture and Human Handoff do not use the Session End inactivity timer. They fire from their own events, even mid-conversation.
Setup & security

Configure Your AI Agent Webhook

A webhook configuration holds a name, URL, optional secret, timeout, event subscriptions, and an Active / Inactive state - managed per AI Agent, after creation, as operational control.

What each field meansSame controls as the form, explained

Name

Give the webhook a recognizable name for the workflow or destination.

URL https://

Enter the HTTPS endpoint where Robofy should send subscribed events.

Secret optional

Add an optional secret for request verification via payload signing.

Timeout

Choose how long Robofy should wait for the receiving endpoint.

Events

Subscribe to one or more supported events: Session End (Inactivity), Human Handoff, Lead Capture.

Active / Inactive

Control whether the webhook is currently active without removing its configuration.

From endpoint to first event

  1. Prepare an HTTPS endpoint that accepts webhook requests.
  2. Create a webhook for the required AI Agent.
  3. Enter the name, URL, optional secret, and timeout.
  4. Select Lead Capture, Human Handoff, Session End, or a combination.
  5. Configure the Session End inactivity timer if Session End is selected.
  6. Trigger a relevant event and confirm that your endpoint processes the payload.

Verify Webhook Requests Before Processing Them

Add an optional secret to enable HMAC-SHA256 payload signing. Your endpoint can verify the signature in the X-Hub-Signature-256 header before processing the event.

Webhooks vs Function Tools

Should You Use a Webhook or a Function Tool?

Both connect your AI Agent to external systems, but the direction and purpose of the integration are different.

Function Tool Calling

Use a Function Tool when the AI Agent needs to call an API, retrieve data, perform an action, and potentially use the result during the conversation.

AgentAPIAgent
“Where is my order?”

AI Agent → Order API → order status → AI Agent answers customer

“Book this appointment”

AI Agent → booking API → action completed → AI Agent confirms result

AI Agent Webhooks

Use a webhook when Robofy needs to notify an external system that a subscribed conversation event occurred.

Conversation EventEndpointWorkflow
Lead Capture

lead captured → endpoint → sales workflow

Human Handoff

handoff request created → endpoint → support workflow

Session End

session eligible → endpoint → reporting workflow

Function Tools let the agent call your systems.

The agent reaches out mid-conversation and uses the API response in its next answer.

Webhooks let conversation events notify your systems.

Robofy pushes subscribed events out - your workflow decides what happens next.

Per-agent control

Different Agents, Different Endpoints

Users can create different webhooks for individual AI Agents, and different webhooks may subscribe to different events.

Sales AI Agent

Qualifies and captures demand
Lead Capture webhook → customer endpoint → CRM workflow

Support AI Agent

Escalates with full context
Human Handoff webhook → customer endpoint → helpdesk workflow

Conversation session

Closes the loop on every chat
Session End webhook → customer endpoint → reporting workflow
FAQ

Frequently Asked Questions

What AI Agent events can trigger a webhook?

Robofy currently supports Lead Capture, Human Handoff, and Session End webhook events. Each webhook can subscribe to the events required by its connected workflow.

Can I use different webhooks for different AI Agents?

Yes. Webhooks are configured for individual AI Agents, allowing different agents to send events to different endpoints and workflows.

Can one webhook subscribe to multiple events?

Yes. A webhook can subscribe to the supported events required by that endpoint. You can also configure additional webhooks when different destinations should receive different events.

Does a webhook automatically update my CRM or helpdesk?

Robofy sends the subscribed event to your HTTPS endpoint. Your receiving application or automation decides how that data is mapped and what action happens next.

When is the Session End webhook sent?

The configured inactivity period determines when a session becomes eligible for Session End processing. Session processing occurs through the platform background workflow, so the timer should be treated as an inactivity threshold rather than an exact dispatch deadline.

Is the Session End timer configured separately for each webhook?

No. The Session End timer belongs to the event configuration of the AI Agent. Webhooks on that agent that subscribe to Session End share the same inactivity threshold.

Does Human Handoff automatically transfer the live conversation to a person?

The webhook notifies your external workflow when a handoff request is created and can provide available handoff context. The webhook itself does not determine how your organization assigns or handles the follow-up.

Can my AI Agent use the webhook response in its next message?

AI Agent webhooks are event notifications. If the agent needs to call an API and use the response during the conversation, use Function Tool Calling instead.

Can webhook requests be verified?

Yes. When a secret is configured, Robofy supports HMAC-SHA256 payload signing. Your receiving endpoint can verify the signature before processing the event.

What information is included in a webhook?

The payload depends on the selected event and the information available in the conversation. Lead Capture can contain captured lead information and context, Human Handoff can include escalation context and available customer details, and the standard Session End payload includes session information and a text transcript.

Notify your systems when AI Agent events occur.

Create Your AI Agent