Skip to content

bernardadhitya/intern-logbook-chatbot

Repository files navigation

BINUS Intern Logbook LINE Chatbot and Autofiller

TL;DR For tutorial on how to use this, click here

This is a LINE Chatbot created to fill and show logbook from BINUS Internship website. This chatbot is created to help fill and show logbook when accessing the website directly is not an option.

Additional feature includes autofiller for the logbook. The bot will autofill the logbook with "Day Off" on weekend, and will fill with the last log on weekday.

Demo

Alt Text

Features

  • Fill and show logbook from LINE
  • Autofill logbook on weekend with "Day Off"
  • Autofill logbook on national holidays
  • Autofill logbook on weekdays with the last submitted log

Data Structure

When data in the logbook is scraped using Puppeteer, we save it in form of a JSON API so that it can be accessed by the LINE bot.

[
    {
        "date": "",
        "clock": {
            "in": "",
            "out": ""
        },
        "activity": "",
        "description": ""
    }
]

These enables user to search the log via LINE by date, and get all the data, to make sure the logs are in without going to the website.

Installation

Assuming you already have Node.js installed in your device, to install the project, you can clone this repository to your device, then follow these steps:

cd intern-logbook-chatbot
npm install

How to Use

If you are planning to use this bot yourself, below we list the tutorials to;

  • Integrate autofill feature with Github Actions here
  • Deploy LINE Chatbot with LINE Developer and Heroku here

Resources

For this project, I use Puppeteer for web scrapping, Express.js and LINE SDK.

About

Fill and view logbook from LINE. It also automatically updates local database to sync logbook faster, and autofill logbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published