florio | 2023-09-13 14:15:25 UTC | #1
Hello,
I'm trying to use the API (Javascript, purecloud-platform-client-v2) and am trying to get a list of the tasks in a Flow. I was thinking these might be prompts but using the getArchitectPrompts does not come back with anything. Also, feeding an ID doesn't help either.
Are the tasks actually prompts? My end goal is to change the text in a prompt's TTS to a different value.
Thanks in advace.
florio | 2023-09-14 11:29:01 UTC | #2
Upon further troubleshooting, I tried:
/api/v2/flows/{flowId}/latestconfiguration
And that worked, I got the configuration and I found what I'm trying to change. It's listed under "actionList": [
What API call do I need to do to modify this item under actionList? I want to change the text that is being processed. Thanks!
... { "trackingId": 168, "id": "4a7540ee-0937-483b-aee1-3596cd6619ed", "name": "Play Audio", "uiMetaData": { "colapsed": false }, "__type": "PlayAudioAction", "prompts": { "bargeInExpression": { "config": { "lit": { "pos": 1, "text": "true", "type": "bln" } }, "text": "true", "type": "bln", "uiMetaData": { "mode": 1 }, "metaData": {}, "version": 2 }, "flushExpression": { "config": { "lit": { "pos": 1, "text": "false", "type": "bln" } }, "text": "false", "type": "bln", "uiMetaData": { "mode": 1 }, "metaData": {}, "version": 2, "outOfService": true }, "defaultAudio": { "config": { "AudioPlaybackOptions": { "pos": 1, "text": "AudioPlaybackOptions(ToAudioTTS(\"All services are operating normally\"), true)", "operands": [ { "ToAudioTTS": { "pos": 22, "operands": [ { "lit": { "pos": 33, "text": "All services are operating normally", "type": "str" } } ], "type": "aud" } }, { "lit": { "pos": 73, "text": "true", "type": "bln" } } ], "type": "aud" } }, "text": "AudioPlaybackOptions(ToAudioTTS(\"All services are operating normally\"), true)", "type": "aud", "uiMetaData": { "sequenceItems": [ { "type": 0, "parameter": "All services are operating normally", "error": "" } ], "customExpressionMode": false }, "metaData": {} }, "cases": [] } },
system | 2023-10-15 11:29:48 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21977