# Dialogflow emulation in python

**URL:** https://forum.rasa.com/t/dialogflow-emulation-in-python/5919
**Category:** Getting Started with Rasa
**Created:** [March 11, 2019, 10:34am UTC](https://forum.rasa.com/t/dialogflow-emulation-in-python/5919 "2019-03-11T10:34:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chaitu9701](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@chaitu9701](https://forum.rasa.com/u/chaitu9701)
#### Post date: [March 11, 2019, 10:34am UTC](https://forum.rasa.com/t/dialogflow-emulation-in-python/5919/1 "2019-03-11T10:34:53Z")

</div>

For dialogflow emulation, I start a server using command `python -m rasa_nlu.server -e dialogflow --path ./models` and it gives me output preformatted as dialogflow when I use command `curl -XPOST localhost:5000/parse -d '{"q":"hello there", "project": "current"}'` . How do i emulate dialogflow output in python? This code give’s me output in rasa format and not dialogflows

````auto
import json
def pprint(o):
    print(json.dumps(o, indent=2))
interpreter = Interpreter.load('models/current/model_20190226-124527')
pprint(interpreter.parse(u"I want a ticket from US to Phillipines"))```

Is there any way to get the output in dialogflow format?
````
