An AI-powered web application that helps marketing teams and content creators generate high-quality social media posts without writing prompts manually.
🔗 OPENAI-SELF-SERVE app - Live App
Main Page
Example
Generated Post

- Pre-built Prompt Templates: Choose from professionally crafted templates for different platforms and tones
- Guided Form Interface: No need to write prompts - just fill in the blanks
- Multi-Platform Support: Generate content for LinkedIn, X (formerly Twitter), and Instagram
- Customizable Tone: Professional, casual, or excited tone options
- Target Audience Selection: Choose from 10+ predefined audience types
- Flexible Post Length: Short, medium, or long post options
- Additional Instructions: Add custom requirements or preferences
- One-Click Copy: Copy generated posts to clipboard instantly
- Responsive Design: Works perfectly on desktop and mobile devices
This tool is designed for:
- Marketing teams with no coding experience
- Content creators and social media managers
- Small business owners
- Freelancers and consultants
- Anyone who needs to create engaging social media content quickly
- Node.js (version 14 or higher)
- npm or yarn
- OpenAI API key
-
Clone or download the project files
-
Install dependencies
npm install
-
Set up your OpenAI API key
- Copy the
env.example
file to.env
- Replace
your_openai_api_key_here
with your actual OpenAI API key
cp env.example .env
Then edit the
.env
file:OPENAI_API_KEY=your_openai_api_key_here PORT=3001
- Copy the
-
Run the application
npm run dev
This will start both the backend server (port 3001) and the React frontend (port 3000).
-
Open your browser Navigate to
http://localhost:3000
to use the application.
- Visit OpenAI's website
- Create an account or sign in
- Navigate to the API section
- Generate a new API key
- Copy the key and paste it into your
.env
file
-
Enter your topic: Describe what you want to post about (e.g., "New AI productivity tool", "Marketing strategy webinar")
-
Choose your platform: Select LinkedIn, X (formerly Twitter), or Instagram
-
Select your tone: Choose between Professional, Casual, or Excited
-
Pick your audience: Select from options like "Marketers", "Startup Founders", "Developers", etc.
-
Choose post length: Short (1-2 sentences), Medium (3-5 sentences), or Long (6+ sentences)
-
Add custom instructions (optional): Include any specific requirements, mentions, or style preferences
-
Click "Generate Post": The AI will create a tailored social media post
-
Copy and use: Click the copy button to copy the generated post to your clipboard
npm start
: Runs the React app in development modenpm run server
: Runs only the backend servernpm run dev
: Runs both frontend and backend concurrentlynpm run build
: Builds the React app for productionnpm test
: Runs the test suite
To add a new social media platform:
- Add the platform to the
PLATFORMS
array insrc/data/constants.js
- Add corresponding prompt templates in the
PROMPT_TEMPLATES
object - The rest of the application will automatically support the new platform
To add new tone options:
- Add the tone to the
TONES
array insrc/data/constants.js
- Add corresponding templates for each platform in
PROMPT_TEMPLATES
Simply add new audience options to the AUDIENCES
array in src/data/constants.js
.
Variable | Description | Required |
---|---|---|
OPENAI_API_KEY |
Your OpenAI API key | Yes |
PORT |
Backend server port (default: 3001) | No |
The application uses OpenAI's GPT-4o model. Each generated post consumes a small amount of tokens (typically 100-600 tokens per request).
-
"OpenAI API key not configured" error
- Make sure you have created a
.env
file - Ensure your API key is correctly set in the
.env
file - Restart the server after updating the
.env
file
- Make sure you have created a
-
"Failed to generate post" error
- Check your internet connection
- Verify your OpenAI API key is valid
- Ensure you have sufficient OpenAI API credits
-
Server not starting
- Make sure port 3001 is not in use by another application
- Try changing the PORT in your
.env
file
If you encounter issues:
- Check the browser console for error messages
- Check the server console for backend errors
- Verify your OpenAI API key is valid and has sufficient credits
To deploy this application:
-
Build the React app
npm run build
-
Serve the built files along with the backend server
-
Set environment variables on your hosting platform
-
Use the production start script
npm run start:prod
This project is open source and available under the MIT License.
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
- Improve documentation
This tool is designed to save you time and help you create engaging social media posts effortlessly. Happy posting! 🎯