Code Monkey home page Code Monkey logo

rasa-chatwoot's Introduction

rasa-chatwoot: Conlab rasa stack for Chatwoot integration

Contents of the repo

This repo contains all components needed to run a Rasa stack. Every component lives inside its own subdirectory:

  1. rasa-server: the Rasa server with the Chatwoot channel
  2. rasa-model-server: the Rasa model server - serving models to Rasa service
  3. rasa-nlg-server: the Rasa NLG server - called by Rasa output engine and does optional lookup in Chatwoot
  4. rasa-action-server: the Rasa action server - called by Rasa when a custom action needs to be run
  5. rasa-model: this contains the training files for the model

Running a development environment

./rundev.sh

This will start all services using docker compose.

Training the model

./train.sh

The resulting model will be will be written to the directory rasa-model/models.

running rasa commands

./rasa.sh

This will start the rasa container so you can issue rasa commands such as rasa cli.

rasa-chatwoot's People

Contributors

eremeye avatar timidri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rasa-chatwoot's Issues

'InlineKeyboardMarkup' not being defined in chatwoot channel integration

The application throws a NameError: name 'InlineKeyboardMarkup' is not defined when the send_text_with_buttons function on line 96 in chatwoot.py is called. This error appears when the Rasa NLU framework tries to process responses which include button options.

2023-09-26 10:19:24 DEBUG    channels.chatwoot  - name 'InlineKeyboardMarkup' is not defined
Traceback (most recent call last):
  File "/app/channels/chatwoot.py", line 268, in message
    await on_new_message(
  File "/usr/local/lib/python3.8/site-packages/rasa/core/channels/channel.py", line 89, in handler
    await app.ctx.agent.handle_message(message)
  File "/usr/local/lib/python3.8/site-packages/rasa/core/agent.py", line 419, in handle_message
    return await self.processor.handle_message(  # type: ignore[union-attr]
  File "/usr/local/lib/python3.8/site-packages/rasa/core/processor.py", line 161, in handle_message
    await self._run_prediction_loop(message.output_channel, tracker)
  File "/usr/local/lib/python3.8/site-packages/rasa/core/processor.py", line 819, in _run_prediction_loop
    should_predict_another_action = await self._run_action(
  File "/usr/local/lib/python3.8/site-packages/rasa/core/processor.py", line 952, in _run_action
    await self.execute_side_effects(events, tracker, output_channel)
  File "/usr/local/lib/python3.8/site-packages/rasa/core/processor.py", line 845, in execute_side_effects
    await self._send_bot_messages(events, tracker, output_channel)
  File "/usr/local/lib/python3.8/site-packages/rasa/core/processor.py", line 860, in _send_bot_messages
    await output_channel.send_response(tracker.sender_id, e.message())
  File "/usr/local/lib/python3.8/site-packages/rasa/core/channels/channel.py", line 229, in send_response
    await self.send_text_with_buttons(
  File "/app/channels/chatwoot.py", line 96, in send_text_with_buttons
    reply_markup = InlineKeyboardMarkup()
NameError: name 'InlineKeyboardMarkup' is not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.