Use RasaX and rasa-webchat at the same time

@nik202 Thanks for your reply :smiling_face_with_three_hearts:

  1. this is my credentials.yml

    I use rasa init to create, and I only edit the part of socketio

    # This file contains the credentials for the voice & chat platforms
    # which your bot is using.
    # https://rasa.com/docs/rasa/messaging-and-voice-channels
    
    rest:
    #  # you don't need to provide anything here - this channel doesn't
    #  # require any credentials
    
    
    #facebook:
    #  verify: "<verify>"
    #  secret: "<your secret>"
    #  page-access-token: "<your page access token>"
    
    #slack:
    #  slack_token: "<your slack token>"
    #  slack_channel: "<the slack channel>"
    #  slack_signing_secret: "<your slack signing secret>"
    
    socketio:
    user_message_evt: user_uttered
    bot_message_evt: bot_uttered
    session_persistence: true
    
    #mattermost:
    #  url: "https://<mattermost instance>/api/v4"
    #  token: "<bot token>"
    #  webhook_url: "<callback URL>"
    
    # This entry is needed if you are using Rasa X. The entry represents credentials
    # for the Rasa X "channel", i.e. Talk to your bot and Share with guest testers.
    rasa:
     url: "http://localhost:5002/api"
    

  1. the result of pip list

    my Sanic version is 19.12.2

    (rasa3) xxx@xxx rasa-demo % pip list
    Package                 Version
    ----------------------- ------------
    absl-py                 0.13.0
    aio-pika                6.8.2
    aiofiles                0.8.0
    aiohttp                 3.7.4
    aiormq                  3.3.1
    alembic                 1.4.3
    APScheduler             3.7.0
    astunparse              1.6.3
    async-generator         1.10
    async-timeout           3.0.1
    attrs                   19.3.0
    bidict                  0.21.4
    boto3                   1.21.19
    botocore                1.24.19
    CacheControl            0.12.10
    cachetools              5.0.0
    certifi                 2021.10.8
    cffi                    1.15.0
    chardet                 3.0.4
    charset-normalizer      2.0.12
    clang                   5.0
    cloudpickle             1.6.0
    colorclass              2.2.2
    coloredlogs             15.0.1
    colorhash               1.0.4
    croniter                1.3.4
    cryptography            3.4.8
    cycler                  0.11.0
    dask                    2021.11.2
    decorator               4.4.2
    dm-tree                 0.1.6
    dnspython               1.16.0
    docopt                  0.6.2
    fbmessenger             6.0.0
    fire                    0.4.0
    flatbuffers             1.12
    fsspec                  2022.2.0
    future                  0.18.2
    gast                    0.3.3
    gitdb                   4.0.9
    GitPython               3.1.27
    google-auth             2.6.0
    google-auth-oauthlib    0.4.6
    google-pasta            0.2.0
    greenlet                1.1.2
    grpcio                  1.44.0
    h11                     0.8.1
    h2                      3.2.0
    h5py                    2.10.0
    hpack                   3.0.0
    hstspreload             2021.12.1
    httpcore                0.11.1
    httplib2                0.20.4
    httptools               0.4.0
    httpx                   0.9.3
    humanfriendly           10.0
    hyperframe              5.2.0
    idna                    2.10
    importlib-metadata      4.11.3
    isodate                 0.6.1
    jmespath                0.10.0
    joblib                  1.0.1
    jsonpickle              2.0.0
    jsonschema              3.2.0
    kafka-python            1.4.7
    keras                   2.6.0
    Keras-Preprocessing     1.1.2
    kiwisolver              1.4.0
    locket                  0.2.1
    Mako                    1.2.0
    Markdown                3.3.6
    MarkupSafe              2.1.1
    matplotlib              3.3.4
    mattermostwrapper       2.2
    msgpack                 1.0.3
    multidict               4.7.6
    networkx                2.5.1
    numpy                   1.18.5
    oauth2client            4.1.3
    oauthlib                3.2.0
    opt-einsum              3.3.0
    packaging               20.9
    pamqp                   2.3.0
    partd                   1.2.0
    pika                    1.2.0
    Pillow                  9.0.1
    pip                     22.0.4
    prompt-toolkit          2.0.10
    protobuf                3.19.4
    psycopg2-binary         2.9.3
    pyasn1                  0.4.8
    pyasn1-modules          0.2.8
    pycparser               2.21
    pydot                   1.4.2
    PyJWT                   2.0.0
    pykwalify               1.8.0
    pymongo                 3.10.1
    pyparsing               3.0.7
    pyrsistent              0.18.1
    pyTelegramBotAPI        3.8.3
    python-crfsuite         0.9.7
    python-dateutil         2.8.2
    python-editor           1.0.4
    python-engineio         4.3.0
    python-socketio         5.5.0
    pytz                    2021.3
    PyYAML                  6.0
    questionary             1.5.2
    randomname              0.1.5
    rasa                    2.8.1
    rasa-sdk                2.8.1
    rasa-x                  0.39.3
    redis                   3.5.3
    regex                   2021.7.6
    requests                2.25.1
    requests-oauthlib       1.3.1
    requests-toolbelt       0.9.1
    rfc3986                 1.5.0
    rocketchat-API          1.16.0
    rsa                     4.8
    ruamel.yaml             0.16.13
    ruamel.yaml.clib        0.2.6
    s3transfer              0.5.2
    sanic                   19.12.2
    Sanic-Cors              0.10.0.post3
    sanic-jwt               1.6.0
    sanic-plugin-toolkit    1.2.1
    Sanic-Plugins-Framework 0.9.5
    sanic-routing           0.7.2
    scikit-learn            0.24.2
    scipy                   1.8.0
    sentry-sdk              1.2.0
    setuptools              58.0.4
    six                     1.15.0
    sklearn-crfsuite        0.3.6
    slackclient             2.9.3
    smmap                   5.0.0
    sniffio                 1.2.0
    SQLAlchemy              1.4.32
    tabulate                0.8.9
    tarsafe                 0.0.3
    tensorboard             2.8.0
    tensorboard-data-server 0.6.1
    tensorboard-plugin-wit  1.8.1
    tensorflow              2.3.4
    tensorflow-addons       0.13.0
    tensorflow-estimator    2.3.0
    tensorflow-hub          0.12.0
    tensorflow-probability  0.13.0
    tensorflow-text         2.3.0
    termcolor               1.1.0
    terminaltables          3.1.10
    threadpoolctl           3.1.0
    toolz                   0.11.2
    tqdm                    4.63.0
    twilio                  6.50.1
    typeguard               2.13.3
    typing-extensions       3.7.4.3
    typing-utils            0.1.0
    tzlocal                 2.1
    ujson                   1.35
    urllib3                 1.26.8
    uvloop                  0.14.0
    wcwidth                 0.2.5
    webexteamssdk           1.6
    websockets              8.1
    Werkzeug                2.0.3
    wheel                   0.37.1
    wrapt                   1.12.1
    yarl                    1.7.2
    zipp                    3.7.0
    

  • about Rasa webchat

    OMG~ It’s a good news for me :rofl:



thanks again for your help~ :kissing_closed_eyes: