Chatty Assistant is a Facebook Messenger AI assistant that performs various tasks and provides multiple features. It utilizes the OpenAI API, particularly the ChatGPT model, to generate responses and handle different user requests.
-
Remember Previous Payload: Chatty Assistant remembers the user's previous payload and utilizes it to provide personalized responses.
-
Chat with Ai Assitant: Users can chat with the AI assistant and receive real-time responses to their queries. The bot uses the OpenAI API to generate relevant and contextual responses based on the user's input.
-
Image Generation: Chatty Assistant can generate images based on user prompts using the OpenAI API. Simply provide a prompt, and the assistant will create an image accordingly.
-
YouTube Video Summarization: Chatty Assistant can summarize YouTube videos by fetching their transcripts and using the ChatGPT model to generate concise summaries.
-
Truecaller Integration: Chatty Assistant offers a Truecaller feature that allows users to retrieve information about Indian phone numbers available on the Truecaller platform.
-
Credit-based System: The assistant employs a credit-based system, where users are initially provided with 5 credits. Each feature usage deducts 1 credit. Users can check their remaining credits and refill them using promo codes.
-
Admin Postback: Chatty Assistant includes an admin postback feature that redirects users to Ankit's portfolio, showcasing his work as an admin.
When a user interacts with the bot for the first time, they receive a welcome message explaining the bot's features and how it can assist them.
After clicking on the "Get Started" button, the bot responds with a greeting and an introduction to the features it offers.
Users can engage in a conversation with the AI assistant, asking questions or providing prompts. The bot uses the OpenAI API to generate relevant responses.
Chatty Assistant remembers the user's previous payload and provides personalized responses based on that context.
Users can prompt the bot to generate images using the OpenAI API. Here, the bot generates an image based on the user's input.
Chatty Assistant fetches the transcript of a YouTube video and uses the ChatGPT model to summarize its content.
Users can utilize the Truecaller feature to retrieve information about Indian phone numbers available on the Truecaller platform.
Chatty Assistant employs a credit-based system, where users start with 5 credits. Each feature usage deducts 1 credit. Users can check their remaining credits and refill them using promo codes.
The admin postback feature redirects users to Ankit's portfolio, showcasing his work as an admin.
To get started with Chatty Assistant, follow these steps:
- Clone the repository and navigate to the project directory.
- Install the required dependencies by running
npm install
. - Set up the necessary environment variables, such as
OpenAi_Api
for the OpenAI API key. - Ensure you have a MongoDB instance set up and provide the MongoDB connection URL as an environment variable.
- Run the application using
npm start
or your preferred method.
Once the application is up and running, users can interact with Chatty Assistant through Facebook Messenger. However, please note that Facebook imposes certain restrictions and verification processes for public access to Messenger bots. Please be aware that until this Messenger bot successfully completes the review process and gets approved by Facebook, it may not be accessible to the public.
Demo: Facebook Page
Make requests with the appropriate payload to engage with the assistant.
The following dependencies are used in this project:
express
: Web framework for Node.js.mongoose
: MongoDB object modeling tool.openai
: Package for interacting with the OpenAI API.
Make sure to install these dependencies by running npm install
before starting the application.
Contributions to Chatty Assistant are welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the GitHub repository.
For any inquiries or questions, please reach out to Ankit.