Adding answerbot and basis & extended syntax markdown examples

This commit is contained in:
2025-09-03 14:46:59 -05:00
parent c6bb4719f7
commit 047e906759
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
name: Answer Bot (markdown)
method: POST
url: $BASE_URL/v1/cloud-event
body:
content: |-
{
"customerId": "$CUSTOMER_ID",
"source": "//iva/us-east-prd/int/demo/markdown",
"id": "2025051416334592900000000000000001",
"type": "verint.ui_messages.text.v1",
"time": "2025-05-14T16:33:45.929Z",
"upn": "$UPN",
"userUUID": "$USER_UUID",
"data": {
"version": "1.0.0",
"format": "markdown",
"persona_icon": {
"id": "Verint-Bot-Head",
"color": "#007ACC"
},
"title_icon": {
"id": "message-status-info",
"color": "#FF5722"
},
"title": "What is your pet policy?",
"body": "Amtrak allows small dogs and cats up to 20 pounds (combined weight of pet and carrier) on most routes, with some restrictions. Pets must travel in an approved carrier and are allowed in Coach class and Acela Business class, but not in Acela First Class, First Class private rooms, or food service cars. Reservations are required, and a pet fee is charged per travel segment. Pets must remain in their carrier at all times and cannot be left unattended.\n\n_Summarized using AI._\n\n> Block\n>Quote\n>example\n\n Inline example of some `code` for example.\n\n```\n{\n \"firstName\": \"John\"\n}\n```\nHere's a simple footnote,[^1]",
"footer": "Footer",
"links_title": "Sources:",
"links": [
{
"text": "Pets on Amtrak",
"url": "https://www.amtrak.com/pets"
}
]
}
}
content_type: application/json
auth:
type: bearer_token
bearer_token:
token: $access_token
headers:
- name: content-type
value: application/json
scripts:
setup: cloud-events.py
on_request: cloud-events.py