Converse AI by Smartsheet

Array Filters

As you may have seen the HTTP Calls function allows you to easily bring in (or push data out to) third party tools during the flow of the conversation. Also, many of the modules we will be launching will also similarly allow you to bring data into a conversation as well.

You can then use this data to make decisions (using Logic or use as an output to a conversation using Handlebars, but what if you need to filter this data first to find the specific data you need.

This is where the filters modules come in.

Filters allow you to take an array of JSON objects and only return the ones that match your criteria.

Use Cases of these are all linked from the side menu.

Filter Options

More

Only return objects where the relevant field is more than a certain number.

Less

Only return objects where the relevant field is less than a certain number

Between

Only return objects where the relevant field is between two specified numbers.

Equals

Only return objects where the relevant field is exactly the same number

Not Equals

Only return objects where the relevant field is not the same number

Matches

Only return objects where the field is an exact string match to a specified string

Not Match

Only return objects where the field is not an exact string match to a specified string.

Starts With

Only return objects where the field starts with the specified string

Ends with

Only return objects where the field ends with the specified string

Contains

Only returns objects where the field contains the specified string

Does Not Contain

Only return objects where the field does not contain the specified string.

Updated 27 days ago

Array Filters


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.