An application that generates LinkedIn posts with AI-generated captions and images based on keywords.
- 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
- Node.js (v14 or later)
- npm
- API keys:
- GROQ API key
- Unsplash API key
- LinkedIn API credentials (for company page posting)
-
Clone the repository:
git clone https://github.com/yourusername/linkedinbot.git cd linkedinbot -
Install dependencies:
npm install -
Create a
.envfile 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
-
Start the application:
npm start -
Open your browser and navigate to
http://localhost:3000 -
Enter a keyword for the LinkedIn post topic
-
Review the generated caption and image
-
Click "Post to LinkedIn" to publish it to your company page
This application implements a mock LinkedIn API integration. To fully integrate with LinkedIn:
- Create a LinkedIn Developer App at https://www.linkedin.com/developers/
- Configure the OAuth 2.0 settings with appropriate scopes
- Update the LinkedIn service code with actual API implementation
MIT