> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack agent functions

> Add Slack’s Send Message tool to a Retell AI agent so it can post a callback request during a conversation or send a follow-up summary after a call or chat.

**Send Message** lets your voice or chat agent post to a channel in a [connected Slack workspace](https://docs.retellai.com/integrations/slack.md#connect-your-slack-workspace). For example, when a caller asks for a callback, the agent can post the issue and the confirmed callback time to `#support` while the caller is still on the line.

## Add Send Message to your agent

| When to send the message | Where to add the tool |
| - | - |
| During a conversation, when a caller or chat user asks for help | In a [single- or multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/integration-tools.md#add-a-tool), open **Functions → + Add**. Choose your Slack connection and **Send Message**. In the prompt, describe when the agent should use it. |
| At a specific step in a conversation flow | Add **Send Message** from your Slack connection in the [function menu](https://docs.retellai.com/build/conversation-flow/integration-tools.md#add-an-integration-tool-to-a-flow). Select the tool in a **Function** node and route the flow to that node after the user confirms the request. |
| Before or after a call or chat | Open the agent’s [Workflow](https://docs.retellai.com/agent/agent-workflow.md#add-functions-on-the-workflow-page). Select **+ Add** on the pre- or post-conversation functions node, then choose your Slack connection and **Send Message**. |

## Configure the channel and message

**1. Choose a channel**

Under **Function fields → Input**, select a destination for `channel`. If the editor shows a text field, enter a Slack channel ID or a public channel name. To post to a private channel, invite the Retell app to it first.

![Send Message in the agent editor with the channel selector highlighted and the required message input set to AI will infer.](https://mintcdn.com/retellai/rG3Wd5X5_6tPuCaW/images/integration/slack-agent-inputs.png?fit=max\&auto=format\&n=rG3Wd5X5_6tPuCaW\&q=85\&s=276a89fb8a035581832a065650f032e4)

Choose the channel under Input. By default, the agent writes the message from the conversation.

**2. Tell the agent what to post**

For `message`, choose **Custom** to give the agent instructions, such as “Include the reason for the callback and the time the caller confirmed.” Choose **Value** for fixed text or a [dynamic variable](https://docs.retellai.com/build/dynamic-variables.md).

**3. Test delivery and save**

Choose a test channel and select **Run a test**. Enter a sample message and run the test to post it in Slack. Check the channel for the message. The response includes `channel` (the channel ID) and `ts` (the message timestamp). Set the intended destination before saving the tool.

## Post a summary after a callback request

On **Workflow → Post-call functions**, add **Send Message** and choose your support channel. Set `message` to **Value** and enter `{{call_summary}}`. If you collect a boolean [Post Call Extraction](https://docs.retellai.com/features/post-call-analysis-overview.md) field named `callback_requested`, add a [condition](https://docs.retellai.com/agent/agent-workflow.md#gate-a-post-conversation-function-on-a-condition) so the tool runs only when that field is true. For a chat agent, use **Post-chat functions** and `{{chat_summary}}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.