Вышел Модуль интеграций 2.0 для MedusaЧитать анонс
Chat Widget logo

Chat Widget

Включите чат в реальном времени для продавца и покупателя

npm install @connectycube/chat-widget-medusa-plugin
Категория
Создано
Версия
0.14.3
Последнее обновление
1 год назад
Ежемесячные загрузки
Загрузка данных

Medusa 2.0 chat widget plugin

Medusa 2.0 plugin to integrate Chat Widget for seller/buyer communication

Screenshot 2025-05-07 at 16 39 20

Features

  • Easy Integration
    • Simple script to copy-paste on your website, no coding required
    • No need to handle backend infrastructure — ConnectyCube takes care of it
  • Superior feature set
    • Not just another basic chat widget - it's a complete chat system!
  • Customizable UI
    • Modify colors, themes, and layout to match your brand’s design
  • Real-time Messaging
    • Smooth, instant communication with no delays
  • Moderation tools
    • Keep chats safe with message filtering, user bans, and admin controls
  • Multimedia support
    • Send images, files, and emojis for richer conversations

Installation

Backend

  1. Add plugin to your Medusa 2.0 core app:

    yarn add @connectycube/chat-widget-medusa-plugin
  2. Create ConnectyCube account https://connectycube.com/signup and application, obtain credentials:

Screenshot 2025-05-07 at 15 19 59

Also, go to Chat -> Custom Fields and create a new custom field called :

Screenshot 2025-07-02 at 12 24 35
  1. Add the following variables to your file:

    • - The URL of your Medusa backend, required for custom admin components.
    • - This is essential for authenticating your application with the ConnectyCube platform and accessing its chat services.
    • - This key is used to authorize your application and ensure secure communication with the ConnectyCube SDK.
  2. Add the following code to your file:

    This code connect plugin and helps to resolve an issue similar to https://github.com/medusajs/medusa/issues/11248.

  3. Start the project:

    yarn dev

Storefront

  1. Add chat widget to your Storefront app:

    yarn add @connectycube/chat-widget
  2. Add the following variables to your file:

  3. Create component with the following content:

  4. update :

  5. update to retrieve customer info and pass it to :

  6. Finally, connect component on product details page, e.g.

Demo app

The complete demo app (backend + storefront) available https://github.com/ConnectyCube/chat-widget-medusa-plugin-demo-app

How can I use it?

On storefront, once logged in and opened product page, there will be a Chat toggle button bottom right:

Screenshot 2025-05-07 at 16 35 22

Once clicked, a chat with seller will be opened where you can ask any product's related questions:

Screenshot 2025-05-07 at 16 39 20

From Medusa dashboard there will be a new page called Chat, with the widget embedded, where all customers' chats are displayed, so you as a merchant can reply:

Screenshot 2025-05-07 at 16 38 13

Have an issue?

Join our Discord for quick answers to your questions or file a GitHub issue

Community

License

Apache 2.0