Skip to main content
Best answer

Cannot Send Variables To Twilio With Webhook


I’m trying to setup a zap that takes information from a Google Sheet and then sends that to Twilio for the data to be referenced in a studio flow. The webhook successfully makes a call, but when on the call, none of the variables such as doctor or attorney are included.

 

Does anyone know how I can fix this? I’ve looked at about 15 guides and just can’t get it.

 

Also, the weird formatting on “Doctor”, “Attorney”, and “Address” is from another community post. I have tried the zap without those pieces surrounding the variable and gotten the same result. 

 

Best answer by Troy TessaloneBest answer by Troy Tessalone

@ColinHickmon 

I got this to work.

Use the regular POST. (not via Custom Request)

Configure your Parameters like this.

 

{"doctor": "value","address": "value","attorney": "value"}

 

 

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

18 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @ColinHickmon 

Check out this related topic that might provide guidance:

https://community.zapier.com/show-tell-5/guide-how-to-trigger-a-twilio-studio-flow-from-a-zap-14204

 

Try with just the mapped variable for each key value. (remove the other JSON)

 


  • Author
  • Beginner
  • 8 replies
  • January 24, 2024

I appreciate it! That guide was actually part of what helped me originally get this setup.

 

My issue though is that the variables are not being received, not that calls aren’t being made. The zap will trigger a call perfectly fine, it’s just not sending the other stuff.


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

Did you try this?

Try with just the mapped variable for each key value. (remove the other JSON)

 


  • Author
  • Beginner
  • 8 replies
  • January 24, 2024

Yeah I have and still couldn’t get it.


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

Check these Twilio resources:

https://www.twilio.com/docs/studio/rest-api/v2/execution

 

You likely will have to use a Custom Request (POST) so you can configure JSON.

 

{
    "to": "+15558675310",
    "from": "+15017122661",
    "parameters": {
        "name": "Zeke"
    }
}

 

 


  • Author
  • Beginner
  • 8 replies
  • January 24, 2024

Will try that out later today. Appreciate your help!


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

You can validate the format of your JSON with this tool: https://jsonlint.com/


  • Author
  • Beginner
  • 8 replies
  • January 25, 2024

I keep getting this error when trying to run the custom webhoook:

 

Failed to create a request in Webhooks by Zapier

Missing required parameter To in the post body (HTTP Status Code: 400)

 

Here’s the data:

 


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon

Did you validate the JSON?

You can validate the format of your JSON with this tool: https://jsonlint.com/

 

You need to have commas after the first 2 parameters. (example)

{
    "To": "+15558675310",
    "From": "+15017122661",
    "Parameters": {
        "name": "value",
        "email": "value",
        "phone": "value"
    }
}

 


  • Author
  • Beginner
  • 8 replies
  • January 25, 2024

Just checked and it says valid after adding the commas.

 

Still receiving the same error though.


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

Can you post an updated screenshots with how your full Zap step is configured?


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon

Also, try changing all the keys to be lower case or proper case.

 

To

From

Parameters

 

vs

 

to

from

parameters


  • Author
  • Beginner
  • 8 replies
  • January 25, 2024

Tried that one already and it didn’t fix it. Here’s the full flow. Very basic.

 


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

This still shows a mismatch in capitalization across the parameters.

Try changing parameters to Paramaters.

 


  • Author
  • Beginner
  • 8 replies
  • January 25, 2024

Fixed the capitalization error after the screenshot. Still not working 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30939 replies
  • Answer
  • January 25, 2024

@ColinHickmon 

I got this to work.

Use the regular POST. (not via Custom Request)

Configure your Parameters like this.

 

{"doctor": "value","address": "value","attorney": "value"}

 

 

 


  • Author
  • Beginner
  • 8 replies
  • January 25, 2024

YOU’RE THE MAN, TROY!!!!

Thanks so much for your help. Zapier better be paying you for all this lol


Troy Tessalone
Forum|alt.badge.img+14

@ColinHickmon 

I’m just a Certified Zapier Expert, not a Zapier employee!