Skip to content

A GPT-based autonomous multi-agent AI in Next.js that research & recommends Instagram Viral Posts reflecting your personality.

License

Notifications You must be signed in to change notification settings

MODSetter/gpt-instagram

Repository files navigation

GPT-INSTAGRAM

A GPT-based autonomous multi-agent AI app using Next.js, LangChain.js, and LangGraph.js to research and recommend Instagram posts based on user queries and personalities extracted from user’s historical Instagram data via Instagram Basic Display API.

Video

gptinsta.mp4

Walkthrough

Highlevel

AGENTS

  1. Data Explainer Agent: Our Sherlock Holmes agent generating information about User Historical Posts.
  2. Explanation Condenser Agent: Our Sherlock Holmes Agent with phd in English literature to generate final report on the user posting style.
  3. IG Post Generator Agent: Our researcher to generate Instagram Post Suggestions based on user personality and Viral Critique Agent feedback.
  4. Viral Critique Agent: Our Marketing expert to ensure that post suggestions have potential to get viral.
  5. Image Generator Agent: Our artist, to generate images.
  6. Post Improver Agent: Our Agent who talks with user to improve the posts.

INITIAL SETUP

  1. First give this repo a ✨✨ star ✨✨ for good luck. 😉

  2. Since GPT-Instagram works with your historical Instagram Posts Information to extract your style you need to follow this guide to get your Instagram Access Token to extract data via Instagram Basic Display API.

Follow these guide to setup your Facebook App to get access to Instagram Basic Display API.

You can generate Your token from facebook app dashboard at now at 'Instagram Basic Display > Basic Display'. It should look something like this.

token

Click on 'Generate Token' to get your IG Access Token.

  1. Get your OpenAI API key from https://openai.com/index/openai-api/
  2. Get your Tavily Search API key from https://tavily.com/#api
  3. Fill in your .env file. env.example explains it pretty well.
KEY DESCRIPTION
OPENAI_API_KEY Your OpenAI API key from https://openai.com/index/openai-api/
TAVILY_API_KEY Tavily Search API key from https://tavily.com/#api
DATABASE_URL Postgres DB URL
IG_ACCESS_TOKEN Your Instagram Access Token
NEXT_PUBLIC_BASE_URL Deployment URL(only https to work with Instagram API)
  1. Since GPT-Instagram uses Drizzle ORM make sure to run yarn then yarn generate & yarn migrate before you run the project to create your DB.

  2. Finally run yarn dev to run the Application.


This app was done for Tavily AI Intern Application. This is just a toy project don't expect any further updates.


About

A GPT-based autonomous multi-agent AI in Next.js that research & recommends Instagram Viral Posts reflecting your personality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published