Adding copilot IVA requests to posting
This commit is contained in:
19
copilot/posting/copilotux/IVA/authentication.posting.yaml
Normal file
19
copilot/posting/copilotux/IVA/authentication.posting.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Authentication
|
||||
method: POST
|
||||
url: $TOKEN_URL
|
||||
body:
|
||||
form_data:
|
||||
- name: grant_type
|
||||
value: client_credentials
|
||||
- name: audience
|
||||
value: api://vcp/wa-cloudevent
|
||||
- name: client_id
|
||||
value: $CLIENT_ID_V2
|
||||
- name: client_secret
|
||||
value: $CLIENT_SECRET_V2
|
||||
content_type: application/x-www-form-urlencoded
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/x-www-form-urlencoded
|
||||
scripts:
|
||||
on_response: authorization.py
|
||||
37
copilot/posting/copilotux/IVA/smart-transfer.posting.yaml
Normal file
37
copilot/posting/copilotux/IVA/smart-transfer.posting.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Smart Transfer
|
||||
method: POST
|
||||
url: $BASE_URL/v1/cloud-event
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"customerId": "$CUSTOMER_ID",
|
||||
"source": "//iva/us-east-prd/transfer",
|
||||
"id": "2025051416334592900000000000000001",
|
||||
"type": "iva.transfer.data.v1",
|
||||
"time": "2025-05-14T16:33:45.929Z",
|
||||
"upn": "$UPN",
|
||||
"userUUID": "$USER_UUID",
|
||||
"data": {
|
||||
"conversationId": "2025051416334592900000000000000001",
|
||||
"customData": {
|
||||
"firstName": "John",
|
||||
"lastName": "Smith",
|
||||
"phoneNumber": "9887655432",
|
||||
"accountID": "1234",
|
||||
"summary": "summary test",
|
||||
"lastContactDate": "09/09/2020",
|
||||
"purpose": "Testing Purpose"
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
47
copilot/posting/copilotux/IVA/text-markdown.posting.yaml
Normal file
47
copilot/posting/copilotux/IVA/text-markdown.posting.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Text (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": "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 | Month | Savings |\n| -------- | ------- |\n| January | $250 |\n| February | $80 |\n| March | $420 |\n",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
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
|
||||
61
copilot/posting/copilotux/IVA/text-plain.posting.yaml
Normal file
61
copilot/posting/copilotux/IVA/text-plain.posting.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
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
|
||||
Reference in New Issue
Block a user