This application helps generate professional LinkedIn content based on web articles and user input. It uses LangChain and OpenAI's GPT model to create engaging posts.
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
Start the server:
python app.pyThe server will run at http://localhost:8000
Generate LinkedIn content based on a URL and user message.
Request body:
{
"url": "https://example.com/article" (optional),
"message": "Your message or instructions here"
}Response:
{
"response": "Generated LinkedIn content"
}- URL content extraction
- OpenAI GPT-3.5 Turbo integration
- Customizable prompt template
- FastAPI backend for quick response times
- Error handling and input validation