Chúng tôi sẽ ngừng cung cấp API Tại chỗ. Hãy tham khảo tài liệu về việc Ngừng cung cấp API Tại chỗ để biết chi tiết, đồng thời tìm hiểu cách chuyển sang API Đám mây thế hệ tiếp theo của chúng tôi.
After receiving Multi or Single product messages, users can: ask for more information about a product, add products to a shopping cart, and place an order. The best way to track a customer’s response to a message is by checking the webhooks alerts received for a specific message.
After sending a message, you get a message status notification webhook mentioning the status of that message. A sample webhook for a message that has been sent successfully looks like this:
{ "statuses":[{ "id": "message-ID", "recipient_id": "16315555555", "status": "sent", "timestamp": "1518694700" }] }
Save that message ID to track how customers are receiving that message.
Whenever a customer receives a Multi or Single Product Message, they can ask for more information about that specific product. There are two ways customers can use to ask for information:
Once the customer sends a question, the business gets an inbound message webhook notification. These notifications include a messages object with the following components:
Component | Description |
---|---|
| For this use case, type will be set to |
| The question and/or comments raised by the customer. |
| Information about the product being mentioned by the customer. You can see a product’s unique identifier as well as their catalog ID. |
Use the webhook information to respond to the customer’s query. See Customer Asking For Information About a Specific Product Message for a webhooks example.
Once customers have added a product to their shopping cart, they can send that cart to the business to complete the order. A business knows they have received an order by keeping up with their webhook notifications.
These notifications are of the order
type and they include a messages object with the following components:
Component | Description |
---|---|
| For this use case, type will be set to |
| Information about the products added to the customer’s shopping cart. The order object contains the catalog ID and an array called |
Use the webhook information to prepare the customer's order. See Customer placed an order after receiving a Multi or Single Product Message for a webhooks example.