post https://api.app.lithium.com/bots/v3/form
Send a secure form as a bot response.
Details
Send a secure form as a bot response with a POST request to /bots/v3/form
.
Note
- Khoros Care does not allow a bot to send any PCI form.
- You can send a secure form only with non-expired fields as a bot response.
Field | Description |
---|---|
type | The payload type. Always secure_form . |
coordinate | A Coordinate object. This object contains details about the bot and the message in context. It is used by Khoros Care. |
author | An Author object representing the message auhor on the source channel. |
comment | The bot response comment. This is a required field. |
secureFormId | The secure form ID you want to send. |
Example Secure Form JSON Payload
{
"type": "secure_form",
"coordinate": {
"companyKey": "<COMPANY-ID>",
"networkKey": "brandmessenger",
"externalId": "<EXTERNAL-ID>",
"botId": "<BOT-ID>",
"scope": "PRIVATE",
"normalizedAuthorId": "<AUTHOR-ID>",
"messageId": "<MESSAGE-ID>"
},
"author": {
"id": "<AUTHOR-ID>",
"fullName": "<AUTHOR-NAME>"
},
"comment": "let's send a non-pci form",
"secureFormId": "AABBCCDD-1122-4A5B-A12R-123456DDD789"
}