mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-01 13:25:18 +08:00
docs: add comment on new query variables
This commit is contained in:
@@ -34,14 +34,17 @@ You can also choose to use external LLMOps platforms such as `Dify`, [`n8n`](htt
|
||||
### Conversation Variables
|
||||
When using external LLMOps platforms, LangBot explicitly passes the following parameters, which you can add to the start node of the LLMOps platform workflow (the image below is an example of Dify):
|
||||
|
||||
- `launcher_type`: Launcher object type, `person` for private chat, `group` for group chat
|
||||
- `launcher_id`: Launcher object ID, user ID for private chat, group ID for group chat
|
||||
- `sender_id`: Sender ID
|
||||
- `user_message_text`: The plain text of the user message
|
||||
- `session_id`: User session ID, `person_<id>` for private chat, `group_<id>` for group chat
|
||||
- `conversation_id`: String, user session ID, generated by LangBot. It will be regenerated after the user resets the session
|
||||
- `msg_create_time`: Numeric type, timestamp (seconds) when this message was received
|
||||
- `msg_create_time`: Numeric type, timestamp (seconds) when this message was received
|
||||
|
||||
You can [customize any variable through plugins](/zh/plugin/dev/apis/common.html#set-request-variables).
|
||||
You can [customize any variable through plugins](/en/plugin/dev/apis/common.html#set-request-variables).
|
||||
|
||||

|
||||

|
||||
|
||||
## Other Configurations
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ AI 能力主要分为两个部分,选择运行器和配置运行器参数。
|
||||
|
||||
当使用外部 LLMOps 平台时,LangBot 会显式传入以下参数,您可以自行在 LLMOps 平台的开始节点中添加(下图以 Dify 为例):
|
||||
|
||||
- `launcher_type`:发起对象类型,私聊为 `person`,群聊为 `group`
|
||||
- `launcher_id`:发起对象ID,私聊为用户ID,群聊为群ID
|
||||
- `sender_id`:发送者ID
|
||||
- `user_message_text`:用户消息的纯文本
|
||||
- `session_id`:用户会话id,私聊为 `person_<id>`,群聊为 `group_<id>`
|
||||
- `conversation_id`:字符串,用户会话id,由 LangBot 生成。用户重置会话后,会重新生成
|
||||
|
||||
Reference in New Issue
Block a user