Open I-Dont-Remember opened 1 year ago
Is notifying via Slackbot programmatically possible?
Slackbot
is reserved for messages directly from Slack.My Slack API knowledge unfortunately is quite limited. Any possibilities via Workflow Buddy's own BuddyBot as sender?
Workflow Buddy is able to send a message, so long as it has a destination.
Thinking through potential MVP (definitely not perfect, but hopefully is better than nothing):
error
- will of course have that since it just failed.workflow name/ID
- ❌Here's our first problem :( At step execution we don't have any context on the Workflow it's executing as a part of. Might be a security thing on Slack's part.For now, we're a bit dead in the water, but I'll keep this stewing in the back of my mind.
Currently Workflows fail silently, with information about the error appearing in the
Analytics
tab. Slack will hopefully come out with native reporting, but how might Workflow Buddy improve the situation in the meantime?It would be quite easy to wrap any calls to
fail()
with aattempt_notify_then_fail()
function, but the open question is - who do we notify?During execution, the
workflow_step_execute
event doesn't have an obvious default conversation to notify. Nothing the Bolt request context args seems viable either. Wish this could work out of the box, but I guess we'll need to look at other options.Potential approaches: