Peer Channels 
Cognipeer allows you to connect your Peers with external communication platforms like Slack, WhatsApp Twilio, Chatwoot, and a customizable Webchat. These channels enable your Peers to interact seamlessly with customers, team members, and external systems in real-time, automating tasks and enhancing communication workflows.
Benefits of Peer Channels 
By connecting your Peers with communication platforms, you can:
- Automate customer service workflows by responding to inquiries through messaging apps.
- Provide real-time support to users on platforms they are already using, such as Slack or WhatsApp.
- Enable Peers to create tickets, manage conversations, and handle inquiries directly from your integrated systems.
Supported Channels 
1. Slack Channel 
Description: Connects Peers to Slack channels to automate internal communication, task management, and customer support.
Use Cases:
- Respond to questions in Slack channels automatically.
- Create task reminders or action items in Slack based on team discussions.
- Monitor Slack channels and alert team members when important actions are needed.
Example Commands:
- Send a message in the #support channel to notify the team about a new ticket.
- Reply to the question in the #general channel with details about the current project status.

2. WhatsApp Twilio Channel 
Description: Allows Peers to send and receive messages through WhatsApp using Twilio's API. Ideal for customer support and notification services.
Use Cases:
- Automatically reply to customer inquiries received via WhatsApp.
- Send appointment reminders or order updates to customers on WhatsApp.
- Handle frequently asked questions with automated Peer responses.
Example Commands:
- Send a confirmation message to the customer’s WhatsApp number after they place an order.
- Respond to customer queries received on WhatsApp with relevant product information.
Setup Instructions:
- Obtain a Twilio API key.
- Configure the WhatsApp number in Cognipeer's Channels settings.
- Enable the WhatsApp Peer channel and define specific workflows (e.g., respond to order status inquiries, customer service requests).

3. Chatwoot Channel 
Description: Chatwoot channel connects your Peers with customer communication through Chatwoot, a widely used customer engagement platform.
Use Cases:
- Handle live customer conversations with automated responses.
- Use Peers to manage and resolve tickets.
- Ensure that common customer inquiries are handled instantly through predefined Peer workflows.
Example Commands:
- Create a new support ticket in Chatwoot for this inquiry.
- Send a follow-up message to the customer after resolving their issue in Chatwoot.
Setup Instructions:
- Sign in to Chatwoot and generate an API token.
- In Cognipeer’s Channels settings, connect Chatwoot using the API token.
- Define workflows and triggers that automatically create or manage tickets based on incoming messages.

4. Webchat Channel 
Description: Cognipeer's Webchat channel allows you to embed Peers into your own systems using a customizable script or URL. This enables real-time interaction with users on your website or application.
Use Cases:
- Provide instant customer support on your website.
- Automate FAQs and other common inquiries directly on your platform.
- Personalize the chat experience based on user information.
Channel Methods 
Embed via Script
To embed the Webchat using a script, include the following code snippet in your website:
<script src="https://app.cognipeer.com/scripts/cognipeer.sdk.js"></script>
<script>
  window.cognipeer.chat({
    hookId: "HOOK_ID",
    contact: {
      name: "John",
      surname: "Doe",
    },
  });
</script>
