# Slot values getting duplicated

Check out the other thread in the forum, [The slot is filled as a list and how can we select to store it to database? - Rasa Open Source - Rasa Community Forum](http://forum.rasa.com/t/the-slot-is-filled-as-a-list-and-how-can-we-select-to-store-it-to-database/37857).

I’m assuming that you already know how to use that api.

Look if there is a way to get every drug name that api has and save them to a list.

Write a script that uses that list to create a lookup table.

Write a custom action that calls that api.

Add a few examples of intents and stories for the interaction.

Yes, you would create a “submit” custom action. Here’s an example in our financial bot. Look at this [rule](https://github.com/RasaHQ/financial-demo/blob/58c079f72eab4d0da3c4c259a2d5ab576bb9b436/data/rules/rules.yml#L94) and you see that it calls action_transfer_money when the form is complete. This action runs the code that was done under the 1.0 form submit call.

And you can see the custom action [here](https://github.com/RasaHQ/financial-demo/blob/58c079f72eab4d0da3c4c259a2d5ab576bb9b436/actions/actions.py#L539) which runs the code.

Each form should have a unique name. If each form asks for different slots or asks for the same slots in the same way, you can just use the utterance template `utter_ask_{slot_name}`. If you have different forms asking for the same slot and you want to do it in different ways, you can use: `utter_ask_{...}`.
