Emma Slack App
Share
Explore

icon picker
Introduction

Loading…

Resources

Slash commands:
Sending messages:
Threaded replies:
Auth:
Event subscriptions:
Datastores:
Form types:
Block kit builder:

Commands

Catch post requests > Start slack workflow and send a message with an input block
User selects assistants to be installed in channel
On confirm > We save the settings (assistant_id, auth, slack_channel_id) in Slack data store
When someone @Emma in a channel > We call the Emma api

Installation flow for the user

User adds app
User Authorizes
Add slaw command /add-assistant
Show select dropdown with available assistants (User block kit builder)
User selects the assistant to install
On confirm > Store the settings in datastore (channel_id , assistant_id)
When installed > Post message “{assistant_name} is now part of this channel :tada:”

Message trigger

We should use “Event subscription” with event: which triggers when someone mentions the app. Ex: @emma

To handle

If someone tries to mention @Emma in a channel with no assistant, return: “No assistant has been installed in this channel”

Required inputs for API call:

Authorization
assitant_id
Message
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.