How use the " Edit 'Values' collection" in dynamic slots?

Hello
Please help me with this doubt
I am using a dynamic slot for show one collection obtained since the data action
In the configuration of the slot type I entered in the value field, the variable where I save the information obtained since the data action,
With this value the bot flow work correctly
imagen

But I tried to use the options of "edit values collection". In first time I do not understand how work it, and I in my tests the results are errors in the execution of the bot flow

imagen

Anybody have some example or could explain me how use the dynamic slots, the information of the resource center is not enough
Thanks

Hi @Gladys

So you've got the dynamic slot working with a data action, and now you want to edit the values of the dynamic slot type, and getting no validation errors but an execution error.
I'm not fully understanding the need to update the values at an item level, because the idea of the dynamic slot is that the list of slots is represented by a variable whose value is not known at run time.

Could you provide more info, like why you are editing at an item level, or the execution error you are getting, without revealing any sensitive customer-specific data?

This is the scenery; I have a data actions for obtain one collection of cities
I used a dynamic slot for ask to client to enter a number to identify the city, but I can not present the cities like a list
1.- city a
2.- city b
3. city c
x.- city X
I though that in the Edit values collection I could defined this list and associate the number entered with the city
For example the client enter 1 and in the collection correspond the "city a"

Thanks. If the success template coming back from your data action defines the list of cities as object properties instead of an array, like cityA, cityB, cityC for example, I suppose it makes sense to add them at the item level.
You should be able to switch from a literal item type to an expression item type by clicking the page icon to the right of the text inputs in the Edit 'Values' collection window, and then define the variable you want there, like Flow.cityA, or whatever your variable name will be.

But if the success template is returning an array variable like 'cities', then you would be able to add that variable directly to values and not worry about the individual items, which is the typical use case.

About mapping slot values to numbers, that should be possible using the synonyms.

Let me know if that helps.

But in the synonyms how I can associate the number with the individual item obtained?

Synonyms are matched by index, so if a synonym has index 3 in the list, it will match the value at index 3

Another thing to note, if you're trying to take a value list variable like Flow.cities and map each list item to a number, if you know the length of the list you could use the GetAt function in the expression editor to get a list item at a particular index

Thank you Jacobshaw I solved this configuration
Now I have other consult about "Agent escalation" how I can choose an specific queue for send the interaction when the client ask for an agent, because my flow pass the interactions for differents queues depending the case?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.