An alternative to using the Synthflow app in Zapier is to use Zapier's Webhook app. This app allows you to perform API requests to any API, including Synthflow's. We've prepared a short video below and instructions to help you set this up.
- In your existing app, remove the Synthflow action step
- In it's place, create a 'Webhooks by Zapier' action step
- On the setup screen, select 'Custom Request' from the options in the 'Action event' field, and press 'Continue'
- Select 'POST' as the method, and enter 'https://api.synthflow.ai/v2/calls' in the URL field
- Open this URL in a different browser window or tab: https://docs.synthflow.ai/reference/voice-call
- In the Synthflow docs, select JSON from the language options in the top right. You may need to click into the menu to see that option
- Remaining in the Synthflow docs, enter the model ID for the assistant you'd like to place a call, an example phone number, name,
and select example values for the custom_variables - Copy the request that has been populated on the right-hand side of the screen
- Head back to Zapier, and paste this into the 'Data' field in the Webhooks step
- We'll need to make some changes to this so that variables are replaced with the data from the trigger step in Zapier
- First, replace 'Name' with the relevant field from your trigger, and do the same for the phone number
- We'll now need to add a key-value for each of the custom variables in your prompt. If you have {lead_address} for example, replace 'Company' in the
Zapier settings with 'lead_address', and map the relevant field from your trigger -
You'll need a key-value for each variable, so for example if I had 3 variables; {lead_address}, {lead_preferences} and {lead_timezone}, I would add
them to the data field like this
- We finally need to add 2 headers to the request. The first one is 'content-type' with the value of 'application/json'. The second is named 'Authorization'
where you should enter 'Bearer ' (note the space at the end) followed by your API key - You should now be able to continue and test this action step in your Zap
- Now the next time your Zap runs, a call will be triggered in Synthflow
Related to