send_shop_message
Send general shop messages to customers for marketing, announcements, or customer service. The message appears in the customer's conversation inbox and triggers instant notification.
Instructions
[WRITE] 發送一般商店對話訊息。
【用途】 對客戶發送非特定訂單的通用訊息,適用於行銷通知、活動公告、客服主動聯繫等場景。
【呼叫的 Shopline API】
POST /v1/conversations/shop-messages
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, conversation: dict。
【副作用】
在客戶的對話收件匣中新增一則商店訊息,客戶可即時收到通知
訊息送出後無法撤回或修改
大量發送時請注意 Shopline 的訊息頻率限制,以避免觸發反垃圾機制
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_data | Yes | 訊息資料,例如 {"customer_id": "CUST456", "message": "感謝您的支持,本週特惠活動開始囉!", "sender_type": "merchant"} |