Send automation messages to a Slack channel
Post automation results to a shared Slack channel through a Slack workflow webhook.
Available on Pro, Growth and Enterprise
To post into a channel, have a Lightfield automation call a Slack workflow. You need permission to create workflows in Slack, and to create automations in Lightfield. This only sends messages out to Slack; it doesn’t bring Slack messages into Lightfield.
Create the Slack destination
Section titled “Create the Slack destination”- Open the channel where the messages should appear.
- Open the channel’s menu in the top right and select Create a Workflow.
- For the event, choose From a webhook.
- Slack generates a webhook URL and shows an example HTTP body. Add a variable to the body, for example
messageContent, and copy the example body. - Click Continue, click Add Steps, then select Send a message to a channel.
- Choose your channel. In the message field, click Insert a Variable and select
messageContent. - Publish the workflow, then copy the webhook URL.
Connect your automation
Section titled “Connect your automation”In Lightfield, ask the agent in chat to build an automation, and give it the webhook URL, when to send and what to say, and the example body:
[your webhook URL] - whenever an opportunity is moved to the Won stage,send a message with the opportunity name, account and next onboarding task.Example HTTP body: { "messageContent": "Example text" }When the automation runs, its message appears in the channel.
Approve and activate the automation in Lightfield only when the destination and message are correct. Follow Build and test an automation for testing and approval; each run can post a real message to the selected channel. For channel sync and direct messages, see Slack.