Archy - Questions around playAudio

Hi,

I have some question around Archy:

  1. If we would like to play multiple audios in sequence in a single playAudio action node, do we have to use expression to build the audio sequence?
    [CK]: It's hard to build expression because typeahead doesn't work when you try to playback some system prompt.

  2. How do we enable/disable barge-in in playAudio action node?

On a side note, it's good to have PureCloud functions available in typeahead when we build the expressions in VS Code.

Regards,
CK

Hi @chunkeat26,

  1. Yes, for multiple audio sequences in a single play audio action you will have to use an expression to build the audio sequence.
  2. To enable/disable barge-in, you need to use an expression. It set by using the AudioPlaybackOptions function in the expression. Here is an example of enabling barge-in on an expression.
AudioPlaybackOptions(ToAudioTTS("Hello, this audio playback allows for barge."), true)

You can find out more by using the Expression Help within Architect. Some things to note around the AudioPlaybackOptions function:

  • Boolean bargeIn : Whether or not to allow barge-in by DTMF or speech recognition during the audio playback.
    NOT_SET is not allowed
    Must be a literal value.
  • Usage Restrictions
    When used in an expression, this must be the last operation specified in the expression text to be valid.

Also, since we do not create JSON Schemas for expressions within Architect, there is no data for the typeahead plugin to use. You can always create an expression within a flow in the Architect UI and copy it to your YAML file as well.

Thanks,
Jon

Thanks Jon.

I got another question around Inbound Chat > callTask action. it doesn't seems to have a way to reference the task.

I tried the following:

inboundChat:
  name: CK - Inbound Chat Archy
  defaultLanguage: en-au
  startUpRef: /inboundChat/states/state[initialState]
  description: initial chat flow
  states:
    - state:
        name: Initial State
        refId: initialState
        actions:
          - callTask:
              name: Call task
              refId: callTask
              targetTaskRef: /inboundChat/tasks/task[taskFRIG]
              outputs:
                default:
                  actions:
                    - disconnect:
  tasks:
    - task:
        name: FRIG
        refId: taskFRIG
        actions:
          - disconnect:

but targetTaskRef doesn't seems to be the right one. and i can't seems to find anything helpful as typeahead doesn't suggest anything.

Hi @chunkeat26,

This is actually a bug we also just recently found and will be fixed in the next release of Archy. We plan on releasing the new version soon, as it just requires a little more testing yet. Thanks for reporting this issue though!

-- Jon

@chunkeat26,

We just released Archy version 0.2.2 which has the fix for the callTask action. We have updated the JSON schema files so the typeahead plugin should be picking up the new targetTaskRef property and you should be able to set this value now as well.

Thanks,
Jon

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.