Webhook after the call and variables

Conversation data into the customer's system and system data into the conversation: three points in time, variables, n8n as an intermediate layer, typical pitfalls.

Your customer wants the data from their calls in their CRM, ticket system or a spreadsheet, or the agent should look something up during the conversation. This page shows which tool is meant for what, how variables flow and how to set it all up cleanly. Webhooks are part of the Pro and Individual plans.

Check first: does the customer need a webhook?

GoalWithout a webhookWith a webhook
The team should hear about every callEmail after the call with a summarynot needed
The caller should receive a confirmationSMS after the callnot needed
Evaluate requests in a structured wayContext Extractor and call historydata automatically into the CRM
Greet regular customers by namenot possibleIncoming Webhook
State the order status during the conversationnot possibleAPI call during the conversation

If the email is enough, start with it. You build the webhook once it's clear which data the team really needs.

Three points in time

WhenTool in bhomyWhat happensPage
When it ringsIncoming Webhookbhomy sends the caller's number to your URL, and your system responds with data. The greeting waits for the responseIncoming Webhook
During the conversationCRM System on the Tools tabThe agent asks for the details you specify and sends them via POST or GET. Without Fire-and-Forget, it gets the response backAPI call during the conversation
After the callCRM Ticket under Tools › Automationbhomy sends the summary, transcript and captured data via POSTWebhook after the call
LimitValue
Timeout of the Incoming Webhookdefault 5,000 milliseconds, recommended 3,000 to 5,000
Retries of the Incoming Webhook2, after which the fallback values apply
Response time for the webhook after the call10,000 milliseconds
Retries of the webhook after the callnone. bhomy sends it once per conversation

Variables: where they come from and where they go

SourceExampleWhere you use them
Response of the Incoming Webhook{{name}}, {{kundennummer}}greeting and prompt
Columns of a campaign list{{vorname}}, {{termin}}greeting and prompt for outbound calls
context of the Outbound API{{kundenname}}greeting and prompt for outbound calls
Context Extractor{{anliegen}}, {{prioritaet}}email and SMS after the call, webhook after the call

You always write variables with double curly brackets, for example {{vorname}}. If a value is missing, bhomy removes the placeholder from the greeting and prompt. How to test each source is described under Test context.

Creating a variable in the Context Extractor

  1. Open the agent and stay on the Personality tab.
  2. In the Context Extractor, create a variable, for example anliegen (request), and choose the type.
  3. Describe for the AI what belongs in it, for example "The caller's request in one sentence".
  4. Make sure in the prompt that the agent asks for this detail during the conversation.
  5. Use the variable in email and SMS via Insert variable.

Variables in the webhook after the call

The webhook after the call has fixed fields. Captured data ends up in context and extractionData if your variables have exactly these names:

FieldVariables
contextemail, vorname (first name), nachname (last name), firma (company), telefon (phone)
extractionDataanliegen (request), kategorie (category), prioritaet (priority)

n8n or Make as an intermediate layer

A workflow between bhomy and the customer's system is worthwhile. It reliably accepts the webhook, reshapes the data and writes it to the destination.

  1. In n8n, create a workflow with a Webhook node, method POST, and copy the Production URL.
  2. In bhomy, enter it in the agent under Tools › Automation › CRM Ticket as the Webhook URL, with an Authorization Header (optional) if needed.
  3. Click Test URL. n8n receives sample data.
  4. Attach the destination, for example a CRM node that creates a contact from context and a note from summary.
  5. Make a real test call and check the execution in n8n.

The same steps work with Make and Zapier.

Linking the calls of one conversation

SituationHow you link them
Result of a call via the Outbound APIThe API response contains the callId, and so does the webhook after the call
Incoming Webhook and webhook after the callvia the callId, as both send the same one
Data from the conversation and after the callCreate a parameter of the type Phone in the CRM tool and link via the phone number. You reliably get the call ID after the call

If the customer's system is to provide data

For the Incoming Webhook, the system responds with status 200 and a flat JSON object. Each field becomes a variable. Keep the response fast: every second the system needs is heard by the caller as ringing. Add fallback values so that the agent greets callers in a friendly way even without a response.

If something doesn't work, Problems with webhooks helps.