- Select the target app and go to the app details page. Click Basic information > Credentials and basic information.
- Obtain the app’s Client ID and Client Secret.
- Request the API permission to send group assistant messages.
- Obtain the app’s access credential. See Obtain the access token of an internal app.
- On the Scenario group page in the developer backend, request a Bot. Once approved, obtain the bot ID parameter robotCode.
- On the Scenario group page in the developer backend, create a group template and obtain the group template ID parameter template_id.
- Bind the scenario group Bot to the scenario group template, save the edits, and return to the group scenario list.
- Open the corresponding group template, submit it for review, and click Publish.
- Call the create group API with template_id to obtain openConversationId.
- Call the send group assistant message API to send a Bot group message.
Prerequisites
Complete the Create an app process.Steps
- Select the target app and go to the app details page. Click Basic information > Credentials and basic information.
- Obtain the app’s Client ID and Client Secret.
- Click Development configuration > Manage permissions. Enter
qyapi_chat_managein the permission search box and request the permission. - Obtain the app’s access credential. See Obtain the access token of an internal app. When calling the API, use the access token to authenticate the caller’s identity.
- On the Scenario group page in the developer backend, request a Bot and obtain the bot ID parameter robotCode.
Note
Requesting a Bot requires review. Once approved, you can view the ID, as shown in the figure below.- On the Scenario group page in the developer backend, create a group template and obtain the group template ID parameter template_id.
- Bind the scenario group Bot to the scenario group template, save the edits, and return to the group scenario list.
- Open the corresponding group template, submit it for review, and click Publish.
Note
The review is approved automatically. No manual approval is required.- Call the create group API with template_id to obtain openConversationId.
- Call the send group assistant message API to send a Bot group message.