Skip to content

Anushlinux/Airvata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Airvata

Automated replies to your nalle friends who sends you 100 reels everyday and expect reaction to each of them ;)

Description

This bot logs into an Instagram account, periodically checks for unread DMs, processes new messages using an AI agent (powered by Google's Gemini model via the Agent Development Kit - ADK), and sends back generated replies. It maintains conversation history and tracks processed messages to avoid duplicates.

Features

Technology Stack

  • Python 3
  • instagrapi: For interacting with the private Instagram API.
  • google-generativeai & google-adk: For AI response generation using Gemini models.
  • python-dotenv: For managing environment variables.

Setup

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-directory>
  2. Create a virtual environment (recommended):
    python -m venv .venv
    source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`
  3. Install dependencies:
    pip install -r requirements.txt
  4. Configure Environment Variables: Create a .env file in the root directory (it's ignored by git) with the following content:
    INSTAGRAM_USERNAME="your_instagram_username"
    INSTAGRAM_PASSWORD="your_instagram_password"
    GEMINI_API_KEY="your_google_gemini_api_key"
    CHECK_INTERVAL_SECONDS="60" # Optional: defaults to 60 seconds
  5. Configure ADK Agent (Optional): Modify the agent's behavior, model, or tools in Airvata/adk_config.yaml.

Usage

Run the main script to start the bot:

python Airvata/main.py

About

still in progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages