Use the Text to Boolean feature when you wish to transform a text input into a boolean true/false output. Is a statement true or false? Is the statement true or false based on a certain context? The Text to Boolean feature does this analysis for you.
Adding the Text to Boolean Feature
In the Data Editor
Open the table where you want to use the Text to Boolean column.
Add a new basic text column for the Input. Any text column can be used for the input, so if you've created a computed column with a text result, you can use that column as well.
New columns added with the plus button will always appear on the right. If you'd like to add a column somewhere else in your data, you can select the dropdown menu on an existing column and choose Add column right. You can also click and drag columns to rearrange them.
Add a Text to Boolean column to store the result. Search for “Text to Boolean” or navigate to AI → Text to Boolean.
For Instructions, enter custom text to create more specificity for your prompt.
For the Input, select the Input column created previously.
Note: If the action is to be triggered in the Workflow Editor, then add a Basic Boolean Column where the result will be stored.
Click on Done.
In the Layout Editor
If you have not yet set up the columns you'll need in the Data Editor, start with the steps above.
Add a component that supports actions such as Button, Hint, or Rich Text.
In the configuration panel on the right, in the Actions menu, select Text to Boolean.
Name the action and choose an icon.
For Instructions, enter custom text to create more specificity for your prompt.
For Input, choose the column where the input text is stored, or enter custom text.
For Results, select the column where the results should be stored.
To display the text that results from the action, add a Text Component and use your results column as the source. This will instantly show the generated text to your users.
To enable users to adjust the instructions, add a Text Entry Component pointing to an Instructions column with the adjustments you want made.
To enable users to adjust the input, add a Text Entry Component pointing to the Input column to be able to change the input.
In the Workflow Editor
If you have not yet set up the columns you'll need in the Data Editor, start with the steps above.
Select the (+) plus symbol or the + New Workflow button.
Select the data source of the screen where the action is triggered.
Add Text to Boolean as the first step of the workflow.
For Instructions, enter custom text to create more specificity for your prompt.
For the Input and Result fields, use the Input and Result columns created previously.
Optionally, add a Show Notification action at the end of the workflow to notify the user.