--- title: "How to send playbook matches to a Slack channel automatically" slug: "how-to-send-playbook-matches-to-a-slack-channel" updated: 2026-11-12T14:19:42Z published: 2026-11-12T14:19:42Z canonical: "help.hginsights.com/how-to-send-playbook-matches-to-a-slack-channel" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.hginsights.com/llms.txt > Use this file to discover all available pages before exploring further. # How to send playbook matches to a Slack channel automatically > [!NOTE] > **Who is this for?** Playbook admins using (Legacy) Sales Copilot who want every new playbook match posted to a Slack channel through [Autopilot](/v1/docs/using-autopilot). > > This article assumes your playbook filters are already set and you are happy with the audience it returns. Autopilot can send each new playbook match to an external tool through a webhook. Slack can receive that webhook through a Slack workflow and turn it into a message in the channel of your choice. This article walks you through both sides. **What you will need** - Admin access to the playbook in Sales Copilot - Permission to create workflows in your Slack workspace - The Slack channel where the matches should appear --- ## Step 1: Choose the fields to send (Sales Copilot) 1. Open the playbook and click **Edit Playbook**. 2. Scroll down to the **Automation** section and enable **Autopilot** mode. 3. Select the **Webhook** option. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/image(989).png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=q%2FZcnfIzHHpbB1EJq6NMJoG6olnxof2QNK1EWqfoOHA%3D) 1. Under **Map your fields**, add one line per piece of information you want to see in Slack. - **Left box:** the Sales Copilot field. Click the box, search the list, and select the field you want. - **Right box:** the name Slack will receive for this value. Use **snake_case only** (lowercase words separated by underscores), for example `company_domain`. No spaces, capitals, or dashes. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.23.06 PM(1).png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=MkjooUqQbxmIZYd3PAyQ%2BFbQe9ia5nog2aG2NMViAoo%3D) Example mapping for a contact playbook: | Sales Copilot field (left) | Name sent to Slack (right) | | --- | --- | | `domain` | `company_domain` | | `person_name_combined` | `full_name` | | `pers_title` | `job_title` | | `email` | `email` | You can also click **Add free text** to send a fixed value with every match, such as a message title. In the example, `New HG Insights playbook match` is sent as `text`. ### How to find the left-hand field names > [!NOTE] > **The webhook only sends the fields you map** A field you do not map will not be available in Slack. Click the left box of a line to open a list of the fields available for this playbook. Type in **Search for fields...** to filter it, then select a field. The box fills in with the field's technical name (for example, selecting **Person title** fills in `pers_title`). The list depends on the playbook type: | Playbook type | Field groups available | | --- | --- | | Contact (person) playbook | Person, Company, Computations, Person aggregations | | Account playbook | Company, Computations, Account aggregations | ## Step 2: Create the workflow in Slack 1. In Slack, click **More** in the left sidebar, then **Agents & tools**. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.39.46 PM.png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=eiGiPJsGnn8fpUaFQn5WeWGZX11FBtoy5p2xdk7iE8o%3D) 1. Select **Workflows**, then click **+ New**. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.39.58 PM.png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=jS0bl7PBHbTODYLC6Udoa6HM%2BW3URkfFHdMsIkQzqkQ%3D) 1. Name your workflow (for example, "Re-engaging lost opportunity active contacts") and, when asked how it starts, search for **Slack** and select **From a webhook**. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.40.28 PM.png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=KQnRqdkGWXaTiEC%2Bu5uAJKUHWrdShxfy3E5TCHK5ASs%3D) 1. Click **Set Up Variables**. Add one variable for each right-hand name from Step 1. Type the name exactly as you wrote it in Sales Copilot and set **Data type** to **Text**. Click **Done** after each one, then **Save**. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.22.56 PM.png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=TP9Rc3Q4Rkc2FSGAAWdU3z7F%2F0mGVgTfdK1XXVA4HBU%3D) 1. Click **Add step**, and choose the action that sends a message to a channel (**Send a message to a channel**). 2. Select the channel and write the message. Use **Insert a variable** to add your variables where you want them to appear. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/image(990).png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=qAVnemixq0FRO1JdajRqkdItW07lEnmM0rnUMR1MOpE%3D) 1. Click **Publish**. ## Step 3: Connect Slack to your playbook 1. In Slack, once the workflow is published, copy its **web request URL** (the webhook URL). 2. Back in Sales Copilot, paste it into the **Webhook URL** field of your playbook's Autopilot configuration. 3. Click **Test your webhook**. Sales Copilot sends a request to your URL using the **last playbook match**. If the playbook has no match yet, it sends empty data. The page shows the payload that was sent and the response from Slack. A status code of **200** with the response `ok` means Slack received it. ![](https://cdn.document360.io/a55e7ea5-b8ac-4456-874d-10cc92097370/Images/Documentation/Screenshot 2026-11-12 at 2.23.13 PM.png?sv=2026-02-06&spr=https&st=2026-11-28T03%3A38%3A37Z&se=2026-11-28T04%3A38%3A37Z&sr=b&sp=r&sig=WWtm2eImOIfJ8In3AXdcZ6Y6hR7gOppLBJqGtPgBxDo%3D) 1. Open your Slack channel and check the test message. Adjust the wording or layout in your Slack workflow if needed. Republish it after each change. 2. Save your playbook. From now on, each new playbook match is posted to your Slack channel. --- ## Troubleshooting | What you see | Likely cause and fix | | --- | --- | | A value is blank in the Slack message | The name in the Slack variable differs from the right-hand name in Sales Copilot. Make them identical. | | The test does not return `200` | The URL is incomplete or the Slack workflow is not published. Copy the URL again from the published workflow. | | The message shows `null` for a field | The test match has no value for that field (for example, no previous company). This is expected. | | Nothing arrives in Slack after the test works | Check that **Autopilot** mode is on and the playbook is saved. | > [!NOTE] Autopilot retries failed webhook calls automatically. See **What is Autopilot?** for the retry schedule and error messages. --- ### FAQ #### What naming rules must be followed for mapped fields? The Slack name must use lowercase words separated by underscores. Do not use spaces, capital letters, or dashes. The name must match the Slack workflow variable exactly, or the value may appear blank. #### Can I include fixed text in every Slack message? Yes. Use Add free text to send a fixed value with every match, such as a message title. For example, New HG Insights playbook match can be sent as the text field. However we recommend handling the free text part of your message in the Slack workflow directly: it makes more sense to keep the data logic in HG Insights and the UI logic on the Slack side, where your team lives. #### Why might Slack show blank values, null values, or no message? Blank values usually mean a Slack variable name does not exactly match the corresponding Sales Copilot name. A null value means the test match has no data for that field. If nothing arrives after a successful test, confirm that Autopilot mode is enabled and the playbook is saved. Also verify that the Slack workflow is published and that the webhook URL is complete. #### I don’t see the datapoint I want to use in the field dropdown The dropdown only lists the fields that can be sent for your playbook type. Check these in order: 1. **Playbook type.** Contact playbooks and Account playbooks list different fields. A company-level datapoint (for example, company size or industry) appears in both. A person-level datapoint (for example, job title or seniority) appears only in Contact playbooks. 2. **Search by keyword.** Type part of the name in "Search for fields..." (for example, "title" or "score"). Fields are listed by label, such as "Person title", not by technical name. 3. **Custom fields.** Computations and aggregations built in HG Insights Data Studio for your organization appear under their own groups in the list. If you expect one and it is missing, ask your Data Studio admin whether it exists and has been saved. 4. **Not every datapoint can be sent.** The webhook only sends fields that are stored on the match. Some information used to qualify a match, such as which specific technology triggered a technographics rule, is not stored on it and cannot be sent at the moment. Still missing? Contact customersupport@hginsights.com with the playbook id and the datapoint you need.