Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Delayed responses to Slack Slash commands #3

Open
alabeduarte opened this issue Jul 13, 2017 · 0 comments
Open

Delayed responses to Slack Slash commands #3

alabeduarte opened this issue Jul 13, 2017 · 0 comments

Comments

@alabeduarte
Copy link
Contributor

Just found a solution provided by claudia.js that can handle the issue of getting timeout response for some requests:

Slack limits the time to the first slash command response to 3 seconds, which is a problem for longer tasks. If your command needs to talk to external resources that might get blocked, or genuinely need more time to complete, implementing everything in a single response won’t work.

Claudia Bot Builder, since version 1.4.0, offers a simple solution for delayed responses. This tutorial demonstrates how to work around the timing issues by using two important Claudia.js features:

  • Enabling recursive Lambda calls
  • Intercepting and modifying requests in API Builder

More info here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant