Collect Input

The Collect Input node allows you to send a message to your users and receive and save their input at the same time.

User Input is saved within a Parameter in the Collect input Node.

Skip this node if value is already collected: If the parameter value has been collected on a previous node (or even the same node in case the caller went back to the same node during the same conversation), you can choose to skip this Collect Input node and keep the original value collected. If you like to override the value, leave this box unchecked.

By default, the Collect Input is set to text, however, based on your use case you can choose to accept Images, files, location and even audio! You can do this by selecting the expected Input at the bottom of the node.

If you select "Audio", please note that currently Studio only accepts Audio Recordings.

Configuring Different media responses

In the case that you have selected multiple input types, AI Studio allows you the ability to configure flows for each of the input types. This is helpful for either capturing more necessary information from your user or to adapt your flows based on the type of input.

Keep in mind the format limitations for each form of input:-

  • Supported Image file types: jpg, jpeg, png

  • Supported File types for documents: All types (including PDF, doc, csv)

  • Supported Video file types: mp4, 3gpp

  • Supported Audio file types: wav, mp3, ogg

Additionally you also have the option of configuring flows for when the user provides an Unexpected input (for example, if they send you an audio file when you asked for a PDF) or if they provide a Missed input (for example, if the user tells the agent their phone number instead of their name.)

"Skip this node if value is already collected" - What if the value was already collected in the conversation?

If the parameter value has been collected on a previous node (or even the same node in case the user went back to the same node during the same conversation), you can choose to skip this Collect Input node and keep the original value collected. If you like to override the value, leave this box uncheck

Expected Input Formats

Here are all the expected formats for the various kinds of input for this node:-

For a text:

{
    type: ‘text’,
    text: string
}

For audio:

{
    type: 'audio',
    audio: {
        url: string
    }
}

For a file:

{
    type: ‘file’,
    file: {
        url: string, 
        caption: string 
    }
}

For an image:

{
    type: ‘image’,
    image: {
        url: string, 
        caption: string 
    }
}

For a video:

{
    type: 'video',
    video: {
        url: string, 
        caption: string 
    }
}

For a location:

{
    type: ‘location’,
    location: {
        ‘name’: string,
        ‘address’: number,
        ‘longtitude’: string,
        ‘latitude’: number
    }
}

Last updated