Webhooks

Incoming Webhook

If you are looking to send data to RAIA via our webhook, you can send the same data we use for our API to this url: https://raiabot.com/api/webhook.cfm

See more information on setting up integration using our incoming webhook here.

Outgoing Webhook

In order to bring conversational data back into your 3rd party applications, we have setup the ability to add a webhook. The webhook will receive a FORM POST and a JSON with the entire conversation between RAIA and a contact once it's complete.

Here is an example of what will be posted to your webhook.

We only send one conversation per call due to the importance of notifying you of each conversation as it happens. We also resend conversations if they continue at a later time, so you will receive both new conversations and updated conversations in same format as below.

APIID	 
CHANNEL	 
CONVERSATION_RAW	 
EMAIL	 
FKID	 
FKUSERID	 
FNAME	 
LNAME	 
PHONE 
SOURCE	 
SUMMARY	 
UNSUBSCRIBE 
USERID 
CONVERSATION [
   {
      "role":"user",
      "message":"Hi this is Shaun from the Google new business onboarding team We re just calling with regards to the Google ads for it And would like to offer a free consultation Services Is it possible to speak to Rich Swire ",
      "message_id":"msg_o1ekQXuGtTlR1oCTtZTMqrwZ",
      "DateStamp":"March, 20 2024 15:35:41"
   },
   {
      "role":"assistant",
      "message":"Hello there, Shaun! 👋 Rich is currently juggling a hot cup of coffee and a Rubik's cube. 😂 I suggest booking a consultation with him directly through this link: https://intro.co/richswier. You can drop your great ideas there, and he shall pick them up! 🚀 So, how are you doing today?",
      "message_id":"msg_GAiC3YsE7trbYB81iZ40sz13",
      "DateStamp":"March, 20 2024 15:35:41"
   },
   {
      "role":"user",
      "message":"Pretty good Thank you so much ",
      "message_id":"msg_xByc6dOGzhqciBvmF0Pmvi2M",
      "DateStamp":"March, 20 2024 15:36:48"
   },
   {
      "role":"assistant",
      "message":"You're welcome, Shaun! If a laugh brings a smile to your face, then my job is well done here! 😄 If you have any more questions or need assistance with anything else, fire away! 💬🚀",
      "message_id":"msg_WsH9gaPDZHpT2bAL4OUyIaAA",
      "DateStamp":"March, 20 2024 15:36:48"
   },
   {
      "role":"user",
      "message":"No that will be all for now ",
      "message_id":"msg_630UHzaHXzDVXPuE6GSI5TbL",
      "DateStamp":"March, 20 2024 15:37:48"
   },
   {
      "role":"assistant",
      "message":"Alrighty then, Shaun! Remember, I'm here whenever you need me. Feel free to shout out, text, or send a carrier pigeon! 🐦😄 Have a great day ahead!",
      "message_id":"msg_DGeSK6UvC029sJfU3C0TEclZ",
      "DateStamp":"March, 20 2024 15:37:48"
   }
]

Last updated