Adding context updater example
This commit is contained in:
43
copilot/posting/context-updater/context-updater.posting.yaml
Normal file
43
copilot/posting/context-updater/context-updater.posting.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Context Updater
|
||||
description: |-
|
||||
Simulates the call that is made to KME's Context Updater
|
||||
See documentation here; https://em-docs.verint.com/15_3/em-knowledge-management/Content/Contextual_Knowledge/Updating_Suggested_Knowledge_Using_the_Context_Updater_API.htm
|
||||
method: POST
|
||||
url: https://router.ivastudio.verint.live/ProxyScript/run/67bca862210071627d32ef12/current/context-updater/$CUSTOMER_ID/contexts/$UPN
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"@type": "vcx:ComplexContextUpdateRequest",
|
||||
"vcx:entityDefinitionName": "KnowledgeSearchContextED",
|
||||
"vcx:contextKey": "knowledgeSearchContext",
|
||||
"vcx:fields" : [
|
||||
{
|
||||
"@type" : "vcx:ContextField",
|
||||
"vcx:field" : "searchTerm",
|
||||
"vcx:typedValue" : {
|
||||
"@type": "vcx:StringValue",
|
||||
"vcx:stringValue" : "pet policy"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type" : "vcx:ContextField",
|
||||
"vcx:field" : "tags",
|
||||
"vcx:typedValue" : {
|
||||
"@type": "vcx:StringValue",
|
||||
"vcx:stringValue" : "content_alert"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type" : "vcx:ContextField",
|
||||
"vcx:field" : "locale",
|
||||
"vcx:typedValue" : {
|
||||
"@type": "vcx:StringValue",
|
||||
"vcx:stringValue" : "en-US"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
Reference in New Issue
Block a user