Skip to main content
Question

In Agent Studio, how do I enforce the user provide sufficient information?

  • February 5, 2026
  • 5 replies
  • 38 views

Forum|alt.badge.img+1

I have a slot called description where I am asking the user to describe what they are looking for. In general this just ends up being what initiated the plugin. I want to enforce that they provide enough information for it to be handled properly. I see 2 ways to do this currently:

  1. Put in a slot validation based upon the overall length, number of spaces, etc
  2. Have a second string slot to ask follow up questions

#1 does not reliably work as moveworks just adds in additional words to make it long enough 90% of the time

I would prefer not to do #2, as it is possible the user could be providing enough information so additional prompting may not be necessary.

Is my best bet just having a secondary slot or does anyone have good ideas to handle this reliably?

5 replies

Forum|alt.badge.img+2

@andrewwhitley interesting use case! have you possibly played around with adding a “mw.generate_text_action” with some instructions like:

The <description> slot input by the user should accomplish …<this goal>… Read through the <description> slot, if the slot does not accomplish the previously mentioned goal, explain to the user that you need more information and recollect the slot

 

I have no experience trying this out, but just an idea. It may not be ideal if what you need the description to contain is variable depending on the request, but if the required information from the user is “static” for each time the plugin is called, maybe using the reasoning that’s built into the model is advantageous? Let me know if you try this, I’m curious!


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 5, 2026

@andrewwhitley - do you have a slot validation such as `value.$LENGTH() < xyz` and you are saying that the agentic reasoning engine is adding more to the slot’s value so the validation enforcement always passes?


Forum|alt.badge.img+1
  • Author
  • Known Participant
  • February 5, 2026

@chaney.zimmerman - I will give the generate_text_action a try. In one of my use cases, it is relating to reporting a problem so I want it to include more than just x is broken. The more troubleshooting it can provide to the user beforehand will greatly assist and potentially deflect moving forward completely.

@Kevin Mok - Yes my slot validation is ‘value.$SPLIT(" ").$FILTER(word => word != "").$LENGTH() > 15’. It worked the first time I tried running it in that I was asked for additional input to move forward, but since then it is always making the slot long enough. For example if I say “xyz is broken’, it will say ‘User has reported that xyz is not responding. User has performed abc steps with no success. Please assist’. I have added to the slot description to never summarize, but that does not help.


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 5, 2026

Okay, that is quite odd. Would you mind opening a support ticket referencing this thread and that way I can get this escalated as well?

I tested and your DSL is fine as well.

 


Forum|alt.badge.img+1
  • Author
  • Known Participant
  • February 6, 2026

I just submitted a ticket with more detailed information. Let me know what can be done. Thanks.