1. Function Introduction

This article will explain how to obtain the API of the Coze robot. After obtaining it, you can fill in the installation in [App Store - Coze].

This article covers the China version of Coze (coze.cn). For the international version, open the matching tutorial from 'Coze (Global)' in the App Store.

2. Operation Process

1

2.1 Enter the Coze Homepage

Click to log in to the Coze platform. After successful login, open the Coze homepage and find the [API] entrance in the lower left corner.

进入扣子主页
2

2.2 Create a New App

Find [Authorization] → [OAuth Application] → [Create a new application] and fill in the information:

  • Application Type: Select [Ordinary]
  • Client Type: Select [Service Application]
  • Application name can be filled in as needed, but cannot be repeated with other applications
创建新的应用创建应用详情
3

2.3 Get Public Keys and pem File

Click [Create Key], the system will automatically generate the public key (Public Keys) and download the pem file.

获取公钥
4

2.4 Get Client ID

After successful creation, it will automatically jump back to the [Authorization] page, where the Application ID is the Client ID you need.

获取 Client ID
5

2.5 Create a Robot and Publish to API

Go back to the Coze homepage, find [Workspace], create a new Agent and fill in the relevant information.

After successful creation, it will automatically jump to the operation page, click [Publish].

After configuration, you must check [Agent] → [API], and click [Publish] again.

创建机器人1创建机器人2创建机器人3创建机器人4创建机器人5
6

2.6 Get Bot ID

After completion, you will be redirected to the operation page, and the last part of the URL is the Bot ID.

获取 Bot ID
7

2.7 Fill in the Information intoSaleWisely

You can fill in the name yourself, it is not mandatory to be consistent with Coze; fill in other information obtained according to the above tutorial.

填写至 SaleWisely
8

2.8 Call in AI Robot

Create or edit a robot in [Robot] → [AI Robot] to call it.

在机器人中调用

3. Frequently Asked Questions

Q1: What is the difference between Coze (Chinese version) and Coze (international version)?

Model Compatibility: Currently, the domestic version is only compatible with "Skylark Large Model" as its dialogue engine, while the international version is compatible with large models such as GPT 3.5/GPT 4.

Integration Capability: Domestic users can directly integrate to platforms such as WeChat and Lark, while international users can integrate to Facebook Messenger, Slack, Telegram, etc.

Q2: When installing Coze inSaleWisely, it prompts that the operation failed

Cause: After creating the robot, you did not click [Publish].

Solution: Please refer to Step 5, ensure the robot has been published to API.