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

# Deploy an agent

<Tip> Full-access users can deploy any agent in their organization. Individual builders can deploy agents they create.</Tip>
To deploy a no-code agent, first click on the **Deploy** tab at the top of the page. Depending on your organization's status, you'll have up to four deployment options:

* [**Playground**](#playground): Receive a URL to share with others to test the agent.
* [**Embed agent**](#embed-agent): Embed the agent on your own website or portal.
* [**Deploy to Slack**](#deploy-to-slack): Enable the agent for use within Slack.
* [**Deploy to Writer**](#deploy-to-writer): Enable the agent for use within Writer.

## Playground

Playground is the easiest way to share and test your agent. Just go to **Deploy** and turn on the Playground toggle. You can either copy the Playground URL to share with others, or open the agent in **Playground** in a new tab.

<img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/playground.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=c29dc8d98b38428bff8eab3e3b2b66b6" alt="Deploying an agent to the playground" width="1478" height="492" data-path="images/no-code/playground.png" />

The **Open** button will take you directly to this agent through the Playground, while the **Copy link** option will generate a shareable link that you can send to any tester or end user to get feedback on your agent.

<Warning>
  Links to the Playground view of an agent don't require authentication. This can be useful for providing external users access to test an agent (they won't be able to navigate elsewhere within your AI Studio).
</Warning>

## Embed agent

Embedding an agent allows you to embed the agent on your own website or portal.

<Steps>
  <Step title="Toggle embed option">
    First, go to the **Deploy** tab and toggle the **Embed Agent** option.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/embed-agent.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=96ce68123d0c83abda968cbc359b9d5c" alt="Embedding an agent" width="1498" height="696" data-path="images/no-code/embed-agent.png" />
  </Step>

  <Step title="Add domains to allowlist">
    Prevent unauthorized use of this agent by adding domains to the allowlist

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/embed-allowlist.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=73a564dfc47a41b3b765848d018ff094" alt="Add domains to allowlist" width="1482" height="266" data-path="images/no-code/embed-allowlist.png" />
  </Step>

  <Step title="Select embed style">
    After enabling embed, select your preferred style: centered or widget.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/embed-style.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=e26f0d3c823abb020e72b96fbaca0e13" alt="Embedding styles" width="1486" height="704" data-path="images/no-code/embed-style.png" />
  </Step>

  <Step title="Copy the snippet">
    You'll see a block of code that contains the snippet you need to include wherever you want, such as on your own website or portal. Copy the iFrame snippet and share it with your engineering team to embed this agent. You can disable the embed snippet at any time in AI Studio, and any changes you push will immediately update the embeds.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/embed-iframe.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=96e20b081f040c853e7e13bbd9fb5275" alt="Copy the iFrame snippet" width="1480" height="330" data-path="images/no-code/embed-iframe.png" />
  </Step>
</Steps>

## Deploy to Slack

If your organization uses chat agents with General chat mode or Knowledge Graph mode with AI Studio graphs, you'll see a Deploy to Slack option. This allows you to enable the agent for use within Slack. Once deployed, the agent will be available in Slack, and you'll be able to access it directly from within your workspace.

<Warning>Deployed agents in Slack will charge token usage. Please refer to our [pricing page](/home/pricing) for more details.</Warning>
<Note>You'll have access to this deployment option if your organization uses agents with chat capabilities using General chat mode or Knowledge Graph mode.</Note>

<Steps>
  <Step title="Toggle Slack option">
    First, go to the **Deploy** tab and click the **Connect to Slack** link.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/deploy-slack.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=b823e742dd60284a06b34ed59865e53c" alt="Deploying an agent to Slack" width="1472" height="320" data-path="images/no-code/deploy-slack.png" />
  </Step>

  <Step title="Go through the OAuth flow">
    Next, you'll need to go through the OAuth flow to allow Writer to access your Slack workspace.

    <img src="https://mintcdn.com/writer/kYaX1Myslb-BtXRR/images/no-code/slack-2.png?fit=max&auto=format&n=kYaX1Myslb-BtXRR&q=85&s=62b8eee2c9d574ad1de3b4b6c2f9ee1c" alt="Go through the OAuth flow" width="2048" height="1536" data-path="images/no-code/slack-2.png" />
  </Step>

  <Step title="Toggle Slack option">
    You can now toggle the **Deploy to Slack** option to enable the agent for use within Slack.
  </Step>

  <Step title="Connect to Writer">
    Once the agent is Slack-enabled, you can start interacting with it by clicking the Writer button in Slack and selecting "Connect to Writer."

    <img src="https://mintcdn.com/writer/kYaX1Myslb-BtXRR/images/no-code/slack-1.png?fit=max&auto=format&n=kYaX1Myslb-BtXRR&q=85&s=2f27881230b6ee87a9943fe4fa6dfe52" alt="Connect to Writer" width="2244" height="1732" data-path="images/no-code/slack-1.png" />
  </Step>

  <Step title="Return to Slack">
    When you return to Slack, the agent will be available for use. You'll see that the Q\&A functionality is now integrated within Slack.

    <img src="https://mintcdn.com/writer/kYaX1Myslb-BtXRR/images/no-code/slack-3.png?fit=max&auto=format&n=kYaX1Myslb-BtXRR&q=85&s=9fa1edeb44c3394624f35c12a7ae2a27" alt="Return to Slack" width="2240" height="1728" data-path="images/no-code/slack-3.png" />
  </Step>

  <Step title="Select interaction mode">
    When using the agent in Slack, you'll have two interaction modes:

    * **General mode:** If the agent uses General mode and doesn't include a Knowledge Graph mode, simply select it and start chatting.
    * **Knowledge Graph mode:** If the agent includes a Knowledge Graph, select the interaction mode—either Knowledge Graph mode or General mode.
      * In General mode, it'll function like a non-graph-enabled agent.
      * In Knowledge Graph mode, you'll be prompted to connect the relevant graphs. Once connected, you can start chatting with the agent.

    If the agent is built with specific data constraints (e.g., a sales Q\&A agent linked only to Salesforce data), you'll select the Knowledge Graph, and the setup will be complete without needing to choose different graphs. This deployment mode leverages the configurations set in the agent builder, ensuring the agent behaves as expected in Slack

    <img src="https://mintcdn.com/writer/kYaX1Myslb-BtXRR/images/no-code/slack-4.png?fit=max&auto=format&n=kYaX1Myslb-BtXRR&q=85&s=1805d6373d412037084a95a930b23ab5" alt="Select interaction mode" width="2240" height="1728" data-path="images/no-code/slack-4.png" />
  </Step>
</Steps>

## Deploy to Writer

If your organization uses the Writer App in addition to AI Studio, you'll see a **Deploy to Writer** option. This allows you to select specific teams in Writer where you want to deploy the agent.
<Note>You'll have access to this option if you have access to the Writer App.</Note>

<Steps>
  <Step title="Update Agent Info">
    Before deploying to Writer, update the **Agent Info** under the **Agent Guide** tab to provide helpful information about the agent to users.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/agent-info.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=02662579b7a8926cab7528f2039bf12b" alt="Agent Info" width="1758" height="1066" data-path="images/no-code/agent-info.png" />
  </Step>

  <Step title="Deploy to Writer">
    Click the deploy button. Once deployed, the agent will be available to those teams within the app library. You can choose to deploy the agent to all teams or select specific teams.

    <img src="https://mintcdn.com/writer/EtzIGhya5-RmdX2Q/images/no-code/deploy-writer.png?fit=max&auto=format&n=EtzIGhya5-RmdX2Q&q=85&s=390de889221d2cffee03f880a1bf8c7c" alt="Deploy to Writer" width="1476" height="396" data-path="images/no-code/deploy-writer.png" />
  </Step>
</Steps>
