Adding answerbot and basis & extended syntax markdown examples

This commit is contained in:
Peter Morton 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

View File

@ -0,0 +1,39 @@
name: Basic Syntax Test (markdown)
method: POST
url: $BASE_URL/v1/cloud-event
body:
content: |-
{
"customerId": "$CUSTOMER_ID",
"source": "//iva/us-east-prd/int/demo/markdown",
"id": "202505141633459290000000000n0000001",
"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": "Basic Syntax",
"body": "# Heading level 1\n\n## Heading level 2\n\n###### Heading level 5\n\n####### Heading level 6\n\nI really like using Markdown.\n\nI think I'll use it to format all of my documents from now on.\n\nThis is the first line.\nAnd this is the second line.\n\nI just love **bold text**.\n\nItalicized text is the *cat's meow*.\n\n> Dorothy followed her through many of the beautiful rooms in her castle.\n\n> Dorothy followed her through many of the beautiful rooms in her castle.\n>\n>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood\n\n1. First item\n8. Second item\n3. Third item\n 1. Indented item\n 1. Intended Item\n5. Fourth item\n\n* First item\n* Second item\n* Third item\n* Fourth item\n\nAt the command prompt, type `nano`.\n\n---\n\nMy favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").\n\n<Peter.Morton@verint.com>\n\n![Scotland is beautiful!](https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Skara_Brae_-_geograph.org.uk_-_3912232.jpg/800px-Skara_Brae_-_geograph.org.uk_-_3912232.jpg)"
}
}
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

View File

@ -0,0 +1,39 @@
name: Extended Syntax Test (markdown)
method: POST
url: $BASE_URL/v1/cloud-event
body:
content: |-
{
"customerId": "$CUSTOMER_ID",
"source": "//iva/us-east-prd/int/demo/markdown",
"id": "202505141633459290000000000n0000001",
"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": "Extended Syntax",
"body": "# Tables\n\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |\n\n| Syntax | Description | Test Text |\n| :--- | :----: | ---: |\n| Header | Title | Here's this |\n| Paragraph | Text | And more |\n\n# Fenced Code Block\n\n```json\n{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"age\": 25\n}\n```\n\n# Footnotes\n\n Here's a simple footnote,[^1] and here's a longer one.[^bignote]\n\n[^1]: This is the first footnote.\n\n[^bignote]: Here's one with multiple paragraphs and code.\n\n Indent paragraphs to include them in the footnote.\n\n `{ my code }`\n\n Add as many paragraphs as you like.\n\n# Linking to Heading IDs\n\n### My Great Heading {#custom-id}\n\n[Heading IDs](#heading-ids)\n\n# Strikethrough\n\n~~The world is flat.~~ We now know that the world is round.\n\n# Task lists\n\n- [x] Write the press release\n- [ ] Update the website\n- [ ] Contact the media\n\n# Emojis\n\nGone camping! ⛺ Be back soon.\n\nThat is so funny! 😂\n\n### Emoji Shortcodes\n\nDon't work :sad:\n\n# Highlight\n\nI need to highlight these ==very important words==.\n\n# Subscript\n\nH~2~O\n\n (note our renderer uses '~' for strikethrough)\n\n# Superscript\n\nX^2^"
}
}
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