Skip to content

maazmasood/LinkedinPostGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedIn Post Generator

An application that generates LinkedIn posts with AI-generated captions and images based on keywords.

Features

  • Generate LinkedIn post captions using GROQ AI (meta-llama/llama-4-scout-17b-16e-instruct)
  • Fetch relevant images from Unsplash
  • Preview the generated content
  • Post to LinkedIn company page

Prerequisites

  • Node.js (v14 or later)
  • npm
  • API keys:
    • GROQ API key
    • Unsplash API key
    • LinkedIn API credentials (for company page posting)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/linkedinbot.git
    cd linkedinbot
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory with the following variables:

    # API Keys
    GROQ_API_KEY=your_groq_api_key_here
    UNSPLASH_ACCESS_KEY=your_unsplash_access_key_here
    
    # LinkedIn API Credentials
    LINKEDIN_CLIENT_ID=your_linkedin_client_id_here
    LINKEDIN_CLIENT_SECRET=your_linkedin_client_secret_here
    LINKEDIN_REDIRECT_URI=http://localhost:3000/auth/linkedin/callback
    
    # App Configuration
    PORT=3000
    

Usage

  1. Start the application:

    npm start
    
  2. Open your browser and navigate to http://localhost:3000

  3. Enter a keyword for the LinkedIn post topic

  4. Review the generated caption and image

  5. Click "Post to LinkedIn" to publish it to your company page

LinkedIn API Integration

This application implements a mock LinkedIn API integration. To fully integrate with LinkedIn:

  1. Create a LinkedIn Developer App at https://www.linkedin.com/developers/
  2. Configure the OAuth 2.0 settings with appropriate scopes
  3. Update the LinkedIn service code with actual API implementation

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published