Work with preanswered key/values
Preanswered key/values allow you to share a flow with some questions already answered. See Understand preanswered key/values for more information.
Set up the key/values in the flow
- Select the question node which you'd like to make preanswerable.
- Click the menu icon next to an answer you'd like to make preanswerable.
- Select "Add Answer key/values".
- Specify a key for this answer. This should be a short, descriptive, unique identifier for the question being asked.
- Specify a value for this answer. This should be a short, descriptive, unique identifier for this specific answer.
- If multiple values should map to the same answer, click "Add Key/Value" and specify another pair.
- Repeat steps 2-6 for any other answers you'd like to make preanswerable.
Specify the preanswered key/values in the shared link
- For each question you'd like to preanswer, gather the key and value with the answer you want to provide.
- Form the list of key/value pairs into a list of maps, structured like this:
[{"key":"range","value":"a100"},{"key":"model","value":"a152"}]
- For best compatibility with different browsers, URL encode the list of maps. The result should look something like this:
%5B%7B%22key%22%3A%22range%22%2C%22value%22%3A%22a100%22%7D%2C%7B%22key%22%3A%22model%22%2C%22value%22%3A%22a152%22%7D%5D
- Get your shareable link to the flow. It should look something like this:
https://app.mavenoid.com/org/YOUR-ORG-NAME/product/1234567/s/new?authtoken=ab12cd34ef56ab12cd34
- Add the list of maps list to the link as an additional GET parameter called
preansweredKeyValues
. It should look something like this:
https://app.mavenoid.com/org/YOUR-ORG-NAME/product/1234567/s/new?authtoken=ab12cd34ef56ab12cd34&preansweredKeyValues=[{"key":"range","value":"a100"},{"key":"model","value":"a152"}]
Or if you URL encoded it, like this:
https://app.mavenoid.com/org/YOUR-ORG-NAME/product/1234567/s/new?authtoken=ab12cd34ef56ab12cd34&preansweredKeyValues=%5B%7B%22key%22%3A%22range%22%2C%22value%22%3A%22a100%22%7D%2C%7B%22key%22%3A%22model%22%2C%22value%22%3A%22a152%22%7D%5D
- Share the link.
Conversations started from this link will have the corresponding questions automatically answered when the user reaches them, without the user needing to select an answer in the assistant.