An action is something that happens when a workflow runs. Think of it as a pre-configured API call that your users can customize through a simple form interface. Actions can perform tasks like sending messages, creating records, or updating data in your systems. The power of actions is that they abstract away the complexity of API calls, making it easy for your users to automate tasks without needing to understand the technical details.
1. Access the Action Builder
To create a new action:
2. Configure Basic Settings
Once in the action builder:
3. Configure API Settings
The Settings tab is where you configure the API details:
Enter the API endpoint URL:
https://slack.com/api/chat.postMessage
Add required headers:
Authorization: Bearer {% slack_token %}
Content-Type: application/json
Set the parameters that will be sent to the API:
channel: {{channel}}
text: {{message}}
When configuring your API settings, you can use different types of variables:
{variable}
- Regular variables that connect to action form fields{% sensitive_variable %}
- Secure variables for sensitive data like API tokens4. Create the Action Form
Switch to the Action Form tab to create the user interface:
Adding Form Fields
Channel Field:
Message Field:
When creating form fields, you can choose from:
4. Save the Action
Click the “Publish changes” button to make it available for your users.
Let’s walk through how this Slack message action would work in practice:
{trigger.customer_name}
has registered!”The result: Every time a new customer registers, a customized message is automatically sent to the selected Slack channel.