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

# Send Slack Message on Campaign Reply

<Tabs>
  <Tab title="Overview" icon="magnifying-glass">
    <Tip>
      Click the tabs at the top of the page for the walkthrough on different tools.
    </Tip>

    This walkthrough will go over sending a Slack message everytime you get a campaign reply on a workspace.

    Although this workspace is specific to campaign replies, it can be easily altered for different events such as when an untracked reply is received, when a sender email disconnects etc. by listening to different [webhook events](/webhooks/when-are-webhooks-triggered).
  </Tab>

  <Tab title="General" icon="gear-code">
    <Tip>
      Click the tabs at the top of the page for the walkthrough on different tools.
    </Tip>

    This tab will follow a netural style, to help you translate this walkthrough into your preffered tool.
  </Tab>

  <Tab title="n8n" icon="code-branch">
    <Tip>
      Click the tabs at the top of the page for the walkthrough on different tools.
    </Tip>

    This tab will provide the instructions on achieving this walkthrough using n8n.

    <Steps>
      <Step title="Create n8n Workspace">
        Navigate to `https://n8n.io`.

        In a workspace, click the `+` to add a new node.
      </Step>

      <Step title="Create Webhook Node">
        Search for Webhook and click on it.

        Set the `HTTP Method` in the webhook to `POST`.

        Copy the Test URL to put into EmailBison later.
      </Step>

      <Step title="Create Slack Node">
        Add a new node for slack by clicking on the `+` again.

        Search for "Slack", click on it, then search for "Send a message", click on it.

        On the `Credential to connect with` input field, click `Create new credential`, make sure it is on `OAuth2`, click `Connect my account`.

        Proceed with the Slack login, close the pop-up after it says `Account Connected`.

        Fill out the input fields with the desired channel you want the updates sent to.
      </Step>

      <Step title="Create EmailBison Webhook">
        In EmailBison, navigate to `Settings` -> `Webhooks` -> `New Webhook URL`.

        Give a name for your webhook and paste the n8n Test URL you copied earlier into the input field.

        Toggle on `Contact Replied` and click `Subscribe to webhooks`.
      </Step>

      <Step title="Send a Test Event">
        Navigate back to your n8n workbook. Double-click on the Webhook node, click `Listen for test event`.

        Navigate to the webhook you created on EmailBison, click on `Send test webhook`, select `Contact replied` as the webhook event, click `Send test event`.
      </Step>

      <Step title="Extract Data from Webhook">
        To extract the data you want from the webhook, Double-click on your Slack node in your n8n workbook.

        On the `Message Text` field, switch it from `fixed` to `expression`.

        Drag and Drop the desired fields from the `input` tab on the left-hand side.

        <Accordion title="Show example video">
          <Frame>
            <video autoPlay muted loop playsInline controls className="w-full aspect-video rounded-xl" src="https://mintcdn.com/emailbison-306cc08e/6vP4IPDHlIEu3rWW/images/making-message-field-n8n.mp4?fit=max&auto=format&n=6vP4IPDHlIEu3rWW&q=85&s=cf5f1da3df82c75611f7980ebe1fb393" type="video/mp4" data-path="images/making-message-field-n8n.mp4" />
          </Frame>
        </Accordion>

        Click on `Test step` on the top of the page, you should receive a Slack message with the details you chose.
      </Step>

      <Step title="Switch to Production URL">
        In your n8n workbook, double click the Webhook node.

        Under `Webhook URLs`, switch the button from `Test URL` to `Production URL`, copy this URL.

        Navigate to EmailBison -> `Settings` -> Webhooks. Click edit on the Webhook you just created, replace the Webhook URL with the production URL you just copied.
      </Step>
    </Steps>

    You should now receive a Slack message on every campaign reply in that workspace.
  </Tab>
</Tabs>
