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

# Duckie

> Connect Duckie's AI support agents to your Plain workspace to automate technical support for B2B SaaS teams.

The Duckie integration help B2B SaaS support teams resolve technical tickets faster by connecting to your existing tools and knowledge sources.

**Capabilities**

| **Capability**         | **Supported**                      |
| ---------------------- | ---------------------------------- |
| **Knowledge Source**   | ✗                                  |
| **Deployment Trigger** | ✓ Respond to threads               |
| **Tool Actions**       | ✓ Reply, update status, add labels |

## How to set it up

**Step 1: Get API Credentials**

1. Go to your Plain workspace settings.

2. Go to **API keys.**

3. Create a new API key with full permissions.

4. Copy the **Workspace ID** and **API key.**

**Step 2: Connect in Duckie**

1. Go to **Settings → Connections** in Duckie.

2. Find **Plain** and click **Connect.**

3. Enter your details:

   * **Workspace ID**: Your Plain workspace ID

   * **API key**: The key you created

4. Click **Connect.**

**Step 3: Using as a Deployment Trigger**

Deploy an agent to respond to Plain threads:

1. Go to **Deploy**

2. Click **Create Deployment**

3. Select your agent

4. Choose **Plain** as the trigger

5. Configure events:

   * **New thread**: When a customer starts a conversation

   * **Customer reply**: When a customer responds

## Available tools

| **Tool**              | **Description**            |
| --------------------- | -------------------------- |
| `plain_reply`         | Send a reply to the thread |
| `plain_add_label`     | Add a label to the thread  |
| `plain_change_status` | Update thread status       |
| `plain_get_customer`  | Get customer information   |

Check out [**Duckie's Plain integration docs**](https://docs.duckie.ai/integrations/ticketing/plain) for full setup instructions.

For a general overview of how AI agents work in Plain (machine users, webhooks, agent status), see [**Using your own agent**](/docs/agents/bring-your-own-agent).
