Create an Outbound Call using Zapier's Webhook App

  • Updated

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.

 

  1. In your existing app, remove the Synthflow action step
  2. In it's place, create a 'Webhooks by Zapier' action step
  3. On the setup screen, select 'Custom Request' from the options in the 'Action event' field, and press 'Continue'
  4. Select 'POST' as the method, and enter 'https://api.synthflow.ai/v2/calls' in the URL field
  5. Open this URL in a different browser window or tab: https://docs.synthflow.ai/reference/voice-call
  6. 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 optionScreen Shot 2024-10-30 at 4.39.57 PM.png
  7. 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
    Screen Shot 2024-10-30 at 4.44.17 PM.png
  8. Copy the request that has been populated on the right-hand side of the screen
    Screen Shot 2024-10-30 at 4.45.44 PM.png
  9. Head back to Zapier, and paste this into the 'Data' field in the Webhooks step
    Screen Shot 2024-10-30 at 4.48.09 PM.png
  10. We'll need to make some changes to this so that variables are replaced with the data from the trigger step in Zapier
  11. First, replace 'Name' with the relevant field from your trigger, and do the same for the phone number
    Screen Shot 2024-10-30 at 4.50.05 PM.png
  12. 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
    Screen Shot 2024-10-30 at 4.52.52 PM.png
  13. 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
    Screen Shot 2024-10-30 at 4.55.23 PM.png
  14. 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
    Screen Shot 2024-10-30 at 4.57.53 PM.png
  15. You should now be able to continue and test this action step in your Zap
  16. Now the next time your Zap runs, a call will be triggered in Synthflow

 

Related to