Send Ody data to another tool from an automation
The Send data to another tool step sends an HTTP request when your automation runs: post a missed call to Slack, hand an incoming text to Zapier, Make or n8n, or send a new contact to your CRM. You choose the address and what to send.
Before you start
- You must be a workspace owner or admin.
- You need an address from the other tool that starts with
https://. In Slack this is an incoming webhook URL; in Zapier, Make and n8n it is a webhook trigger's URL. - The address must be on the public internet. Ody does not follow redirects.
Step-by-step
- Click Build in the sidebar, then Automations, and open an automation (or click New automation).
- Under Do this, in order, click Add a step, then Send data to another tool under Send data out.
- Leave Method on POST unless the other tool asks for something else.
- Paste the address in URL.
- If the other tool asks for a password or token, click Add a header and type its Name and Value.
- Choose What to send:
- The whole event, as a webhook sends it sends everything Ody knows about what happened. Best for Zapier, Make, n8n and your own code.
- My own JSON lets you write the body. Slack needs this, for example
{ "text": "Missed call from {{contact.name}}" }. - No body sends the request with nothing in it.
- Scroll to Try it, turn on Really send HTTP requests, and click Run a test. The request is sent to the other tool for real, with sample data, and the step shows its answer.
- Click Turn on.
What "the whole event" contains
| Field | What it is |
|---|---|
id, type, createdAt, data |
The event, exactly as a webhook endpoint receives it. |
contact |
The contact: name, first and last name, company, phone, email, tags, custom fields, id. |
conversation |
The conversation's id, status and assignee. |
message or call |
The text or the call the event is about, when there is one. |
line |
Your Ody number the event happened on. |
automation |
This automation's id and name, and the run's id. |
Every request also carries the headers X-Ody-Automation-Id, X-Ody-Run-Id and X-Ody-Event-Id, so the other side can tell requests apart and ignore a repeat.
If a developer is writing the code that receives the request, send them Receive requests from an Ody automation on dev.ody.co. It lists every field, shows how to check that a request really came from your automation, and includes sample code.
Write your own JSON
- Put data in double braces. Click Insert data… to pick a value.
- Text goes inside quotes:
"name": "{{contact.name}}". Numbers go without quotes:"seconds": {{call.durationSeconds}}. - Ody escapes quotes and line breaks inside a value, so a customer's text cannot break the JSON.
Use the answer in a later step
The steps after this one can read the other tool's answer. In a condition on a later step, or under Insert data…, open the group Earlier steps and pick Step 1 got a successful answer or Step 1: status code of the answer (the number is the step's place in the list). To use one field of a JSON answer, copy the reference shown under the step, which looks like {{steps.s1.body.id}}, and replace id with the field's name.
Troubleshooting
- "The server answered 404" (or another number) — the other tool refused the request. Check the URL; a Slack webhook URL that was revoked answers 404.
- The step fails after 10 seconds — the other tool took too long. Ody waits 10 seconds for an answer.
- The address is refused when you turn the automation on — it must start with
https://and be reachable on the public internet. Addresses inside a private network are not allowed. - "The body was not valid JSON after the variables were filled in" — a value landed where JSON expects quotes. Put text values inside quotes.
- You need retries, signatures or every event — use a webhook endpoint instead. See Send Ody events to your server with webhooks.
Related articles
Frequently asked questions
How is this different from a webhook endpoint?
A webhook endpoint sends every event of the types you choose to one address, signed, with retries. An automation step sends one request when its conditions are met, in the shape you choose, and is not retried.
Is a failed request tried again?
No. The step fails and the run history shows the answer. Use a webhook endpoint when you need retries.
Where do I put an API key or token?
Under Headers on the step, for example the name Authorization and the value Bearer followed by your token. Header values are hidden in the run history.