docs(dingtalk): use bundled card templates

This commit is contained in:
Hyu
2026-10-10 20:31:59 +08:00
parent 0edddd1516
commit 6f5ea77d85
5 changed files with 153 additions and 120 deletions
+50 -39
View File
@@ -28,18 +28,58 @@ LangBot supports one-click DingTalk app creation with automatic credential filli
![Config Success](/images/zh/deploy/bots/dingtalk/dingtalk_config_success.png)
7. **Manually fill in the bot name** (must match the DingTalk bot name), and the **Robot Code** (required for image/file features — get it from DingTalk Developer Console > Bot Configuration)
![Fill Name and Code](/images/zh/deploy/bots/dingtalk/dingtalk_fill_name_and_code.png)
8. Click **Submit** to complete
7. Click **Submit** to complete. LangBot automatically identifies the bot.
<Warning>
After one-click setup, normal text chat works immediately. However:
- **Image/File support**: Requires the Robot Code (RobotCode) to be filled in. If not filled during one-click setup, get it from DingTalk Developer Console > Bot Configuration
- **Streaming replies**: Requires manually configuring a card template ID — see the Card Template section below
One-click setup fills in app credentials but does not create card templates. For streaming replies, import the LangBot streaming reply template, set Card Template ID to automatically enable streaming replies; leave it empty for ordinary replies. For human input interactions, import the separate human input template and set Human Input Card Template ID. Enable the required card permissions in your DingTalk app.
</Warning>
## Configure card templates (use the LangBot templates)
For card replies, import the templates supplied by LangBot instead of building components and binding variables manually. Enable the required card permissions for your DingTalk app, then choose the template for your use case:
| Purpose | Download | LangBot field |
| --- | --- | --- |
| Streaming replies with separate reasoning and answer regions | `dingtalk_stream_card.json` | Card Template ID |
| Pause for user input, a choice, or confirmation | `dingtalk_human_input_card.json` | Human Input Card Template ID |
### Create and import the streaming reply template
1. In the DingTalk adapter configuration, click **Download Streaming Reply Card Template** below **Card Template ID**.
2. Open [DingTalk Card Platform](https://open-dev.dingtalk.com/fe/card), select the same organization as your bot app, and click **New Template**.
3. Enter a name. Set **Card Type** to **Message Card**, **Template Scenario** to **AI Card**, associate your bot app, and select **Build from Blank**. Click **Create Blank Template**. The screenshot shows these options in the Chinese interface.
![Create a message card with the AI Card scenario, associated bot app, and blank creation mode](/images/zh/deploy/bots/dingtalk/create_ai_card_template.png)
4. In the card editor, choose **More → Import Card Template** and select `dingtalk_stream_card.json`.
![Import Card Template in the card editor's More menu](/images/zh/deploy/bots/dingtalk/import_card_template.png)
<Note>
The import option is inside the editor, not on the template list page. Importing replaces the current template contents, so use a new blank template. Keep the imported components, variables, and event bindings.
</Note>
5. Review the preview, **save and publish** the template, and copy its ID. Saving a draft is insufficient: `param.templateUnpublished` means the template has not been published.
6. Paste the ID into **Card Template ID** in LangBot and save to automatically enable streaming replies. Clear this field and save to return to ordinary replies.
The template includes LangBot branding and separate reasoning and answer regions. Reasoning is expanded during generation and collapsed by default when finished; users can expand it again. The footer offers answer copying, thumbs-up/down controls, and an AI-generated content label. The pipeline still controls whether reasoning is removed. If removed, the reasoning region is hidden. Ordinary messages with reasoning retained show literal `<think>` and `</think>` markers separated from the answer by blank lines.
Card Auto Layout is enabled by default; the supplied streaming reply template includes the required variables. For an existing bot saved with this option off, enable it and save the configuration. You can keep it off for a narrower card.
To update, download and import the latest template, then save and publish again. If you create a different template, also replace its ID in LangBot. Existing templates bound only to `content` remain compatible but do not offer the new separate reasoning region.
## Import the human input card template
Human input is used when a workflow or plugin waits for information, a choice, or confirmation before continuing, such as a Dify Human Input node. Ordinary chat and streaming replies alone do not require this template.
1. Next to **Human Input Card Template ID**, click **Download Human Input Card Template** to save `dingtalk_human_input_card.json`.
2. Follow the creation steps above to create a separate **Message Card → AI Card → Build from Blank** template associated with your bot app.
3. Choose **More → Import Card Template** in the editor and import the human input JSON. Keep its input fields, buttons, variables, and event bindings.
4. **Save and publish**, enter this template's ID into **Human Input Card Template ID** in LangBot, and save the bot configuration.
Import the two templates separately and use their corresponding fields. The human input template does not replace the streaming reply template or automatically enable streaming replies.
---
## Manual Configuration
@@ -71,45 +111,16 @@ If card streaming is needed, you must apply for card permissions in the permissi
![After applying for card permissions](/images/zh/deploy/bots/dingtalk/dingtalk7.png)
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:
![Fill in information for new template](/images/zh/deploy/bots/dingtalk/dingtalk8.png)
Select a preset template (just choose the first one and modify the template content later), as shown:
![Select preset template](/images/zh/deploy/bots/dingtalk/dingtalk9.png)
Click Use
![Click](/images/zh/deploy/bots/dingtalk/dingtalk10.png)
Create
![Create](/images/zh/deploy/bots/dingtalk/dingtalk11.png)
After clicking Create you'll be redirected to edit the template. As shown, you can freely edit your desired card message:
![Edit template](/images/zh/deploy/bots/dingtalk/dingtalk12.png)
For the main content, keep the default 'content' unchanged:
![Don't modify](../../../images/zh/deploy/bots/dingtalk/dingtalk13.png)
Widescreen configuration parameters, you need to add . in the template variables. See [DingTalk Widescreen Configuration](https://open.dingtalk.com/document/development/configure-widescreen-cards)
![Widescreen Configuration](../../../images/zh/deploy/bots/dingtalk/dingtalk16.png)
After editing and confirming everything is correct, save it and copy the template ID to fill in the configuration file:
![Save](../../../images/zh/deploy/bots/dingtalk/dingtalk14.png)
![Copy template ID](../../../images/zh/deploy/bots/dingtalk/dingtalk15.png)
For card templates, follow the steps above to import and publish the templates supplied by LangBot.
### Fill in Configuration Information
Click `Credentials and Basic Information`, record `Client ID` and `Client Secret`,
Click `Application Capabilities`, `Robot`, record the RobotCode and Robot Name.
Click `Credentials and Basic Information`, record `Client ID` and `Client Secret`, and enter these credentials in the LangBot adapter configuration.
`markdown_card` is whether to enable Markdown form replies. When this configuration item is disabled, the `@Sender` configuration switch will not take effect.
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.
![Connect to LangBot](/images/zh/deploy/bots/dingtalk/connect_to_langbot.png)
Streaming related:
![img.png](../../../images/zh/deploy/bots/dingtalk/dingtalk17.png)
**Start LangBot**.
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+53 -41
View File
@@ -6,7 +6,7 @@ icon: "/images/platforms/dingtalk.svg"
DingTalk に LangBot をデプロイします。
## 一键設定(おすすめ)
## ワンクリック設定(おすすめ)
LangBot は DingTalk アプリのワンクリック作成とクレデンシャルの自動入力に対応しています。手動でのコピペは不要です。
@@ -16,7 +16,7 @@ LangBot は DingTalk アプリのワンクリック作成とクレデンシャ
![一键创建應用](/images/zh/deploy/bots/dingtalk/dingtalk_oneclick_qrcode.png)
4. DingTalk で QR コードをスキャンし、手机端で组织を選択
4. DingTalk で QR コードをスキャンし、スマートフォンで組織を選択
![組織を選択](/images/zh/deploy/bots/dingtalk/dingtalk_select_org.png)
@@ -24,22 +24,62 @@ LangBot は DingTalk アプリのワンクリック作成とクレデンシャ
![作成または選択](/images/zh/deploy/bots/dingtalk/dingtalk_create_or_select.png)
6. 認証成功後、手机端に「設定成功」と表示され、Client ID と Client Secret が LangBot WebUI に**自動入力**されます
6. 認証成功後、スマートフォンに「設定成功」と表示され、Client ID と Client Secret が LangBot WebUI に**自動入力**されます
![設定成功](/images/zh/deploy/bots/dingtalk/dingtalk_config_success.png)
7. **ボット名を手動で入力**(DingTalk のボット名と一致させる必要があります)と**ロボットコード**(画像/ファイル機能に必須、DingTalk 開発者コンソール > ボット設定から取得)を入力
![名前とコードの入力](/images/zh/deploy/bots/dingtalk/dingtalk_fill_name_and_code.png)
8. **送信** をクリックして完了
7. **送信** をクリックして完了します。LangBot がボットの識別情報を自動的に取得します。
<Warning>
一键設定後、テキストの送受信はすぐに利用できます。ただし:
- **画像/ファイル対応**:ロボットコード(RobotCode)の入力が必要です。一键設定時に未入力の場合は、DingTalk 開発者コンソール > ボット設定から取得して入力してください
- **ストリーミング返信**:カードテンプレート ID の手動設定が必要です。下記「ボットの設定」のカードテンプレート作成セクションを参照してください
ワンクリック設定ではアプリの認証情報が入力されますが、カードテンプレートは作成されません。ストリーミング返信には LangBot の返信テンプレートをインポートし、Card Template ID を設定すると自動的に有効になります。空欄の場合は通常の返信になります。人工入力には別のテンプレートをインポートし、Human Input Card Template ID を設定してください。DingTalk アプリのカード権限も必要です。
</Warning>
## カードテンプレートの設定(LangBot 提供のテンプレートを推奨)
カード返信には、LangBot が提供するテンプレートをインポートしてください。コンポーネントや変数を手動で設定する必要はありません。DingTalk アプリで必要なカード権限を有効にしてから、用途に応じたテンプレートを選びます。
| 用途 | ダウンロードするファイル | LangBot の設定項目 |
| --- | --- | --- |
| 思考と回答を分けて表示するストリーミング返信 | `dingtalk_stream_card.json` | Card Template ID |
| ユーザーの入力・選択・確認を待って処理を続行 | `dingtalk_human_input_card.json` | Human Input Card Template ID |
### ストリーミング返信テンプレートの作成とインポート
1. DingTalk アダプター設定の **Card Template ID** の下にある **Download Streaming Reply Card Template** をクリックします。
2. [DingTalk カードプラットフォーム](https://open-dev.dingtalk.com/fe/card)でボットアプリと同じ組織を選び、**新規テンプレート**を作成します。
3. 名前を入力し、カード種類を **メッセージカード(消息卡片)**、シナリオを **AI カード(AI 卡片)** に設定します。現在のボットアプリを関連付け、作成方法で **空白から作成(空白搭建)** を選び、**空白テンプレートを作成(创建空白模板)** をクリックします。
![メッセージカード、AI カード、関連アプリ、空白から作成を選択する画面](/images/zh/deploy/bots/dingtalk/create_ai_card_template.png)
4. エディター上部の **その他 → カードテンプレートをインポート(更多 → 导入卡片模板)** から `dingtalk_stream_card.json` を選択します。
![エディターのその他メニューにあるインポート項目](/images/zh/deploy/bots/dingtalk/import_card_template.png)
<Note>
インポート項目はテンプレート一覧ではなく、エディター内にあります。インポートすると現在の内容が置き換わるため、新しい空白テンプレートを使用してください。インポートしたコンポーネント、変数、イベントの設定は維持します。
</Note>
5. プレビューを確認して**保存・公開**し、テンプレート ID をコピーします。下書きの保存だけでは送信できません。`param.templateUnpublished` はテンプレートが未公開であることを示します。
6. LangBot の **Card Template ID** に ID を入力して保存すると、ストリーミング返信が自動的に有効になります。空欄にして保存すると通常の返信に戻ります。
テンプレートには LangBot の表示があり、思考と回答を別々に表示します。生成中は思考欄が開き、完了後は折りたたまれます。クリックで再び展開できます。下部には回答のコピー、高評価・低評価、AI 生成コンテンツの表示があります。思考を削除するかどうかはパイプライン設定に従い、削除する場合は思考欄を表示しません。通常メッセージで思考を保持する場合は、`<think>` と `</think>` を文字として表示し、空行で回答と区切ります。
カードの自動ワイドレイアウトはデフォルトで有効です。提供する返信テンプレートには必要な変数が含まれています。既存のボットで無効にして保存している場合は、有効にして設定を保存してください。幅の狭い表示を希望する場合は無効のままでも使用できます。
更新時は最新版をダウンロードして再インポートし、保存・公開してください。別のテンプレートを作成した場合は LangBot 側の ID も変更します。`content` のみを使用する既存テンプレートも利用できますが、新しい思考欄の分離表示には対応しません。
## 人工入力カードテンプレートのインポート
人工入力は、ワークフローやプラグインがユーザーの情報入力・選択・確認を待ってから処理を続ける場面で使用します。Dify の Human Input ノードなどが該当します。通常のチャットやストリーミング返信だけなら、このテンプレートは不要です。
1. **Human Input Card Template ID** の横にある **Download Human Input Card Template** から `dingtalk_human_input_card.json` を保存します。
2. 上記と同じ手順で、別の **メッセージカード → AI カード → 空白から作成** テンプレートを作り、ボットアプリを関連付けます。
3. エディターの **その他 → カードテンプレートをインポート** から人工入力用 JSON を読み込みます。入力欄、ボタン、変数、イベントの設定は維持します。
4. **保存・公開**し、その ID を LangBot の **Human Input Card Template ID** に入力して設定を保存します。
2 種類のテンプレートは別々にインポートし、対応する設定項目に ID を入力してください。人工入力テンプレートはストリーミング返信テンプレートの代わりにはならず、ストリーミング返信を自動で有効にすることもありません。
---
## 手動設定
@@ -71,45 +111,17 @@ LangBot は DingTalk アプリのワンクリック作成とクレデンシャ
![After applying for card permissions](/images/zh/deploy/bots/dingtalk/dingtalk7.png)
さらに、カードメッセージの場合、主にカードテンプレートを作成し、テンプレート ID を記録して設定に入力する必要があります。手順は以下の通りです:
> カードコンテンツテンプレート ID は、開発者バックエンドにログイン > [カードプラットフォーム](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV)から取得できます
新しいテンプレートを作成する際に情報を入力します。以下のように:
![Fill in information for new template](/images/zh/deploy/bots/dingtalk/dingtalk8.png)
プリセットテンプレートを選択します(最初のものを選択し、後でテンプレートの内容を変更します)。以下のように:
![Select preset template](/images/zh/deploy/bots/dingtalk/dingtalk9.png)
使用をクリック
![Click](/images/zh/deploy/bots/dingtalk/dingtalk10.png)
作成
![Create](/images/zh/deploy/bots/dingtalk/dingtalk11.png)
作成をクリックすると、テンプレートの編集にリダイレクトされます。以下のように、希望するカードメッセージを自由に編集できます:
![Edit template](/images/zh/deploy/bots/dingtalk/dingtalk12.png)
メインコンテンツについては、デフォルトの「content」をそのままにしておきます:
![Don't modify](../../../images/zh/deploy/bots/dingtalk/dingtalk13.png)
ワイドスクリーン設定パラメータ。テンプレート変数に . を追加する必要があります。参考[DingTalk ワイドスクリーン設定](https://open.dingtalk.com/document/development/configure-widescreen-cards)
![Widescreen Configuration](../../../images/zh/deploy/bots/dingtalk/dingtalk16.png)
編集を終え、すべて正しいことを確認したら、保存してテンプレート ID をコピーし、設定ファイルに入力します:
![Save](../../../images/zh/deploy/bots/dingtalk/dingtalk14.png)
![Copy template ID](../../../images/zh/deploy/bots/dingtalk/dingtalk15.png)
カードテンプレートは、上記の手順で LangBot 提供のテンプレートをインポートして公開してください。
### 設定情報の入力
「認証情報と基本情報」をクリックし、「Client ID」と「Client Secret」を記録します。
「アプリケーション機能」、「ロボット」をクリックし、RobotCode とロボット名を記録します。
この認証情報を LangBot のアダプター設定に入力します。
`markdown_card` は Markdown 形式の返信を有効にするかどうかです。この設定項目が無効になっている場合、`@送信者` 設定スイッチは有効になりません。
上記の設定項目を記録し、LangBot ボット設定フォームに入力します
[カードプラットフォーム](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV)をクリックし、テンプレートリストから対応するバインドされたテンプレート ID をコピーし、カードテンプレート ID フィールドに入力します。
![Connect to LangBot](/images/zh/deploy/bots/dingtalk/connect_to_langbot.png)
ストリーミング関連:
![img.png](../../../images/zh/deploy/bots/dingtalk/dingtalk17.png)
**LangBot を起動します**。
+50 -40
View File
@@ -27,18 +27,58 @@ LangBot 支持一键创建钉钉应用并自动填写凭证,无需手动复制
![配置成功](/images/zh/deploy/bots/dingtalk/dingtalk_config_success.png)
7. **手动填写机器人名称**(名称需与钉钉中创建的机器人一致),以及**机器人代码**(识图、上传文件等功能必填,需前往钉钉开发者后台 > 机器人配置中获取)
![填写机器人名称和代码](/images/zh/deploy/bots/dingtalk/dingtalk_fill_name_and_code.png)
8. 点击**提交**,完成创建
7. 点击**提交**,完成创建。当前版本会自动识别机器人身份。
<Warning>
一键配置完成后即可正常进行文字收发消息。但有以下限制:
- **图片/文件收发**:需要填写机器人代码(RobotCode)才能支持,如一键配置时未填写,请前往钉钉开发者后台 > 机器人配置中获取并补填
- **流式回复**:需要手动配置卡片模板ID才能开启,参考下方「配置机器人」中的卡片模板创建步骤
一键配置会填写应用凭据,不会自动创建卡片模板。填写「卡片模板 ID」即自动启用流式回复,留空使用普通回复;使用按钮、输入框等人工交互,需要按下方步骤导入模板并填写「人工输入卡片模板 ID」。卡片功能还需在钉钉应用的权限管理中开通相应权限。
</Warning>
## 配置卡片模板(推荐使用 LangBot 模板)
使用卡片回复时,推荐直接导入 LangBot 提供的模板,无需自行搭建组件或绑定变量。先在钉钉应用的权限管理中开通卡片相关权限,再按用途选择模板:
| 用途 | 下载文件 | LangBot 配置字段 |
| --- | --- | --- |
| 流式回复,分开展示思考与正文 | `dingtalk_stream_card.json` | 卡片模板 ID |
| 等待用户填写、选择或确认后继续执行 | `dingtalk_human_input_card.json` | 人工输入卡片模板 ID |
### 创建并导入流式回复模板
1. 在 LangBot 的钉钉适配器配置中,点击「卡片模板 ID」下方的 **下载流式回复卡片模板**。
2. 打开[钉钉卡片平台](https://open-dev.dingtalk.com/fe/card),确认组织与机器人应用一致,点击 **新建模板**。
3. 填写模板名称,**卡片类型**选择「消息卡片」,**卡片模板场景**选择「AI 卡片」,**关联应用**选择当前机器人应用,**创建方式**选择「空白搭建」,点击 **创建空白模板**。
![新建模板:消息卡片、AI 卡片、关联机器人应用、空白搭建](/images/zh/deploy/bots/dingtalk/create_ai_card_template.png)
4. 进入卡片编辑器,在顶部点击 **更多 → 导入卡片模板**,选择下载的 `dingtalk_stream_card.json`。
![在卡片编辑器的更多菜单中导入卡片模板](/images/zh/deploy/bots/dingtalk/import_card_template.png)
<Note>
导入入口在卡片编辑器内,不在模板列表页。导入会替换当前模板内容,请使用新建的空白模板。保留导入后的组件、变量和事件绑定。
</Note>
5. 检查预览,**保存并发布**模板,再复制模板 ID。只保存草稿不能发送卡片;`param.templateUnpublished` 表示模板尚未发布。
6. 返回 LangBot,将 ID 填入 **卡片模板 ID** 并保存机器人配置,即自动启用流式回复。清空该字段并保存则恢复普通回复。
模板带有 LangBot 标识,思考与正文分区展示;思考区在输出时展开,完成后默认折叠,可点击展开。底部提供复制正文、赞/踩以及「内容由 AI 生成」标记。是否删除思考仍由流水线设置控制;删除后不展示思考区。普通消息保留思考时,会显示 `<think>`、`</think>` 标记并用空行分隔正文。
「卡片宽屏自动布局」默认开启,提供的流式回复模板已配置宽屏所需变量。已有机器人如果之前保存为关闭,需要手动开启并保存;如偏好窄卡片,也可关闭。
更新模板时,重新下载并导入最新版,保存并发布。如果新建了另一个模板,还需替换 LangBot 中的模板 ID。现有仅绑定 `content` 的模板仍可使用,但没有新版独立思考区的展示效果。
## 导入人工输入卡片模板
人工输入用于工作流或插件等待用户补充信息、选择选项或确认后再继续的场景,例如 Dify 的人工输入节点。普通聊天、仅展示流式回复不需要配置此模板。
1. 在「人工输入卡片模板 ID」旁点击 **下载人工输入卡片模板**,保存 `dingtalk_human_input_card.json`。
2. 按上方相同步骤,另建一个 **消息卡片 → AI 卡片 → 空白搭建** 模板,并关联当前机器人应用。
3. 在编辑器中选择 **更多 → 导入卡片模板**,导入人工输入 JSON。保留输入框、按钮、变量和事件绑定。
4. **保存并发布**,将此模板的 ID 填入 LangBot 的 **人工输入卡片模板 ID**,保存机器人配置。
两种模板请分别导入、填写对应字段。人工输入模板不替代流式回复模板,也不会自动开启流式回复。
---
## 手动配置
@@ -70,47 +110,17 @@ LangBot 支持一键创建钉钉应用并自动填写凭证,无需手动复制
![申请卡片权限后](/images/zh/deploy/bots/dingtalk/dingtalk7.png)
另外卡片消息主要创建卡片模板,并记录模板id填入配置信息,流程如下:
> 卡片内容模板ID,可通过登录开发者后台 > [卡片平台](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV)获取
新建模板填写信息,如图:
![新建模板填写信息](/images/zh/deploy/bots/dingtalk/dingtalk8.png)
选择预设模板(直接选第一个然后进去后更改模板内容),如图:
![选择预设模板](/images/zh/deploy/bots/dingtalk/dingtalk9.png)
点击使用
![点击](/images/zh/deploy/bots/dingtalk/dingtalk10.png)
创建
![创建](/images/zh/deploy/bots/dingtalk/dingtalk11.png)
点击创建后会跳转到编辑模板。如图,这样你就可以尽情的编辑你想要的卡片消息了:
![编辑模板](/images/zh/deploy/bots/dingtalk/dingtalk12.png)
主内容这里默认content不要改动即可:
![不改动](../../../images/zh/deploy/bots/dingtalk/dingtalk13.png)
宽屏配置参数,需要在模板变量中添加.参考[钉钉宽屏配置](https://open.dingtalk.com/document/development/configure-widescreen-cards)
![宽屏配置](../../../images/zh/deploy/bots/dingtalk/dingtalk16.png)
编辑好没问题之后保存即可,并复制模板id用以填写配置文件:
![保存](../../../images/zh/deploy/bots/dingtalk/dingtalk14.png)
![复制模板id](../../../images/zh/deploy/bots/dingtalk/dingtalk15.png)
卡片模板请按上方「配置卡片模板」步骤,直接导入 LangBot 提供的模板并发布。
### 填写配置信息
点击`凭证与基础信息`,记录`Client ID` 和 `Client Secret`,
点击`应用能力`,`机器人`,记录下 RobotCode 和 机器人名称。
点击`凭证与基础信息`,记录`Client ID` 和 `Client Secret`。将这两项凭据填写到 LangBot 的适配器配置中。
`markdown_card` 为是否启用 Markdown 形式的回复,当此配置项关闭时,`@发送者` 配置开关不会生效。
将以上配置项 记录下来,填到 LangBot 机器人配置表单中。
点击[卡片平台](https://open-dev.dingtalk.com/fe/card?spm=ding_open_doc.document.0.0.33cf2281L0fXsV)模板列表复制绑定的对应的模板id填入卡片模板id
![对接 LangBot](/images/zh/deploy/bots/dingtalk/connect_to_langbot.png)
流式相关:
![img.png](../../../images/zh/deploy/bots/dingtalk/dingtalk17.png)
**启动 LangBot** 。