Git Product home page Git Product logo

line-chatbot-x-gemini-api's Introduction

LINE Chatbot x Gemini API - taforyou improvement

Introduction

This project enhances the functionality of a chat application by integrating Firestore for dynamic context awareness, adding quick replies for image requests, and preset prompts for specific actions. Additionally, it utilizes node-cache to temporarily store images awaiting user interaction.

Features

Dynamic Context with Firestore

  • Firestore Integration: Leverages Firestore to maintain chat history, enabling the application to understand the context dynamically within a defined period (default set to 120 seconds). This feature allows for more meaningful interactions by keeping track of recent exchanges.

Enhanced User Interactions

  • Quick Replies for Images: Implements quick reply functionality when users request images, streamlining the interaction and improving user experience.
  • Preset Prompts: Includes predefined prompts for actions such as "Analyze", "Describe", and "Extract", making it easier for users to engage with the application without having to formulate complex commands.

Temporary Image Storage

  • Node-Cache for Temporary Storage: Utilizes node-cache to store temporary images, awaiting postback actions from users. This approach reduces the need for immediate storage solutions and facilitates a smoother user interaction with multimedia content.

Setup and Testing

  • Local Testing: The application has been rigorously tested locally using the Firebase emulator, Cloudflare tunnel, and a personal domain to ensure stability and performance.

Additional Resources

Live Testing

  • Add line OA : @561cepfe and try it by yourself (until free credit is gone)

Contributing

  • Feel free to explore the code, suggest improvements, or contribute to the project. Your feedback and contributions are highly appreciated.

line-chatbot-x-gemini-api's People

Contributors

jirawatee 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.