Can we pass array data to dispatcher?

i will get the latest data using this–> input = tracker.latest_message.get(‘text’)

I have an array of data, I need to pass this array data as a bot response. how can I do that? I tried Bot is not responding how can we pass the same array output to bot repsonse using diapatcher ? is there any way i can do this ?

example: patterns = [‘ape’, ‘apple’, ‘peach’, ‘puppy’], input=‘appel’ --> from the latest data from the user . i’m using difflib module to find similiar data in the array we get the output as a array as below Output : [‘apple’, ‘ape’] if i use print the outbut is print on the console , not as a bot response

2019-09-02 18:52:26 INFO rasa_sdk.endpoint - Action endpoint is up and running. on (‘’, 5055) [‘SelectTN’] - - [2019-09-02 18:55:19] “POST /webhook HTTP/1.1” 200 182 0.032001

please some one help me how can i work on this ?

Can you tell me exact response you wanted to be shown on bot UI? If input => appel then output => apple ape (as a single string) ?

As a array (apple,ape) two values

You can define a template like this in your domain

-text: Return output this way {output}

Now in your custom action you call the dispatcher via

dispatcher.utter_template('utter_output', tracker, output=<whatever you want>) 

with your desired output