How to Connect Bento Survey Form to a Webhook

Have you ever wanted to send data collected from a Bento survey form to another service like Zapier? In this tutorial, I'll show you how to connect any event in Bento to a webhook, allowing you to send that data to third-party applications.

Setting Up the Workflow

First, create a workflow with a survey trigger that fires when someone fills out your survey form. Then, connect the trigger to a Send Webhook action. Here's what the fields in the Send Webhook action mean:

  • Webhook URL: The destination URL where the payload (bundle of data) will be sent. If you're using Zapier, they provide this URL.
  • Method: Usually, you'll want to use POST because you're sending data somewhere. You can also use GET if needed.
  • Content Type: Set this to JSON.
  • Headers: Add any authentication keys or additional headers here.
  • Body: This is where you construct the payload using key-value pairs and the same liquid syntax used in your emails.

Constructing the Payload

You can use the payloads of events in workflows to construct the data you want to send. To find the values you need, go to the "People" section, find the event you want to automate, and look at the values on the left-hand side. You can copy and paste these values into your payload. For example, if you want to send the answer to a survey question, you can use event.fields.question1.

Testing the Webhook

Once you've set up your workflow and constructed your payload, save it and test it out. Fill out your survey form and check if the data is being sent to your webhook URL. You can use a service like webhook.site to test and inspect the payloads being sent.

Sending Any Event to a Webhook

This method works not just for survey forms, but for any event in Bento, such as Shopify events, WooCommerce events, or bento events. For example, if you want to send data when someone hits a certain page, you can set up a page view trigger and send that data to Discord or Slack using a webhook. To see what data is available in a page view event, click on the event in the "People" section and look at the available values. You can then add these values, like the page title, to your payload.

Wrapping Up

Connecting Bento events to webhooks opens up a world of possibilities for integrating with other services and tools. By following these steps, you can easily send data from any event in Bento to third-party applications, allowing you to automate and streamline your workflows. If you have any questions, feel free to ask in the Bento discord community.

Happy automating!

And as always, ping us in Discord if you have any questions! We're here to help keep your emails flowing smoothly.

Was this page helpful?