AI component struggling to create a multi-select choice list

Thanks for the feedback. Web hooks are new to me. I have the dummy relation working bit it feels a bit hacky

Will look into webhooks

If choice components supported actions I could avoid all this. Just saying’

Jeff - a couple of updates

  1. Can’t get the paste component to work. tried different browsers, copy/paste command-X / v etc. I cam rebuilding by hand so no bit deal

  2. I am getting signs of life from creating a checklist of items from a json structure that is manually entered into the prompt (ala your test app)

here’s the JSON I am supplying
{
“data”: [
{
“item”: “Milk 1/2 Gallon”,
“count”: “20”
},
{
“item”: “Eggs 12 dozen”,
“count”: “78”
},
{
“item”: “Strawberries 2 lb.”,
“count”: “10”
}
]
}

here’s what the component is generating - it only lists the first item… when i ask it to display all the items it ignores the request. Ideas?

You can only copy a component from one project to another through the same browser tab. Open the template project, copy the component, then go back and open your project all within the same browser tab.

1 Like

Jeff - Found a way to have the AI component accept the JSON object. I used your JSON example text in the prompt WHILE I added the JSON object which matched the structure names exactly.

This 1,2 punch allows the component to list all the items in the JSON object. YOU MADE MY WEEK.

1 Like

You should always reference the “sample” JSON in your prompt.

The AI model doesn’t know your “sample” and will try to make it best guess about the keys in that JSON, which normally fails.

It has to be 100% correct to be able to query, hence why you should do so.

3 Likes

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