Who should read this article: Administrators
Send call data to your own systems, or read data from them, as a step in an Automation.
Introduction
The HTTP Request step lets an Automation talk to systems outside Voiso, such as your CRM, a booking system, or your own database. For example, an Automation can:
- Send the outcome of every call your AI agent handled to your CRM.
- Update a lead in your system when an agent sets a wrap-up code.
- Read a customer's tier from your CRM, and send a WhatsApp message only to VIP customers.
HTTP Request works the same way as the HTTP Request node in call and digital workflows, with three additions for Automations:
- Automatic retries. If your system does not answer, Voiso tries again.
- Response values in conditions. A value your system returns can decide what the Automation does next.
- Run history. Every request appears in the Automation's Run history.
Each run of an HTTP Request step has a small charge, because it sends data to another system. Test request is free, and the rest of Automations stays free: triggers, conditions, and Send message steps cost nothing extra. SMS and WhatsApp messages are billed per message, as always.
Add an HTTP Request step
- Open your Automation in the Workflow builder.
- Click the HTTP request icon in the node palette to add the step.
- Link it to the step before it, for example the Trigger node or a condition output.
- Click the step to open its settings.
Endpoint
- Select a Method: GET, POST, PUT, PATCH, or DELETE.
- Use GET to read data.
- Use POST to create data, PUT or PATCH to update it, and DELETE to remove it.
- Enter the URL of your system, for example
https://api.example.com/leads.
You can add the trigger's variables to the URL, for example https://api.example.com/leads?phone={{ani}}. For the list of variables of each trigger, refer to Trigger node.
Headers
Click Add header to add up to 10 headers, for example an Authorization header with your API key. Each header needs both a Key and a Value.
Body
For POST, PUT, and PATCH, enter the Body as JSON. You can use the trigger's variables here, as in the URL and headers. For example:
{
"phone": "{{dnis}}",
"campaign": "{{campaign.name}}",
"wrap_up_code": "{{wrapup_code}}"
}
Test request
Click Test request to send the request once and see the response from your system. A test request is free.
To test a request that uses a variable, enter a real test value instead, for example a phone number instead of {{ani}}. When the test works, put the variable back.
Mapping settings
Use Mapping settings to keep a value from the response and use it later in the same Automation.
- Click Test request first, so the settings know what the response looks like.
- Click Add mapping.
- In JSONPath, select a key from the response, or type one, for example
$.customer.tier. - In Variable, select or create the variable that stores the value, for example
tier.
You can then use the variable in a later Conditions step, for example tier equals VIP, or in the text of an SMS.
Success and Failure
An HTTP Request step has two outputs:
- Success: your system answered with a
2xxstatus, and every mapping was read. - Failure: anything else. Link it to an End node, or to another step, for example a message to your team.
Automatic retries
When your system does not answer within 5 seconds, cannot be reached, or answers with a 5xx status, Voiso tries again 10 seconds later, up to 3 tries in total. If the last try fails too, the Automation continues through Failure.
When your system answers with a 4xx status, for example because the API key is wrong, Voiso does not try again. The Automation continues through Failure straight away.
Retries of one run are charged as one run.
What is charged
| Charged as one run | Not charged |
|---|---|
| Each time an Automation reaches an HTTP Request step and sends the request, including all its retries | Test request in the Workflow builder |
| A run that ends in Failure, because the request still left Voiso | An event the Automation skipped, for example because it arrived too late |
| HTTP Request nodes in call and digital workflows |
Your invoice and billing report show one line with the number of HTTP Request runs in the billing period and the total charged.
To see how many runs one Automation made, open its Run history and filter by HTTP Request. The number of billable runs appears above the list.
Example: send AI agent outcomes to your CRM
| Step | Setting |
|---|---|
| Trigger | Event: Dialer call ended. Campaigns: your AI agent campaign. |
| Conditions | All rules: handled_by_ai_agent equals true and transferred equals false. |
| HTTP Request | Method: POST. URL: your CRM endpoint. Header: Authorization with your API key. Body: {"phone": "{{dnis}}", "disposition": "{{disposition}}", "wrap_up_code": "{{wrapup_code}}"} |
| End | Linked to Success and Failure. |
Example: message only VIP customers
| Step | Setting |
|---|---|
| Trigger | Event: Dialer call ended. |
| HTTP Request | Method: GET. URL: https://api.example.com/customers?phone={{dnis}}. Mapping: $.tier to the variable tier. |
| Conditions | Linked to Success. All rules: tier equals VIP. |
| Send message | Linked to the condition. Channel: WhatsApp, with your VIP message template. |
| End | Linked to No match, Failure, and the Send message step. |