メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Remember

The Remember action allows you to add values to an Assistant's memory. It takes key-value pairs and stores them in the memory object of the Dialogue payload to be returned in subsequent requests.

With the Remember action, you can store key information that is persisted across intents to build rich dialogs such as shopping carts, order flows or any multi-step task.

Simple example: Remember customer first name

{
	"actions": [
		{
			"remember": {
				"first_name": "Valentina"
			}
		}
	]
}

The values are then stored in the Assistant memory. All the data in the memory will be sent in the Memory parameter as either POST parameter or URL query parameter, depending on which HTTP method you've configured.

{
   "first_name": "Valentina"
}

Overwriting behavior

A given key-value pair is overwritten when it is remembered again. If a new key is provided it will be added to the map.

Rate this page:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.