DEV Community

Cover image for Send and Request Data With Webhooks With AI Studio
Michael Crump
Michael Crump

Posted on

Send and Request Data With Webhooks With AI Studio

Vonage AI Studio is a Low-Code / No-Code conversational AI platform that helps businesses handle complex customer interactions through voice and text. As you begin to create virtual agents with AI Studio, it won't take long before you'll need to retrieve data from a third-party source such as a Webhook. In this blog post, you'll learn:

  • How to retrieve data from a Webhook in AI Studio from a REST Endpoint
  • How to store the data as a parameter (for later use)
  • Examples of conditional statements to perform operations with the data

In order to understand how to interact with a Webhook in AI Studio, we'll use a scenario in which a bank would like to validate a customer's identity by matching a pin number with the number retrieved from a Webhook. The payload might look like the following:

[
  ...
  {
    "id": 4,
    "email": "michael.crump@vonage.com",
    "phone": "14259999999",
    "name": "Michael Crump",
    "cc_balance": "76.31",
    "pin": "1234"
  }
]
Enter fullscreen mode Exit fullscreen mode

Once the customer dials the Bank's phone number, we'll use the phone number to look up the correct value for the pin via this Webhook.

To continue reading the full article, please click here

Conclusion

If you have questions or feedback, join us on the Vonage Developer Slack or send me a Tweet on Twitter, and I will get back to you. Thanks again for reading, and I will catch you on the next one!

Top comments (0)