# Coze

**Creating A Bot Inside Coze**

From the dashboard, click on “Create Bot”

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FU3N7IH8hj2iFVOIWooGq%2FUntitled.png?alt=media&#x26;token=90e81145-a9c6-4285-903e-e2f567b3127e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F829gsOxeQsZs0KiFSGcE%2FUntitled.png?alt=media&#x26;token=aacf237c-a7b6-4ab7-90e9-b7af6840d602" alt=""><figcaption></figcaption></figure>

Your bot model is now created, click on Publish to save your progress.

### **Integrating Coze with Rapidbott** <a href="#integrating-coze-with-uchat" id="integrating-coze-with-uchat"></a>

From your dashboard, go to Integrations sections and select “Coze” under the Artificial Intelligence section.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FuOsNQBfIUyCHrdZfurcn%2Fimage.png?alt=media&#x26;token=faac80c5-9e8f-4b6d-8de8-582fa3c6fc5a" alt=""><figcaption></figcaption></figure>

For API Key, from the Coze’s dashboard, click on “Coze API” tab from the left side menu panel.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F6qJvBmkyvF69JErm4Zvz%2FUntitled.png?alt=media&#x26;token=3cdbcb60-8ffc-4125-b084-0e31e9d300fe" alt=""><figcaption></figcaption></figure>

From here, click on API Tokens,

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FBaYZh8JRbHS6LzcePDHJ%2FUntitled.png?alt=media&#x26;token=33694eee-595a-44c4-8efe-874a0fd5eee9" alt=""><figcaption></figcaption></figure>

Create a new personal access token,

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FKFVQ2LSaQV7efQdU2Jxk%2FUntitled.png?alt=media&#x26;token=17e1c3a7-1f3a-41d2-8b93-4b112af3d2ce" alt=""><figcaption></figcaption></figure>

Make sure you have all the necessary tabs and permissions selected,

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F2sH5zKYKvfzXiV5ez2ZY%2FUntitled.png?alt=media&#x26;token=e6463d69-40e2-48bf-afdc-cd8a23aa4d29" alt=""><figcaption></figcaption></figure>

For **Default Bot ID,** go to your bot model inside Coze, and copy the last set of integers after the /bot/ url key parameter.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F5jlacBxG9yBf70dBj8wk%2FUntitled.png?alt=media&#x26;token=0e18959e-1cc5-42ef-9714-84c4ca7b6c2a" alt=""><figcaption></figcaption></figure>

*Hint: Here the default bot ID is 7394308713487581189*

&#x20;

Once done, copy the details inside **Rapidbott** and click **Save**.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F4B8nq5rWuPnQnyxjCj4t%2Fimage.png?alt=media&#x26;token=22b4fdd2-6265-47f0-905b-2073402ad5b6" alt=""><figcaption></figcaption></figure>

### **Using Coze Actions Inside Rapidbott** <a href="#using-coze-actions-inside-uchat" id="using-coze-actions-inside-uchat"></a>

You can find Coze actions inside the Action node under the Integrations tab.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FR5KLtAnN7SKZjftR44qX%2FUntitled.png?alt=media&#x26;token=834a0326-626a-4e90-ae55-e74327d17247" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FGDK9mieCzc5FEqczx8vs%2FUntitled.png?alt=media&#x26;token=d727df0f-caca-457f-b4e8-aa60ac1c6f77" alt=""><figcaption></figcaption></figure>

You can now map the replies generated by your bot model to send it to the bot users as response.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F7akZVKYMx7ZZBE1Lx7CE%2FUntitled.png?alt=media&#x26;token=6fa30753-a19c-42cd-b736-d2748e756b4f" alt=""><figcaption></figcaption></figure>

Note: If you are unable to connect your bot model with **Rapidbott**, make sure you have “Bot as API” enable on your bot model inside Coze when publishing the bot

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FwXQYGtHdJeaTY4KUltMT%2FUntitled.png?alt=media&#x26;token=c76edb64-4414-45ac-a9c5-e6a04ff254af" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rapidbott.com/help-center/artificial-intelligencs/coze.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
