> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/ai-chatbot-studio.md).

# AI Chatbot Studio

## How to Create a Bot Using Chatbot Studio &#x20;

### Overview &#x20;

The Prompt-Based AI Chatbot Studio in Ownchat allows you to generate a chatbot using a natural-language prompt. You can describe the required bot behavior, generate bot actions automatically, publish the bot, and configure the AI Agent node with the required model and tools.

{% embed url="<https://app.supademo.com/demo/cmvg5kvnh04ahqmh2262rx9se?utm_source=link>" %}

You can also edit, duplicate, add bots to the library, or delete bots using the available bot management options.

### 1. Open Chatbot Studio &#x20;

1. Click Bot in the left sidebar to open the bot management page.

{% embed url="<https://app.supademo.com/demo/cmvggs9ws0163xl0j94nfso0f?utm_source=link>" %}

2. Locate the icon used to generate AI content from a prompt.
3. Click the icon to start creating your bot using the Prompt-Based AI Chatbot Studio.

{% embed url="<https://app.supademo.com/demo/cmvggvn2901ppxr0j1crbkn9u?utm_source=link>" %}

### 2. Generate a Bot Using a Prompt &#x20;

1. Enter a prompt describing the chatbot you want to create.
2. Include the required bot behavior, conversation flow, actions, and business requirements in your prompt.
3. Review the generated content.
4. If you want to make changes, click the message input box.
5. Enter your instructions for the required changes and generate the updated prompt.
6. Copy the updated prompt and paste it into the input box, if required by the workflow.
7. Review the updated bot content before proceeding.

{% embed url="<https://app.supademo.com/demo/cmvggxdt901f7vj0jd434jo7t?utm_source=link>" %}

Provide clear instructions in your prompt to help generate a bot that matches your requirements.

### 3. Generate Bot Actions Automatically &#x20;

1. Submit the prompt to generate the bot.
2. Review the generated bot actions.
3. Verify that the required actions and links have been created.

The generated actions are created automatically and are available in the Actions section, similar to imported actions. Relevant links are included where applicable.

Review the generated actions to ensure they match the intended chatbot workflow.

### 4. Publish the Bot &#x20;

1. Review the generated bot flow, actions, and AI Agent configuration.
2. Click Publish My Bot to publish the bot.

{% embed url="<https://app.supademo.com/demo/cmvggz26x01fgvj0jr555lcuk?utm_source=link>" %}

Ensure that the bot is configured correctly before publishing.

{% embed url="<https://app.supademo.com/demo/cmvgicnij01k4xl0jsuqz2500?utm_source=link>" %}

### 5. Configure the AI Agent Node &#x20;

1. Click the AI Agent node to open its settings.
2. Select the required AI model.
3. Configure the tools needed for the AI Agent.
4. Review the configuration to ensure the model and tools support the intended bot behavior.

{% embed url="<https://app.supademo.com/demo/cmvgh2ml701pyxr0j6pk7vsiw?utm_source=link>" %}

Configure the AI Agent according to your requirements before publishing the bot.

### 6. Manage an Existing Bot &#x20;

1. Locate the bot on the bot management page.
2. Click the three-dot menu to view the available bot management options.
3. Select the required option based on the action you want to perform.

{% embed url="<https://app.supademo.com/demo/cmvghcd2f00jywb0jd1pt8jlf?utm_source=link>" %}

#### Edit Bot &#x20;

Select Edit Bot to make changes to the bot manually.

#### Edit with AI &#x20;

Select Edit with AI to modify the bot using a prompt. Enter the required changes and review the generated updates.

#### Add to Library &#x20;

Select Add to Library to add the bot to the library. This allows other Ownchat users to download and use the bot for their own requirements.

#### Duplicate &#x20;

Select Duplicate to create a copy of the bot along with its existing actions.

#### Delete &#x20;

Select Delete to remove the bot when it is no longer required. Review the selected bot before confirming the deletion, if prompted.

### Summary &#x20;

The Prompt-Based AI Chatbot Studio in Ownchat allows you to create chatbots by describing your requirements in a prompt. You can refine the generated content, automatically create bot actions, configure the AI Agent node with the required model and tools, and publish the bot.

You can also manage existing bots using the available options to edit them manually, modify them with AI, add them to the library, duplicate them with their existing actions, or delete them when they are no longer required. &#x20;
