Passing input messages from a file to rasa interactive mode

Hello,

Is there any way to pass input data from a file to rasa interactive mode ?

E.g. say I have a file like this (or any other format such as json or yaml)

conversations.txt

# conversation #1

user: hello how are you ?
user: what time is it ?
user: cool thanks

# conversation #2
user: hello how are you ?
user: what is the weather like?
user: gotcha

is there any way to pass each message from the file to interactive mode without having to manually enter it ?

Thanks for your time

Google for postman.

I wanted to leverage the logic already implemented in the rasa interactive cli for selecting intents and actions, rather than implementing this myself using the API/postman

If passing input to the cli is not possible , I will implement something myself

Why do you want Rasa CLI ? You can easily use the Rasa Rest API as documented here: https://rasa.com/docs/rasa/pages/http-api

I mainly wanted to leverage the CLI interactive menu to create/select intents/actions when needed and didnt want to waste time implementing this myself

However I went ahead and started implementing this and I’m almost done, thus I guess this thread can be closed :slightly_smiling_face:

thanks for the responses