GithubHelp home page GithubHelp logo

luizeof / chatwoot-botpress-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from douglara/chatwoot-botpress-bridge

0.0 0.0 0.0 207 KB

Shell 0.18% Ruby 97.63% HTML 1.66% Dockerfile 0.53%

chatwoot-botpress-bridge's Introduction

About

This is a bridge connection chatwoot botpress.

Chatwoot Botpress

Running local

You need ruby 3.0.3 Clone this project:

git clone https://github.com/douglara/chatwoot-botpress-bridge.git
cd chatwoot-botpress-bridge

Copy configuration file:

cp .env.example .env

Edit vars in file .env:

BOTPRESS_ENDPOINT=
BOTPRESS_BOT_ID=
CHATWOOT_ENDPOINT=
CHATWOOT_BOT_TOKEN=

Start server:

rails s

Running tests

rails test

Create an agent bot

Go to your chatwoot directory. Start a rails console in your directory.

bundle exec rails c

Inside the rails console, type the following commands to create an agent bot and get its access token. Save the retrieved token as you would need it in further step.

bot = AgentBot.create!(name: "Botpress Bot", outgoing_url: "https://CHATWOOT_BOTPRESS_BRIDGE_URL/chatwoot/webhook")
bot.access_token.token

Connect Agent Bot to your inbox by running the following command

inbox = Inbox.last
AgentBotInbox.create!(inbox: inbox, agent_bot: bot)

Deploy CapRover

1 - Create new app

2 - Configure env vars

RAILS_ENV=production
CHATWOOT_ENDPOINT=
CHATWOOT_BOT_TOKEN=
BOTPRESS_ENDPOINT=
BOTPRESS_BOT_ID=
SECRET_KEY_BASE=

Generate random SECRET_KEY_BASE with

rake secret

3 - Configure http port In http settings set Container HTTP Port to 3000

4 - Deploy container In deployment settings set Deploy via ImageName with douglara/chatwoot-botpress-bridge:1 and deploy now.

Community to help

Telegram: https://t.me/chatwoot_botpress_bridge

Articles

chatwoot-botpress-bridge's People

Contributors

douglara avatar

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.