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

# How Popcorn works

> Understand the pieces of Popcorn: workspace, agents, channels, Knowledge, Inbox, campaigns, credits, and roles.

Popcorn connects three things: your store, a channel your customers write on, and an AI agent that answers there. Everything else in the app either feeds the agent (Knowledge, tools, store data) or works with the conversations it creates (Inbox, campaigns, reports). This page defines each piece the way the app names it and points to the detailed guide.

> [!NOTE]
>
> **Home** shows a notice that its insights are in beta, and **Spotlight** is free during its beta. Their numbers and behaviour may still change.

## Workspace

Your workspace is your business's account in Popcorn: its store connection, channels, agents, Knowledge, team, and credits. Setup creates one; teammates you invite join it, and one account can create more workspaces for other stores or brands. Workspace-wide options live under **Settings**, grouped into **Personal**, **Workspace**, **Automation**, **Commerce** and **Developer**. **Settings → General** holds the default currency, product options, and **Working hours**, which can hold campaigns until your business hours.

The workspace menu at the top of the sidebar switches workspaces and holds **Settings**, **Team members**, **Plan and billing**, **Language** (English, Arabic and Spanish) and **Sign out**. See [Workspace settings](https://docs.trypopcorn.ai/settings/workspace.md).

## AI agents

An agent answers your customers from your Knowledge, with the capabilities you switch on for it. Most agents run on **Popcorn's rules**: Popcorn writes and tests how the agent sells, answers and hands over, and you choose how it sounds with its **Voice**. An agent of type **Custom instructions** runs on instructions you write instead. The type is chosen when the agent is created and cannot be changed. Your workspace gets its first agent from setup, built from your website; you can create more with **New agent**. Each agent has five tabs:

| Tab | What it controls |
| - | - |
| **Instructions** | **Name**, then **Voice** (Popcorn's rules) or **Instructions** with **Draft with agent** (custom instructions), then **How it replies**, including **Check replies before sending** |
| **Knowledge** | Which knowledge bases the agent answers from, and what the nightly Knowledge check found |
| **Actions** | **Recommend products**, **Take orders in chat**, **Track orders**, **Send images in chat**, follow-ups, safety switches, and your custom **Tools** |
| **Handoff** | **Hand over to your team**, with **Handover topics** (kinds of chats your team always takes), your own rules and **Alerts** by Slack or email |
| **Channels** | Which WhatsApp numbers this agent answers, sandbox numbers, and the **Website chat widget** code |

**Default agent.** One agent carries the **Default** badge. It answers every connected number that is not assigned to another agent, Website chat that does not name an agent, and the sandbox. Use **Set as default** in the agents list to change it; the agent must be published first (**Publish to set as default**).

**Draft, publish, versions.** Edits are saved as a draft that customers do not see. **Publish changes** makes it live for new chats; in the same dialog you choose **New chats only** or **New chats and chats in progress**, and can add a note. **Version history** lists every version and lets you roll back. **Test agent** opens a chat with the published version in your browser. See [Agents overview](https://docs.trypopcorn.ai/agents/overview.md), [Popcorn's rules and Voice](https://docs.trypopcorn.ai/agents/popcorns-rules.md) and [Test and publish](https://docs.trypopcorn.ai/agents/test-and-publish.md).

## Channels

A channel is where customers reach the agent. Open **Integrations** to set up either:

* **WhatsApp.** Connect a WhatsApp Business number through Meta's sign-up window. The number's page lists **Connected numbers** (one is the default, with **Make default**), the business **Profile** customers see, and a **Website button** that opens a chat from your site. **Products in WhatsApp** connects your Meta catalog so the agent can send product cards. See [Channels overview](https://docs.trypopcorn.ai/channels/overview.md) and [Connect a WhatsApp number](https://docs.trypopcorn.ai/channels/whatsapp.md).
* **Website chat.** A chat window for your website, configured on the **Chat** and **Design** tabs. Copy the embed code and paste it into your pages. See [Set up Website chat](https://docs.trypopcorn.ai/channels/website-chat.md).

**Sandbox.** Popcorn's shared test number, +1 938 400 5252, answers messages from phone numbers registered in your workspace with your default agent, before you connect a number of your own. Register numbers with **Manage sandbox numbers** on an agent's **Channels** tab. See [Test and publish](https://docs.trypopcorn.ai/agents/test-and-publish.md#try-the-agent-on-whatsapp-with-the-sandbox).

## Knowledge

**Knowledge**, under **Your agent** in the sidebar, is what your agents read before they answer. It is organized in **folders**, and each agent is given access folder by folder. Inside a folder, **articles** are written from scratch, imported with a link, or created from a document.

| Article state | Meaning |
| - | - |
| **Draft** | The version you are editing. The agent never uses it. |
| **Published version** | The version the agent answers from. Each publish keeps the previous version in **History**. |

The **Used by agent** column shows which articles the agent matched and cited in conversations. Setup fills a **Business Knowledge Base** folder with the website pages it picked, or with the description you wrote. See [Knowledge overview](https://docs.trypopcorn.ai/knowledge/overview.md).

## Tools

A tool is an action the agent can take during a conversation beyond answering from knowledge: looking something up in another system or sending data to it. Store capabilities such as product recommendations, orders and order tracking are built in and switched on under **Actions**. Anything else is a custom tool you build, or add from the **Tools showcase**, then switch on in the **Tools** panel of the agent's **Actions** tab. See [Custom tools](https://docs.trypopcorn.ai/tools/overview.md).

## Conversations and the Inbox

Every exchange with a customer is a conversation, on **WhatsApp**, **Website widget**, **Template** (one your team started with a template), **API** or **Sandbox**. The **Inbox** folders show who is replying:

| Folder | What it means |
| - | - |
| **Agent** | The agent is replying to every customer message. **Take over** pauses it for that conversation. |
| **Needs you** | Every open conversation a person owns or nobody has picked up, across the whole team. The Inbox opens here. **Unassigned** is the part nobody has taken yet. |
| **Mine** | Conversations you took over or were assigned. |
| **Later** | Your conversations that are snoozed or waiting on the customer. |
| **Closed** | Resolved conversations, closed by your team or by the agent's **Close resolved chats**. A customer who writes again starts a new conversation. |
| **Test conversations** | Chats you start to try your agent. They are left out of **Reports**. |

A handover is the move from the agent to your team. It happens when the agent decides to hand over (the customer asks for a person, or a chat matches one of your handover topics or rules), when **Check replies before sending** gives up after its last retry, when spam or off-topic messages repeat, when the workspace has no credits left or its plan through Zid has ended, or when no agent is set up for the number. A template sent to one customer, outside a campaign, that failed for good also lands in **Needs you**. On handover the conversation goes to **Unassigned**, the agent pauses, and Popcorn alerts the people you chose in **Settings → Notifications**, plus Slack or email if the agent's **Alerts** are on. Your team can give a conversation back with **Hand back to agent**.

**The 24-hour window.** WhatsApp lets a business send free-form messages only within 24 hours of the customer's last message. In a conversation your team is handling, a line above the message box shows a countdown. When it expires the only way to write is an approved template through **Send template**. Website chat and API conversations have no window. See [Inbox overview](https://docs.trypopcorn.ai/inbox/overview.md) and [Work a conversation](https://docs.trypopcorn.ai/inbox/working-conversations.md).

## Campaigns and templates

**Campaigns** holds three tabs: **One-time**, **Automated** and **Templates**.

* **Templates** are WhatsApp message formats that Meta must approve before you can send them outside the 24-hour window. See [Templates](https://docs.trypopcorn.ai/campaigns/templates.md).
* **One-time campaigns** send an approved template to an audience you build, now or at a time you schedule. Customers whose last two marketing messages WhatsApp reported as undeliverable are left out automatically. See [Send a campaign](https://docs.trypopcorn.ai/campaigns/send-a-campaign.md).
* **Automated campaigns** send a template when something happens in your store, such as an abandoned cart or an order event. See [Automated campaigns](https://docs.trypopcorn.ai/campaigns/automated-campaigns.md).

## Credits

Credits are the unit Popcorn bills by. Your plan adds a monthly allowance, and **Plan and billing** shows what remains. The sidebar shows the credits left under your agent.

| Action | Credits |
| - | - |
| One reply from your agent, however many messages it contains | 1 |
| One-time campaign messages | 1 per 10 messages |
| Automated campaign messages | 1 per 5 messages |

Messages your team types in the Inbox are not charged, and neither are test chats from setup and **Home**. A new workspace starts with 100 free credits that expire after a month. When credits reach zero, the agent stops replying, the agent card in the sidebar reads **Stopped, out of credits**, and every new customer message goes to your team until you top up. You can buy extra credits in blocks of 1,000, turn on automatic top-up, or renew early; **Credit usage** breaks spending down by source and can be exported as CSV. See [Plans and credits](https://docs.trypopcorn.ai/billing/plans-and-credits.md) and [Credit usage](https://docs.trypopcorn.ai/billing/credit-usage.md).

## Connected store

Connecting Shopify, Salla or Zid under **Integrations** syncs products and inventory, customers and orders, cart and checkout, and order tracking. That is what lets the agent recommend real products, complete an order in the chat, and answer "where is my order". **Meta Business** syncs the same catalog to Meta so WhatsApp can show product cards. **Store health** on **Integrations** rates the connection **Healthy**, **Partly working**, **Not working**, **No recent activity** or **Not configured**. See [Connect your store](https://docs.trypopcorn.ai/integrations/overview.md).

## Team and roles

Invite colleagues under **Settings → Team members**; **Roles and permissions** shows what each role can do. The sidebar hides sections a role cannot view.

| Role | Access |
| - | - |
| **Owner** | Full access to everything; cannot be removed |
| **Admin** | Full access to all app resources |
| **Manager** | Manages daily work (Inbox, campaigns, templates, Knowledge, products, customers, orders); views and edits agents; read-only on analytics, team, settings, billing, API keys and integrations |
| **Agent** | Handles conversations: works the Inbox, edits customers, creates templates, macros and tags; read-only elsewhere |
| **Viewer** | Read-only access to view data |

See [Team and roles](https://docs.trypopcorn.ai/settings/team-and-roles.md).

## Where things are in the app

| Sidebar item | What it holds |
| - | - |
| **Home** | Your agent's setup until it is live, then results for a date range |
| **Inbox** | All conversations and their folders |
| **Customers** | Everyone who has messaged you, plus customers synced from your store |
| **Orders** | Orders placed through conversations |
| **Products** | The catalog synced from your store |
| **Campaigns** | **One-time**, **Automated** and **Templates** |
| **Reports** | Conversation and response-time analytics |
| **Agent**, **Knowledge**, **Spotlight** | Under **Your agent**: your agents, their folders and articles, and quality scores for closed conversations |
| The agent card | The default agent's status (**Live on WhatsApp**, **Not on WhatsApp yet**, **Not published yet**, **Stopped, out of credits** or **Stopped, plan ended**), or a WhatsApp problem (**WhatsApp needs a reconnect**, **WhatsApp messages go to another app** or **Meta is checking WhatsApp**), and the credits left |
| **Integrations** | Stores, WhatsApp, Website chat and the Meta catalog |
| **Help** | **Ask Nour** (in-app help chat), **Docs** and **Keyboard shortcuts** |

**Settings → AI assistants** connects ChatGPT, Claude or Codex to your workspace so you can run it by chatting with them; they ask before anything irreversible and stay within your role. **Settings → API keys and webhooks** is for developers. See [AI assistants](https://docs.trypopcorn.ai/ai-assistants/overview.md) and the [API reference](https://docs.trypopcorn.ai/api-reference/introduction.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.