Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

How to define nested inputs in action metadata file

Hey all,

 

After reading how to build custom actions in JS, I'm wondering if there is any way to defined a input field with nested sub-fields in action metadata file.

 

Using the example from here, if I wanna defined two sub-fields 'id' and 'name' under 'who-to-greet', how should I do that? 

 

2 Replies
Highlighted
Pilot Lvl 1
Message 2 of 3

Re: How to define nested inputs in action metadata file

You probably would need to pass a JSON object with array in it and then parse it in action. AFAIK there is currently no other way.
Highlighted
Copilot Lvl 3
Message 3 of 3

Re: How to define nested inputs in action metadata file

I would really like to be able to do this. Maybe this:

with:
  category:
    entry: value

could be passed to the environment as INPUT_CATEGORY_ENTRY