Hello, i am attempting to create a webhook that will post an SMS message received via a Twilio number to a specific channel on our rocketchat server , based on this Twilio/Slack tutorial (was hoping the underlying tech between Slack/RocketChat would be similar enough.)
However, I am completely stuck as the message seems to arrive into the specific room (posted by SMS Admin, alias for Rocket.Cat) but the body of the message is blank.
At first I just added the script you provided and same result… then I noticed you were not using studio for your number…so I switched from “A MESSAGE COMES IN = Studio Flow/Twilio-Test” (duh)
The script works, however, I get an error in Twilio:
Msg
“Invalid Content-Type: application/json supplied”
sourceComponent
“14100”
ErrorCode
“12300”
EmailNotification
“false”
contentType
“application/json”
LogLevel
“ERROR”
I think the problem stems from Twilio expecting a response:
<Response></Response>
Your application will need to return Twilio Markup Language (TwiML) as the response to Twilio’s webhook request. This response will tell Twilio what to do - for instance, replying to the inbound text message with your own message that more information from the sender.
Can anyone help me with changing the script so that it responds with:
<Response></Response>
I’d imagine it’s quite easy, however, have no clue how to modify the script.