mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-07 00:02:54 +08:00
doc: add in the dingtalk.md and lark.md stream config need add condition (#57)
* doc: add in the dingtalk.md and lark.md stream config need add condition * doc: add in the english dingtalk.md and lark.md stream config need add condition
This commit is contained in:
@@ -24,6 +24,34 @@ If this is the first time creating a bot, the right side is empty, you need to c
|
||||
|
||||
Click `Event Subscription`, change the push method to `Stream Mode Push`.
|
||||
|
||||
If card streaming is needed, you must apply for card permissions in the permission management, as shown:
|
||||

|
||||
|
||||

|
||||
|
||||
Additionally, for card messages you mainly need to create a card template and record the template ID to fill in the configuration, the process is as follows:
|
||||
> The card content template ID can be obtained by logging into the developer backend > [Card Platform](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV)
|
||||
|
||||
Fill in information when creating a new template, as shown:
|
||||

|
||||
|
||||
Select a preset template (just choose the first one and modify the template content later), as shown:
|
||||

|
||||
Click Use
|
||||

|
||||
Create
|
||||

|
||||
|
||||
After clicking Create you'll be redirected to edit the template. As shown, you can freely edit your desired card message:
|
||||

|
||||
|
||||
For the main content, keep the default 'content' unchanged:
|
||||

|
||||
|
||||
After editing and confirming everything is correct, save it and copy the template ID to fill in the configuration file:
|
||||

|
||||

|
||||
|
||||
## Fill in Configuration Information
|
||||
|
||||
Click `Credentials and Basic Information`, record `Client ID` and `Client Secret`,
|
||||
@@ -31,8 +59,13 @@ Click `Application Capabilities`, `Robot`, record the RobotCode and Robot Name.
|
||||
`markdown_card` is whether to enable Markdown form replies.
|
||||
Record the above configuration items and fill them in the LangBot bot configuration form
|
||||
|
||||
Click [Card Platform](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV), copy the corresponding bound template ID from the template list, and fill it into the card template ID field.
|
||||
|
||||

|
||||
|
||||
Streaming related:
|
||||

|
||||
|
||||
**Start LangBot**.
|
||||
|
||||
## Add Bot
|
||||
|
||||
@@ -15,6 +15,10 @@ Add the permissions shown in the image in the permission management:
|
||||
|
||||

|
||||
|
||||
If card streaming permissions are required, additionally add the following card creation and update permissions as shown in the image:
|
||||
|
||||

|
||||
|
||||
## Connect to LangBot
|
||||
|
||||
Find `app_id` and `app_secret` on the `Credentials and Basic Information` page.
|
||||
@@ -29,6 +33,9 @@ Fill in the relevant information in the form
|
||||
|
||||

|
||||
|
||||
Streaming related:
|
||||

|
||||
|
||||
After filling in, start LangBot. If configured successfully, the log will show `[01-29 23:42:56.796] manager.py (68) - [INFO] : Initializing platform adapter 1: lark`, keep LangBot running.
|
||||
|
||||
:::warning
|
||||
|
||||
Reference in New Issue
Block a user