聊天機(jī)器人,是一種通過自然語(yǔ)言模擬人類進(jìn)行對(duì)話的程序。通常運(yùn)行在特定的軟件平臺(tái)上,如PC平臺(tái)或者移動(dòng)終端設(shè)備平臺(tái)。聊天機(jī)器人系統(tǒng)的主要功能是同用戶進(jìn)行基本溝通并自動(dòng)回復(fù)用戶有關(guān)產(chǎn)品或服務(wù)的問題,以實(shí)現(xiàn)降低企業(yè)客服運(yùn)營(yíng)成本、提升用戶體驗(yàn)的目的。

請(qǐng)求參數(shù)
Header 參數(shù)
export interface ApifoxModel {
? ? "X-GEWE-TOKEN": string;
? ? [property: string]: any;
}
Body 參數(shù)application/json
export interface ApifoxModel {
? ? /**
? ? * 設(shè)備ID
? ? */
? ? appId: string;
? ? /**
? ? * @的好友,多個(gè)英文逗號(hào)分隔。群主或管理員@全部的人,則填寫'notify@all'
? ? */
? ? ats?: string;
? ? /**
? ? * 消息內(nèi)容
? ? */
? ? content: string;
? ? /**
? ? * 好友/群的ID
? ? */
? ? toWxid: string;
? ? [property: string]: any;
}
示例
{
? ? "appId": "",
? ? "toWxid": "34757816141@chatroom",
? ? "ats": "wxid_phyyedw9xap22",
? ? "content": "@猿猴 我在測(cè)試艾特內(nèi)容"
}
示例代碼
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/message/postText' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
? ? "appId": "",
? ? "toWxid": "34757816141@chatroom",
? ? "ats": "wxid_phyyedw9xap22",
? ? "content": "@猿猴 我在測(cè)試艾特內(nèi)容"
}'
返回響應(yīng)
成功(200)
HTTP 狀態(tài)碼: 200 內(nèi)容格式: JSONapplication/json
數(shù)據(jù)結(jié)構(gòu)
export interface ApifoxModel {
? ? data: Data;
? ? msg: string;
? ? ret: number;
? ? [property: string]: any;
}
export interface Data {
? ? /**
? ? * 發(fā)送時(shí)間
? ? */
? ? createTime: number;
? ? /**
? ? * 消息ID
? ? */
? ? msgId: number;
? ? /**
? ? * 消息ID
? ? */
? ? newMsgId: number;
? ? /**
? ? * 接收人的wxid
? ? */
? ? toWxid: string;
? ? /**
? ? * 消息類型
? ? */
? ? type: number;
? ? [property: string]: any;
}
示例
{
? ? "ret": 200,
? ? "msg": "操作成功",
? ? "data": {
? ? ? ? "toWxid": "34757816141@chatroom",
? ? ? ? "createTime": 1703841160,
? ? ? ? "msgId": 0,
? ? ? ? "newMsgId": 3768973957878705021,
? ? ? ? "type": 1
? ? }
}