How to create custom channel instead of socketio channel

Hi, I want to catch the user input message to store in seperate mongodb before rasa bot process it. Can anyone share me a simple code on how to create a custom channel or how can i pre-process input message before rasa bot process it.

Thanks in advance.

1 Like

Hi @azharameen,

You can refere the below link.

I get exception like

Exception: Failed to find input channel class for 'atcerppu.RestInput'. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.

as you said in that answer i put project in environmental variable but still i didnt get any results. server didn’t started, kindly help me, is there any other way without setting env variable

Hi @azharameen,

You will need to add one environment variable and set path of your project into that variable.

for e.g

PYTHONPATH=“path to your custom connector file”.

Afte that you can check out and let me know if it solved your issue pal :slightly_smiling_face:

Thanks @prashant_kamble. actually i was running in docker so the file was not copied to docker. the file worked

Thanks again.

1 Like

You are welcome @azharameen :slight_smile::blush:

1 Like