Skip to main content

请求参数

主体结构

message_info 字段

files_info 结构


对话场景说明

auto_dialog(自动对话)

  • event_type = auto_dialog
  • 提供 send_url,由 MarsMind 智能自动控制消息逻辑
  • 支持文本、图片、文件(每次请求类型唯一)
from_user_type 填写建议:
  • 绑定对象:除智能助手本身消息外,均填 1
  • 未绑定对象:外部客户填 2,同公司人员填 3

assist_dialog(辅助对话)

  • event_type = assist_dialog
  • 实时返回消息处理结果
  • 参数若与 auto_dialog 消息一致,将复用上下文

website_dialog(网页对话)

  • event_type = website_dialog
  • 消息立即返回结果并入上下文,不支持 send_url

cmd_dialog(命令控制)

  • event_type = cmd_dialog
  • content 为具体命令,目前支持:
    • stop_auto_reply:停止自动回复(仅 auto_dialog 场景下有效)

调用示例

auto_dialog