Custom Channel with Rasa X

You specify the location of a custom channel in the credentials.yml, for example:

connectors.myconn.MyConnector:
  session_token: ${MY_TOKEN}

This is referencing a file called connectors/myconn.py from the project root. If you’re using a docker-compose setup, you then need to make sure the rasa-production services can access this file on the host filesystem (or build it into your own custom image).

To map into the local filesystem, create a docker-compose.override.yml with something like this:

version: '3.4'
services:
  rasa-production:
    volumes:
      - ./connectors:/app/connectors
  rasa-worker:
    volumes:
      - ./connectors:/app/connectors

Then re-start.