https://github.com/phocks/chatfuel-dialogflow-runkit
Connect ChatFuel to DialogFlow
https://github.com/phocks/chatfuel-dialogflow-runkit
Last synced: 10 months ago
JSON representation
Connect ChatFuel to DialogFlow
- Host: GitHub
- URL: https://github.com/phocks/chatfuel-dialogflow-runkit
- Owner: phocks
- Created: 2018-02-28T01:23:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T03:44:24.000Z (about 5 years ago)
- Last Synced: 2025-04-14T21:12:29.449Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://runkit.com/phocks/chatfuel-to-dialogflow-endpoint
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatFuel to DialogFlow RunKit EndPoint
Use this script to connect your ChatFuel bot to DialogFlow.
## Instructions
Create a JSON API card in ChatFuel and paste the endpoint link in (ie. in the default response block or somewhere useful).
Pass the `queryString` user attribute which can be set beforehand with "Setup user attribute" and `{{ last user freeform input }}` or a "User input" with no message to user.
Create an environment variable in RunKit called `API_AI_KEY` with your DialogFlow "client access token" as the value. It will look like this `86a437d748aa4a8aca126487efafe427`.
Then DialogFlow will send back text responses and any custom payloads as documented in the [ChatFuel JSON docs](http://docs.chatfuel.com/plugins/plugin-documentation/json-api).
---
See this [on RunKit](https://runkit.com/phocks/chatfuel-to-dialogflow-endpoint).