AI component misbehaving

I have ying/yang relationship with the AI component. Occasionally it does what I want it to do using common sense prompts. but MOST of the time it just does whatever it feels like and seems to believe its improvisation is valuable.

I take the position that when there’s a problem its at least 51% my fault so I am seeking tips on how to avoid beating my head against the AI component wall.

For example - have a AI component that creates a menu with 6 buttons. each button has hover states that work. all good.

Now In the component I simply want to DEFINE a new action. just define it.

when i update the the action in the prompt I ask it to not change anything in the html structure - just create the action.

But the AI has its own ideas. It removes all my buttons, and instead adds its own set of random button choices and the action cannot be referenced from any of the now removed buttons.

I ask it to restore the the buttons which it kinda does but then the action is gone. I lather, rinse, repeat this for hours and as you can tell get frustrated.

If there is some magical prompt text and order of operations I will buy a big cup of coffee to ideas that can break thru my log jam.

thanks

The Ai Component is not work now, Do not give long instructions, give instructions for each change you need, it takes a lot of time but it is the only way you will achieve something similar to what you are imagining.

Yes - I do this. but in this case I am not asking the AI to do anything except create an action. I tell it - just update the action. don’t change anything in the structure of the component. but alas it goes rogue.

Federico - your idea got me thinking. I believe what is going on with whacko AI components is - the more I provide prompts to a component that is misbehaving the less capable the component is at making sensible updates.

I started with a fresh component and its not going rogue so far.

thanks!

Don’t do it this way. If the last prompt breaks something, delete the last prompt and try again. Otherwise, like you said, it can get in a weird state.

2 Likes

Always add this to your prompt.

“[Your changes here], keep everything else as is. Comment your own code for version control, but don’t show it to me.”

1 Like

I’m stuck again. I need a simple choice component that saves the selected item to a user specific field. it was doing this fine on other components but i am starting from scratch with a clean component and it refused to write to the column that other ai components are using. ideas welcom - here’s my promt

create a selection list using the item field from allitems json structure, selected value will be written to protein field

{
“data”: [
{
“item”: “Milk 1/2 Gallon”,
“available”: “20”,
“decremented”: 19,
“category”: “dairy”
},
{
“item”: “Eggs 12 dozen”,
“available”: “20”,
“decremented”: 19,
“category”: “dairy”
} ]
}

the prompt generates a drop down list but selecting an item from the UI does not save any value to the protein column. i asked it why and it ignores the prompt.

I try write selected item to protein and this does not help

secret prompt codes welcome

Can you send a private message invitation link for me to join that team so I can see the underlying code?