Request slot without form

I have an action that requires just one slot, an ID, which it uses to look something up and return the response. It seems like overkill to create a form for just one slot, right? I want the action to check if the slot has a value otherwise ask the user for the value and then perform the lookup so what is the best way to setup that logic without a form?

1 Like

I don’t think its an overkill. Its best to do things right from the beginning.

Sometimes ago I was also in the same situation and I did not use FormAction. Things where fine but our bot needed expansion and more slots were required. It was a pain to rewrite all those stories and implement FormAction.

With that being said, you can use entity extraction to fill your slots without FormAction.

I actually read in the documentation that forms are only necessary if you’re filling multiple slots and like I said, this action will only ever need 1 slot. Your second answer doesn’t answer my question. I know I can use entity extraction but I’m saying if the slot is not filled, how can I implement logic to just ask for the 1 slot when the intent is triggered without the user providing the entity.

Yeah, so I hope you realize that these will be two different stories (one with entity extraction and one without.) I’m also hoping that you can handle the story in which the entity was extracted along with the intent classification.

For the second story, you can first ask the user for the required information and have something like a “inform” intent where the user will give that information and then proceed as normal. Let me know if it is not clear.

Yes, that is very helpful, Ill give it a try and come back if I don’t get it working, thanks!