62 lines
1.9 KiB
YAML

name: Text (plain)
method: POST
url: $BASE_URL/v1/cloud-event
body:
content: |-
{
"customerId": "$CUSTOMER_ID",
"source": "//iva/us-east-prd/int/demo/plain",
"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": "plain",
"persona_icon": {
"id": "CoPilot",
"color": "#763623"
},
"title_icon": {
"id": "message-status-info",
"color": "#763623"
},
"title": "Welcome to Customer Support",
"body": "Hello! I'm here to help you with your inquiry. Please let me know how I can assist you today.\n\n**Available Services:**\n- Account Information\n- Technical Support\n- Billing Questions",
"footer": "Need immediate assistance? Call us at 1-800-SUPPORT",
"links_title": "Helpful Resources",
"links": [
{
"text": "Visit our FAQ",
"url": "https://support.example.com/faq"
},
{
"text": "Contact Support",
"url": "https://support.example.com/contact"
},
{
"text": "User Guide",
"url": "https://docs.example.com/user-guide"
}
],
"actions_menu": [
"send",
"copy",
"edit",
"email"
]
}
}
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