coze Webhook URL发送触发器报错:{"code":41001004,"data":{"items":[]},"items":[],"message":"RecordNotFound:Pl
coze Webhook URL发送触发器报错:
{"code":41001004,"data":{"items":[]},"items":[],"message":"RecordNotFound:Please CONFIRM PUBLISHED"}这个是什么问题,我也按照官方的文档做了,也发布了bot,还是出现这个错误。
<?php
$url = 'https://api.coze.com/api/trigger/v1/webhook/biz_id/bot_platform/hook/';
$authorization = '';
$postData = json_encode(["testname"=>"你是谁?"],true);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Authorization: Bearer ' . $authorization));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>

