This quick guide will show you how to effortlessly set up webhooks for your forms, enabling you to send emails, trigger custom actions, or even integrate with other applications whenever a user submits a form on your website.
Setting Up a Webhook
When you create a form in a Taku message, you'll notice an option for "Webhook." This is where the magic happens. Simply enter the URL (endpoint) of the server where you want Taku to send data each time your form is submitted.
Understanding Your Webhook Data
Whenever someone fills out and submits your form, Taku will instantly send a POST request to your specified endpoint. This request will carry a payload with valuable information, including:
space_id:
Unique identifier for your space.message_id:
ID of the message that contains the form.user_id:
Unique ID of the user who submitted the form.user_email:
The email address of the user (if provided).user_name:
The name of the user (if provided).data:
An array of the form inputs submitted, each with an input_id and the value entered by the user.
Here's a snapshot of what the data payload looks like:
What You Can Do with Webhook Data
The possibilities are nearly limitless! Here are just a few things you can do with the data received through webhooks:
- Send Automated Emails: Congratulate users on completing a form, or send them further instructions.
- Trigger Custom Tasks: Update your CRM, start a workflow, or even send SMS notifications.
- Integration: Use the data to integrate with other platforms or services for enhanced user experiences.