Effortlessly generate, publish, and organize engaging blogs using AI. This project integrates FastAPI, Notion, and the Facebook Graph API to streamline your content creation process.
- AI-Driven Blog Generation: Automatically generate high-quality blog content with advanced AI.
- Seamless Publishing: Publish your content directly to Facebook pages or groups using the Facebook Graph API.
- Effortless Content Management: Organize and manage your blog posts in Notion.
- FastAPI: A high-performance, easy-to-use web framework for the backend API.
- Facebook Graph API: Publish and manage content on Facebook.
- Notion API: Organize and manage blog content within Notion.
- Check out the demo of how the project works:
final.video.mp4
- Clone the repository:
git clone https://github.com/harshkasat/Eudaimonia cd Eudaimonia
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a .env file and add your API keys and other credentials:
FACEBOOK_ACCESS_TOKEN=<your-facebook-access-token> FACEBOOK_APP_SECRET = <your-facebook-app-secert> FACEBOOK_APP_ID = <your-facebook-app-id> GEMINI_API_KEY = <your-google-gemini-api-key> NOTION_DATABASE_ID = <your-notion-database-id> SLACK_APP_TOKEN = <your-slack-app-token> SLACK_OAUTH_TOKEN = <your-slack-oauth-token> TOKEN_CREATED_TIME = <your-token-created-time-facebook> NOTION_API_KEY=<your-notion-api-key>
- Create a .env file and add your API keys and other credentials:
- Run the FastAPI server:
uvicorn main:app --reload
You can also run the application using Docker.
To build the Docker image, use the following command:
docker build -t ai-blog-creation .
To run the Docker container, use the following command:
docker run -p 8000:8000 ai-blog-creation
- If you encounter a conflict with an existing container name, you can remove the existing container with:
docker rm ai-blog-creation