notice

This is documentation for Rasa Open Source Documentation v2.2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.6.x).

Version: 2.2.x

rasa.nlu.emulators.dialogflow

DialogflowEmulator Objects

class DialogflowEmulator(Emulator)

Emulates the response format of the DialogFlow projects.agent.environments.users.sessions.detectIntent

https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.environments.users.sessions/detectIntent https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/DetectIntentResponse

normalise_response_json

| normalise_response_json(data: Dict[Text, Any]) -> Dict[Text, Any]

"Transform response JSON to DialogFlow format.

Arguments:

  • data - input JSON data as a dictionary.

Returns:

The transformed input data.