:sparkles: Updated October 2019: As we have introduced some new features, this tutorial and the code samples have been updated! All the changes from the previous version of this example, read the DIFF.md
Use a slash command and a dialog to create a helpdesk ticket in a 3rd-party system. Once it has been created, send a message to the user with information about their ticket.
commands
chat:write
users:read
users:read.email
im:write
/helpdesk
/command
Create a helpdesk ticket
[the problem you're having]
If you did "Remix" on Glitch, it auto-generate a new URL with two random words, so your Request URL should be like: https://fancy-feast.glitch.me/command
.
/interactive
..env
(see .env.sample
):
SLACK_ACCESS_TOKEN
: Your bot token, xoxb-
(available on the OAuth & Permissions once you install the app)SLACK_SIGNING_SECRET
: Your app's Signing Secret (available on the Basic Information page)npm start
). Or if you're using Glitch, it automatically starts the app.npm install
.env
(see .env.sample
):
SLACK_ACCESS_TOKEN
: Your bot token, xoxb-
(available on the OAuth & Permissions once you install the app)SLACK_SIGNING_SECRET
: Your app's Signing Secret (available on the Basic Information page)npm start
).If you want to run it locally, I recommend creating a localhost tunnel with ngrok!