I was using AI to help me figure out how to do something, it generated the info below.
What caught my attention was step 2, where it says I can use "Use a Slack API Method". I was excited to try it out. Alas, I was disappointed with the Workflow Builder had no such option.
I am asking for an option like "Use a Slack API Method" be added to the Workflow Builder. It would go a long way in creating advanced Workflows.
========
AI Overview
To create a Slack workflow that schedules a message when run, but doesn't schedule the workflow itself, create a workflow that includes a step to schedule a message using the Slack API's chat.scheduledMessages.create method.
Here's a breakdown of the process:
1. Create a New Workflow:
Open Slack and navigate to the Workflow Builder.
Click "Create Workflow" and name it appropriately.
Choose how the workflow will start. You can choose "When a person clicks a button", "When an emoji reaction is used", or "When a list item is updated".
2. Add a Step to Schedule a Message:
Add a "Step" to your workflow.
Select "Send a message" or "Use a Slack API Method".
If using "Use a Slack API Method", select chat.scheduledMessages.create.
Configure the message details, including the channel, text, and the time to send the message.
You can use variables to dynamically populate the message content or recipient.
3. Configure the Trigger:
Choose a trigger that suits your needs, such as a button click, emoji reaction, or list update.
Make sure the trigger is set up to start the workflow when the desired action is taken.
4. Publish and Test:
Review and publish your workflow.
Test the workflow by triggering it and verifying that the scheduled message is sent at the correct time.
Example:
Workflow Trigger: When someone clicks a button in a channel.
Workflow Step: Use the chat.scheduledMessages.create API method to schedule a message to be sent to a specific channel at a specific time.
Benefits of this approach:
Flexibility: You can create workflows that schedule messages based on various triggers, not just a fixed schedule.
Dynamic Content: Use variables to personalize the scheduled message content.
Control: You have fine-grained control over when and how messages are scheduled.
Build a workflow: Create a workflow in Slack
Generative AI is experimental.
Hi @Brent Clark
If you're a developer, this is something that can easily be accomplished with a custom step designed to make HTTP Requests. If it would help for me to create this in another language let me know.
using slack's next gen platform (Deno)
More about Deno:
https://tools.slack.dev/deno-slack-sdk/guides/getting-started