Parsing text into multiple choice values for a Choice form component

stomgb
Tue, 05 Mar 2024 15:39:47 +0000
Ask for Help

Hello Gliders!

I have a workflow in which I want to show a user a set of options to choose from using a Choice component.

For example -

However, the set of values to choose from changes for each user and will come from an AI model response (e.g GPT) as part of an Action flow which returns the set of options as text and stores the values in a table cell.

I can affect the structure that GPT returns the options as.
For example -

1. json object: { option: ‘option a’; option: ‘option b’; option: ‘option c’;}

2. A sentence: "option a, option b, option c’ "

I know that the Choice component must get the values presented from a table column, and so I assume the question becomes - how can I parse a cell value from one table into multiple rows in another table?

Alternatively, any other ideas for how to present a user with a variable set of options to choose from? As far as I can see, all components which enable selection take their input from a column with each value/option coming from a different row.

Thanks!

10 posts - 4 participants