Intercom Webhook Reassign Away Mode
- This is Intercom webhook processing code to
- Currently when you enable away mode with reassignment it will reassign all conversations to "Unassigned"
- With this code you can reassign these conversations to a custom admin / team inbox
Setup - Environment Variable Configuration
- lists all variables needed for this script to work
-
TOKEN
-
assignee_admin_id
-
bot_admin_id
- the ID of the admin that performs the reassignment (must be an admin not a team)
- For development just rename
.env.sample
to .env
and modify values appropriately
gem install bundler # install bundler
bundle install # install dependencies
ruby app.rb # run the code
ngrok http 4567 # uses https://ngrok.com/ to give you a public URL to your local code to process the webhooks
- Create a new webhook in the Intercom Developer Hub > Webhooks page
- Listen on the following notification: "Conversation Assigned to teammate" /
conversation.admin.assigned
- In webhook URL specify the ngrok URL