Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
https://{{host}}/api/public/bot/{{BotID}}/notify
application/json
auth: {{JWT}}
host
https://platform.kore.ai
BotId
curl --location 'https://{{host}}/api/public/bot/{{BotId}}/notify' \ --header 'Content-Type: application/json' \ --header 'auth: {{jwt-token}}' \ --data-raw '{ "channel": "msteams", "userIdentityType": "resolve", "message": { "type": "text", "val": "Please reset your password." }, "identities": [ "john.doe@example.com" ] }'
channel
"msteams"
"slack"
userIdentityType
resolve
message
type
"text"
"script"
val
identities
{ "type": "text", "val": "Hi User" }
{ "type": "script", "val": "var envMsg = 'John'; var channel = context.session.BotUserSession.lastMessage.channel; print(JSON.stringify({text: 'Hi ' + envMsg + ' message is from ' + channel + ' channel'}));" }
{ "status": "IN_PROGRESS", "percentageComplete": 0, "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx", "createdBy": "u-xxxxx-xxx-xxx-xxx-xxxxx", "jobType": "PROACTIVE_NOTIFICATIONS_API", "action": "PROACTIVE_NOTIFICATIONS", "statusLogs": [], "_id": "ds-xxxxx-xxx-xxx-xxx-xxxxx", "lMod": "2022-01-25T06:56:48.000Z", "createdOn": "2022-01-25T06:56:48.891Z", "requestedTime": "2022-01-25T06:56:48.891Z", "__v": 0 }
Was this page helpful?