Best answer

Webhook to Eleven Labs retuning 422

  • 6 June 2023
  • 6 replies
  • 1043 views

I must be missing something here so sorry if it’s something simple. But it appears I cannot send data to an API this way using the webhook action. Can someone help me understand what’s wrong with this? The error code is 422 and when I try this directly it works fine.

 

icon

Best answer by Troy Tessalone 6 June 2023, 05:37

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Userlevel 7
Badge +14

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 

Here is the actual request I’m using to test

 

 

Userlevel 7
Badge +14

@bsullinszap

Try using the Webhook Custom Request (POST) Zap action.

 

Put this in the Body field.

{
"text": "here is some text to make into a voice",
"model_id": "eleven_monolingual_v1",
"voice_settings": {
"stability": 0.35,
"similarity boost": 0.81
}
}

 

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 

That seems to work but now the question is how to create an mp3 file out of the response?

 

I tried using the google drive action but it created a text file with a bunch of stuff in it that isn’t just the audio

 

 

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 

That seems to work but now the question is how to create an mp3 file out of the response?

 

I tried using the google drive action but it created a text file with a bunch of stuff in it that isn’t just the audio

 

 

Used your tutorial to create the file now, worked great!

 

 

Thanks Troy!