# Slack (via Zapier)

By integrating Wonderchat with Slack, it allows your team members to chat with your Wonderbot.

**Required tools:**

* Zapier
* A Slack account
* A dedicated channel for conversations with your Wonderchat bot

**View our Slack template here:**

{% embed url="<https://zapier.com/shared/wonderchat-on-slack-integration/ffb9807106dc7ead3a488df59d333cc6b2f5fd5b>" %}

***

## Overview of our Slack Integration Template

The Slack Integration Template consists of three key steps to follow:

<figure><img src="/files/fjUEQ0b9Rp1Aat4ijCPk" alt="" width="563"><figcaption><p>Steps for Slack Integration</p></figcaption></figure>

***

## Setting Up in Slack

### Step 1: Open Wonderchat's Slack Template on Zapier

1. To set up your Wonderchat Bot on Zapier, you would need to open our ↗ [Slack Integration Template](https://zapier.com/shared/wonderchat-on-slack-integration/ffb9807106dc7ead3a488df59d333cc6b2f5fd5b)
2. Sign in with your Slack account to create your first event.

### Step 2: Choose Trigger Event for Slack

We recommend selecting '**New Message Posted to Channel**' as the trigger event for messages in your chosen Slack channel.

<figure><img src="/files/fJQM6Wk5t6SYA7p43GJY" alt="" width="563"><figcaption><p>Select <strong>"New Message Posted to Channel"</strong></p></figcaption></figure>

### Step 3: Sign in to Slack to continue

<figure><img src="/files/CicUKzfOXXqyrCE5N2so" alt=""><figcaption><p>Sign in and Connect Slack</p></figcaption></figure>

### Step 4: Select the Slack Channel for Hosting Your Wonderchat Bot

In this example, we have selected our channel as "Wonderchat-Zapier"

<figure><img src="/files/JyfaabHdnk5EheqzOm1Z" alt=""><figcaption><p>Choose your channel</p></figcaption></figure>

### Step 5: Test the Trigger

<figure><img src="/files/42KA5JRkvqCvCDf0TmO7" alt=""><figcaption><p>Click "Test Trigger"</p></figcaption></figure>

***

## Asking Questions in Wonderchat

### Step 1: Under App & Event, select 'Wonderchat'

<figure><img src="/files/6Ye8gCo1icfsKMOmW89S" alt=""><figcaption><p>Select <strong>'Wonderchat'</strong> as app</p></figcaption></figure>

### Step 2: Under Action event, select 'Ask Question'

<figure><img src="/files/pgFTME6fDCfZ9Cb1FnLU" alt=""><figcaption><p>Select <strong>"Ask Question"</strong></p></figcaption></figure>

### Step 3: In a separate tab, retrieve your API Keys from ↗ [Wonderchat](https://app.wonderchat.io/)

#### How to Retrieve API Keys from Wonderchat

* From the left-panel on the Wonderchat App, go to **Settings** > **API Keys** > **"Generate API Key"**
* Click the 'Show' icon, and copy the API Key generated

<figure><img src="/files/RWJDjmDEaplLogzrHobZ" alt=""><figcaption><p>Copy the API Key generated</p></figcaption></figure>

### Step 4: Go back to Zapier app, sign in under 'Account'

<figure><img src="/files/mKLt1Lv684vIj2kMSI5l" alt=""><figcaption><p>Click 'Sign in'</p></figcaption></figure>

### Step 5: In the sign in pop-up window, paste your API Key

<figure><img src="/files/uMDY8zHzI4FQ0IenMyym" alt=""><figcaption><p>Paste the API Key and continue</p></figcaption></figure>

<figure><img src="/files/yGm4yyCOwE7VbVicPwIt" alt=""><figcaption><p>Click continue</p></figcaption></figure>

### Step 6: Under Questions, select 'Text' option

<figure><img src="/files/SiiSjSLBKARyvIdD3HIc" alt=""><figcaption><p>Choose 'text'</p></figcaption></figure>

### Step 7: In the separate tab, retrieve your Wonderchat's Chatbot ID

#### How to retrieve Chatbot ID

* Go to **Dashboard** > **Actions (⋮)** > "**View Chatbot"**
* Your Chatbot ID can be found at the end of your chatbot URL

{% hint style="info" %}
For example, your chatbot url is: [https://app.wonderchat.io/chatbot/**cm0w2lbcf0fyienmkv56pepde**](https://app.wonderchat.io/chatbot/cm0w2lbcf0fyienmkv56prpce)

Your Chatbot ID is therefore:

"[<mark style="background-color:orange;">**cm0w2lbcf0fyienmkv56pepde**</mark>](https://app.wonderchat.io/chatbot/cm0w2lbcf0fyienmkv56prpce)**"**
{% endhint %}

### Step 8: Paste your Chatbot ID

<figure><img src="/files/e8bKeJaQwZuMQ3XUkAaC" alt=""><figcaption><p>Click continue</p></figcaption></figure>

### Step 9: Leave 'Chatlog ID' field blank. Press 'Continue'.

<figure><img src="/files/owfdb8vfMFGkXdECRJOK" alt=""><figcaption></figcaption></figure>

### Step 10: Test the Action to Ensure It Works in Your Slack Channel

<figure><img src="/files/4XjqR6Ec1j1PVvjHkuam" alt=""><figcaption><p>Click '<strong>Test step</strong>'</p></figcaption></figure>

<figure><img src="/files/VE2VsXlMbXyLubrk4p0e" alt=""><figcaption><p>Click <strong>'Continue'</strong></p></figcaption></figure>

***

## Sending Channel Message in Slack

### Step 1: Select 'Slack' as app

<figure><img src="/files/4b2EHfPYjJAVfzf0uKci" alt=""><figcaption><p>Choose 'Slack' as app</p></figcaption></figure>

### Step 2: Under Event, select "Send Channel Message"

<figure><img src="/files/7ERa0zVwb2mufmfZxpgo" alt=""><figcaption><p>Select <strong>'Send Channel Message</strong>'</p></figcaption></figure>

<figure><img src="/files/CaIR8LFsdXHlBpBRDNmf" alt=""><figcaption><p>Description for 'Send Channel Message'</p></figcaption></figure>

### Step 3: Select your Slack account

{% hint style="info" %}
Ensure the account connected is the same one used to create the channel.
{% endhint %}

<figure><img src="/files/Bz8HsfXiPCbGXHyV260u" alt=""><figcaption><p>Connect Slack account and continue</p></figcaption></figure>

### Step 4: Configure Settings

#### Channel

* Please selected as the name of channel you wish for your bot to reside in

<figure><img src="/files/XuQuwPxXWgiq0Zgkfrnf" alt=""><figcaption></figcaption></figure>

#### Message Text

* Under **'Ask Questions from Wonderchat'** dropdown, choose **'Response'**

<figure><img src="/files/cGjJfHUehb5pHq0Ir72I" alt=""><figcaption><p>Click on '+' > Under '2. Ask Question' > Select 'Response'</p></figcaption></figure>

#### Send as a bot

* Please select '**YES**' for this option.

<figure><img src="/files/x6wTvp9SrS099bOzrH07" alt=""><figcaption><p>Select 'Yes'</p></figcaption></figure>

#### Bot Name

* Enter name of your chatbot, e.g. 'Wonderchat'

<figure><img src="/files/d7S1I2JjXI65BFQ8eB80" alt=""><figcaption><p>Enter name of your chatbot</p></figcaption></figure>

#### Bot Icon

* Share a link to the profile picture of your chatbot, e.g. from Google Drive

<figure><img src="/files/lFd19pMGLjZSYhNc7zmX" alt=""><figcaption><p>Enter the link of your picture</p></figcaption></figure>

#### Include a Link to your Zap

* Please select '**NO'** for this option
* Recommended to turn off to prevent link crowding

<figure><img src="/files/d1cF9mFGZJYZmhMXUy2G" alt=""><figcaption><p>Select 'No' (Recommended Setting)</p></figcaption></figure>

#### Attach Image by URL

* Please leave this field blank

<figure><img src="/files/7sPymY2eTX2n0eHMWDky" alt=""><figcaption><p>Leave this field blank</p></figcaption></figure>

#### Auto-Expand Links

* Please select '**NO'** for this option
* Recommended to turn off, unless you would like to show links as thumbnails

<figure><img src="/files/vokSuQfDrkcATcStuiBc" alt=""><figcaption><p>Select 'No' (Recommended Setting)</p></figcaption></figure>

#### Link Usernames and Channel Names

* Please select '**YES**' for this option

<figure><img src="/files/ALmMYAt1k2cOWu6TXtwZ" alt=""><figcaption><p>Select 'Yes'</p></figcaption></figure>

#### Schedule At / File / Thread / Send Channel Message

* These fields are **optional**, and don’t need to be filled in unless you want to customize them for your specific needs.
* We’re offering a recommended setup for using Wonderchat on Slack, but you’re free to modify it as you see fit.

### Step 5: Test your Zap

You can select 'Test Step' to see how your configurations would turn out.

<figure><img src="/files/60eKQIro2iL8wnQHCMaI" alt=""><figcaption><p>Click 'Test step' to try out configurations</p></figcaption></figure>

<figure><img src="/files/NkedPYoOCct5FSEwjE4C" alt=""><figcaption><p>Sample of Channel Message Sent</p></figcaption></figure>

<figure><img src="/files/sXGsk5iPfqPu869lTkJB" alt=""><figcaption><p>Sample of chatbot reply</p></figcaption></figure>

### Step 6: Publish your Zap

<figure><img src="/files/U6E2a7Ic31qfumzMUO5x" alt=""><figcaption><p>Click 'Publish'</p></figcaption></figure>

You’re all ready to go, hit “publish” to set-up your Zap! You’re now ready to use your Wonderchat bot on Slack.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wonderchat.io/integration-guides/slack/slack-via-zapier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
