https://github.com/jpruden92/ifttt-dialogflow-webhook
On this repo you will find a very small Dialogflow fullfilment that allows to integrate your chatbots with IFTTT applets.
https://github.com/jpruden92/ifttt-dialogflow-webhook
chatbot dialogflow google heroku ifttt webhook
Last synced: about 1 year ago
JSON representation
On this repo you will find a very small Dialogflow fullfilment that allows to integrate your chatbots with IFTTT applets.
- Host: GitHub
- URL: https://github.com/jpruden92/ifttt-dialogflow-webhook
- Owner: jpruden92
- License: gpl-3.0
- Created: 2018-10-19T11:39:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T15:26:42.000Z (about 7 years ago)
- Last Synced: 2025-03-30T06:04:19.314Z (about 1 year ago)
- Topics: chatbot, dialogflow, google, heroku, ifttt, webhook
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 20
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1. Intro
On this repo, you will find a very small Dialogflow fulfillment that allows integrating your chatbots with IFTTT applets.
[Dialogflow](https://dialogflow.com) is a Google platform that facilitates the creation of chatbots. You can configure your intents and replies easily with a visual interface. You can connect your Dialogflow chatbots with a lot of platforms ( Facebook Messenger, Telegram, Google Assistant, … ).
If you want to create a chatbot that speaks with third-party services ( Gmail, Spotify, … ) you need to create a fulfillment webhook and develop a connector on your servers.
The objective of this project is to facilitate the integration of third-party services with the help of IFTTT.
[IFTTT](https://ifttt.com) is a platform where you can configure connections between hundreds of services.
# 2. Example
On this example, we are going to create a small poll with a chatbot. The replies will be saved on Google Drive.
## Step 1: Create a IFTTT applet:
1. Create a new [IFTTT account](https://ifttt.com/join).
2. Go to [IFTTT New Applet](https://ifttt.com/create).
3. Click on ``+this``.
4. Search ``webhooks``.
5. Select ``Receive a web request``.
6. Write an event name. We are going to use ``poll_completed``.
7. Click on ``+that``.
8. Search ``Google Sheets``.
9. Select ``Add a row to spreadsheet``.
10. Click ``Create action``.
11. Click ``Finish``.
## Step 2: Deploy the webhook:
1. Create a [Heroku account](https://id.heroku.com/login).
2. Click on this button:
[](https://heroku.com/deploy)
3. Write an app name and choose a region.
4. Click ``Deploy app``
5. Wait until webhook be deployed.
6. Click on ``View`` and you will be redirected to your app. Default user is ``test`` and default password is ``test``. Remember change them.
7. This control panel will allow you to connect your chatbot intents to IFTTT applets.
## Step 3: Create your intent:
1. Open a browser and [log in to Dialogflow](https://console.dialogflow.com/api-client/#/login).
2. Click Create agent in the left menu.
3. Enter your agent's name, default language, and default time zone, then click the Create button.

4. Create a new intent with this features:
- Intent name. We will use ``bot.example.poll``.
- Some training phrases. For example: ``i want to complete the poll``, ``complete the poll``, ``reply the poll``.
- Two required params:
- value1 - @sys.given-name - $value1. Prompt: ``Your name?``.
- value2 - @sys.number - $value2. Prompt: ``Your age?``.

- A response: Thanks for reply our survey.
5. Activate Fulfillment on ``Fulfillment > Enable webhook call for this intent.``.
6. Save intent.
7. Insert your Fulfillment URL on ``Fulfillment`` section. Fulfillment URL appears on Heroku control panel (you installed it on previous section).

## Step 4: Connect all.
1. Go to Heroku control panel.
2. Insert and Save ``IFTTT Events URL``.
3. Insert connections. The first row contains Dialogflow intents. The second row contains IFTTT events. On this example you should insert:
- Intent: ``bot.example.poll``.
- Action: ``poll_completed``.
4. Save Connections.
## Step 5: Test
1. Go to ``Integrations`` on Dialogflow.
2. Enable Web Demo.
3. Click on ``https://bot.dialogflow.com/...``
4. Write ``i want to complete the poll``.