Skip to content

Develop chatbots with zero configuration using typescript

License

Notifications You must be signed in to change notification settings

jellydn/demo-chat-bot

Repository files navigation

Welcome to demo-chat-bot 👋

Version Documentation Maintenance License: MIT

Start write chatbots with urban-bot and typescript

#Build with IT Man - ChatBot & AI - Part 1 [Vietnamese]

Prerequisites

  • node >=16.20.0

Install

yarn install

Usage

Create .env from .env.example then run below command

yarn dev

Run tests

yarn test

How to setup

Telegram

  1. Get telegram token
  2. Paste token to .env TELEGRAM_TOKEN=YOUR_TOKEN
  3. Uncomment // import './render/telegram'; inside src/index.ts
  4. Run npm run dev and check your bot

Slack

  1. Create slack app
  2. Paste token to .env SLACK_TOKEN=YOUR_TOKEN
  3. Paste signing secret to .env SLACK_SIGNING_SECRET=YOUR_SIGNING_SECRET
  4. Run npm run start-tunnel and connect the public url with slack webhook.
  5. Uncomment // import './render/slack'; inside src/index.ts
  6. Run npm run dev and check your bot

Facebook

  1. Create facebook app
  2. Paste credentials to .env
  3. Run npm run start-tunnel and connect the public url with facebook webhook.
  4. Uncomment // import './render/facebook'; inside src/index.ts
  5. Run npm run dev and check your bot

Author

Resources

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.

About

Develop chatbots with zero configuration using typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published