Jimmy
Jimmy

Reputation: 331

How can i save a user's input on api.ai(dialogflow)?

Basically i want the user to forward an input and I want that input to be saved by the chatbot and used, for example:

human:hi
bot:hello
human:take the input first input
bot:First input has been added anything else

what i did at first is created an entity and added many input values for testing purposes only but my bot should basically take any input and store it for later use in the conversation. I also looked into @sys.given-name but won't work for my case as the input won't be a human name.It could be ajdhshdj as far as i'm concerned and i'd want to take it.

Upvotes: 1

Views: 1911

Answers (1)

Prisoner
Prisoner

Reputation: 50701

It sounds like you want the @sys.any entity for your parameter. Use this sparingly, and in low-priority intents if you must, but it should match "anything".

If there are other components of what they're saying that you don't want to capture, you can just highlight the part in your sample phrase you want as a parameter and set the type to @sys.any. So you might have something like this:

enter image description here

Upvotes: 2

Related Questions