# Running bot on command line

**URL:** <https://forum.rasa.com/t/running-bot-on-command-line/27198>\
**Category:** Rasa Open Source\
**Created:** [April 8, 2020, 5:47am UTC](https://forum.rasa.com/t/running-bot-on-command-line/27198 "2020-04-08T05:47:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hakim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hakim/32/7447_2.png) [@Hakim](https://forum.rasa.com/u/Hakim)\
**Post date:** [April 8, 2020, 5:47am UTC](https://forum.rasa.com/t/running-bot-on-command-line/27198/1 "2020-04-08T05:47:26Z")

</div>

` I am trying to run the bot on command line. However, I m not sure what is the correct script for this.`

```
loop = asyncio.get_event_loop()
logger = logging.getLogger( __name__ )
async def parse(serve_forever=True):
    interpreter = RasaNLUInterpreter('./model_save/test3/nlu')
    action_endpoint = EndpointConfig(url = "http://localhost:5055/webhook")
    #action_endpoint = read_config_file('endpoints.yml')
    #action_endpoint = AvailableEndpoints.read_endpoints('endpoints.yml')
    agent = Agent.load("model_save/test3", interpreter=interpreter,action_endpoint=action_endpoint)
    await rasa.core.run.serve_application(agent,channel='cmdline')

    return agent

if __name__ == " __main__":
    loop.run_until_complete(parse())

```

getting this error by running the script

`RuntimeError: Cannot run the event loop while another loop is running`

Rasa - 1.8.1

Python - 3.7.6

OS - Windows 10
