Name: chatfuel-webhook
Owner: ABC News
Description: A send-to-Slack webhook implementation for ChatFuel
Created: 2017-06-02 04:50:19.0
Updated: 2017-06-19 20:26:49.0
Pushed: 2017-06-14 06:47:37.0
Homepage: null
Size: 22
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A JSON endpoint to send Chatfuel user attributes to a Slack webhook.
This app is intended for use in AWS Lambda. General setup:
?slackChannel=test
where test corresponds to an environment variable below.The following variables may be configured:
Variable name | Description
————–|———————
SLACK_WEBHOOK_x | Full slack webhook url. Replace x
with the channel name. Corresponds to slackChannel in the query params. Generate a webhook from Slack
DASHBOT_USERID | Optional userId to link to the user's session (with history) in Dashbot. This is the number is in your Dashbot dashboard url, eg. https://www.dashbot.io/reports/1234
It is intended that you can throw any variables you like at this endpoint and they will be printed accordingly. Some notes:
Chatfuel can only send the user's last entered text in the default answer block. If you wish to capture images, locations, or stickers you should use a User input card.
The following error messages may be printed in the logs:
Message | Description
——————-|———————
no tasks specified | The query string must contain a task to run, eg. ?slackChannel=x
webhook not configured | The designated webhook needs to be configured via environment variable.
error sending | An error occurred while sending the webhook. Is the hook valid?