This line-bot is a demonstration project for CINNOX, showcasing a practical implementation of a chatbot integrated with LINE Messenger.
- Chat with AI This project features an interactive chat interface that allows users to converse with an AI
I am running this bot server on GCP, so you can directly add this bot for testing purposes.
DEMO VIDEO <= Click me
- Golang with Gin framework
- LINE Messaging API
- MongoDB
Due to security concerns, the .env and config.yml files have been added to the .gitignore to prevent the exposure of sensitive keys.
To configure your application, please follow these steps:
- Remove the
.testextension fromconfig.yml.testand.env.test:
mv config.yml.test config.yml
mv .env.test .env- And set your line token and channel Secret in
config.yaml:
Line:
ChannelSecret: YOUR LINE TOKEN
Token: YOUR LINE SECRETmake upif you want to delete MongoDB container
make downmake testmake build
./line-bot-jaeger| Method | URL | Describe |
|---|---|---|
| POST | {{HOST}}/callback | For line webhook |
| POST | {{HOST}}/sendMessage | Send message to user |
| GET | {{HOST}}/message/{{userid}} | Get a Single User's Message |
| GET | {{HOST}}/message/{{userid}} | Get All Messages from All Users |
Request
URL: {{HOST}}/sendMessage
Method: POST
Path Variables
| Parameter | Type | Required | Describe |
|---|---|---|---|
| userid | string | Required | Userid in line |
| text | string | Required | Message you want to send to the user |
Request
URL: {{HOST}}/message/{{userid}}
Method: GET
Path Variables
| Parameter | Type | Required | Describe |
|---|---|---|---|
| userid | string | Required | line user id |