The AI chatbot will be white-labeled, allowing for full customization to meet the needs of any company. The chatbot will be integrated with Facebook Messenger, WhatsApp, and a custom chat window that can be embedded into company websites.
Below are the steps to guide you through preparing your local enviroment for the AI CHATBOT CMS. Before diving into setup please look into the concept of Github Sub Modules, Docker Merge.
To begin, ensure you have network access. Then, you'll need the following:
Clone the repository using HTTPS, SSH, or Github CLI
git clone https://github.com/toggle-corp/ai-chatbot-cms.git #HTTPS
git clone [email protected]:toggle-corp/ai-chatbot-cms.git #SSH
gh repo clone toggle-corp/ai-chatbot-cms #Github CLIDownload the contents of backend(ai-chatbot-backend)
git submodule update --init --recursiveUpdate Environment variables
- create .env file and add COMPOSE_FILE variable for the ai-chatbot-cms
touch .env- Copy env.example to .env and update the variables for the backend
cd backend
cp env.example .envNOTE: The backend has a higher priority than the ai-chatbot-cms. You can add backend environment variables in the CMS, but you must create a .env file in the backend for them to work.
Build the docker image
docker compose buildStart the development server
docker compose upInstall the dependencies
docker compose exec react bash -c 'pnpm install'Generate type
docker compose exec react bash -c 'pnpm generate:type'Same steps upto downloading the contents of backend
Update Enviroment variables
- create .env file and add COMPOSE_FILE and other variable for the ai-chatbot-cms
touch .envNOTE: Copy the env variables from the docker compose file in environment section
Install the dependencies
pnpm installGenerate type
pnpm generate:typeStart the development server
pnpm start