Integrate With Apps
You can send emails when someone responds to your google form using processors . What if you want to integrate with other apps and send messages .For example you may have a need to send a notification to a Google Chat Room or Slack .
You can now use Form Email Notifications add-on to integrate with multiple apps using WebHooks.
WebHook provides a way where an App can send message to another app if the destination app supports Webhooks.
What is Webhook
In simple terms Webhook is a way where one web application interacts with another web application by sending messages when certain events happen.
This interaction happens over Http .The source application stores certain configuration on how to reach out to the destination application and uses the same configuration when the even happens.
Learning Through Examples
Let's go through a working example and see how you can use Form Email Notifications to send a notification to a Google Chat Room when someone responds to a Google form.
Create a new Google Chat Room by following the instructions
Create an incoming Webhook by following the instructions
Copy the Webhook URL from the previous Step.We will use this in our add-on for configuration.
Click on "Setup Webhooks" from the Add-on menu
You should see a sidebar on the bottom corner and see that you do not have any webhooks in the beginning as shown in the image below.
Click on "Add Webhook" (as shown above) to create a new Webhook. Fill in the following Fields as shown below.
Webhook Name: Give a name to your Webhook so that you can easily identify them when you have multiple Webhooks.
URL: This is the url you copied in the previous step when you created Google Chat Room Webhook .
Request Method: Select POST
Headers: Leave as is .We have a default header with Content-Type as application/json
Request Body: Use the following
{"text" : "You have received a new response for Google form <{{ Form Publish Url }}| {{ Form Name }}>"}
Click on Save and your webhook will be created.
Now you can open the google form Preview by clicking on Preview button on top right of the google form window and submit the form.If everything goes well you should receive a notification in your Google Chat Room .
You can use the same process to create multiple Webhooks to interact with Apps such as Slack IFTTT zapier integrately and automate.io
Testing your Webhook
You should test your webhook before saving .There is a "TEST" button in Edit Webhook window which you can use to verify and confirm that your webhook is working prior to saving.You can also make use of other tools such as reqbin requestbin webhook.site and postman for request mocking and testing.