Skip to main content

Rasa

This section describes how to integrate a Rasa integration channel with Botanalytics.

This section is designed for the the latest version of Botanalytics, which is currently on private beta.

If you would like to join the beta and use the latest version of Botanalytics, follow the instructions.

Integration

Integrating Botanalytics into your Rasa application is quick and easy.

Integration Options

Add Botanalytics to your endpoints.yml

Add a line to your endpoints.yml so that rasa-core is configured to send events to Botanalytics:

event_broker:
  type: botanalytics.rasa.Rasa
  api_key: BOTANALYTICS_API_KEY

Configuration options

OptionRequiredDefaultDescriptionEnvironment Variable
api_keyYesHas no defaultAPI key that is provided when a Rasa channel is added to a project.BA_API_KEY
debugNoFalseEnables logging. Set this to true or True to enable.BA_DEBUG
base_urlNohttps://api.beta.botanalytics.co/v2Base URL to be used for sending requests. Do not change this unless instructed by the Botanalytics team.BA_BASE_URL
is_asyncNoFalseWhether client should use async workers. Set this to true or True to enable.BA_IS_ASYNC
thread_workersNocpu count * 2The number of thread workers for the async clientBA_THREAD_WORKERS

Additional environment variables/options

NameRequiredDefaultDescriptionEnvironment Variable
Could only be set via environment variable.NoINFOLog level for the logger. Could be set one of following options TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL.BA_LOG_LEVEL
request_retry_limitNo10Request retry limit for the clientBA_REQUEST_RETRY_LIMIT
request_timeoutNo30000Request timeout for the clientBA_REQUEST_TIMEOUT

Next Steps