OpenNyAI / Jugalbandi-Manager

Jugalbandi (JB) Manager is a full AI-powered conversational chatbot platform. It's platform agnostic and can serve multiple channels such as WhatsApp or custom web interfaces. It can handle conversations in both text and voice across any language. It comes with Bhashini Speech models out of the box and can failover to Azure.
https://opennyai.github.io/Jugalbandi-Manager/
Apache License 2.0
19 stars 21 forks source link

[Bug]: Flow service is throwing error when user sends msg through the Whatsapp channel #146

Closed vaibhavbhuva closed 1 month ago

vaibhavbhuva commented 1 month ago

Describe the bug

Running Jugalbandi manager locally results in an error due to a recent update in jb-manager-bot. The new version doesn't expose the FSMOutput class, which is required by existing code in the FSM file.

Steps to reproduce

Step 1: Try building and running any existing version of the Jugalbandi application. Step 2: If the application runs successfully, send a "Hi" message through the WhatsApp channel. Step 2: Observe the application logs for any relevant information or errors.

Expected Behavior

No response

Screenshots and logs

Screenshot 2024-07-16 at 2 58 41 PM

Additional Information

Include the version number of jb-manager-bot alongside the import statement in flow/src/__main__.py. This ensures compatibility with the expected version.

In the published version of jb-manager-bot, ensure the FSMOutput class is still accessible for existing projects.

Here's the sample code:

flow/src/main.py


async def install_or_update_bot(bot_config: BotConfig):
    bot_id = bot_config.bot_id
    bot_name = bot_config.bot_name
    fsm_code = bot_config.bot_fsm_code
    requirements_txt = (
        "openai\ncryptography\njb-manager-bot==<{PUBLISHED_VERSION_OF_JB_MANAGER_BOT}>\n" + bot_config.bot_requirements_txt.
    )
kanak8278 commented 1 month ago

We have deployed a new version of JB-Manager-Bot and Quickstart(Change in the ChatBot Code) car_wash.py This should resolve the issue. @vaibhavbhuva

shreypandey commented 1 month ago

@kanak8278 Can you please update the bot installer to use version 0.2.0. We will create a release after that to update the published images.

vaibhavbhuva commented 1 month ago

@shreypandey I have fixed in this #154

shreypandey commented 1 month ago

Merged the fix in #154