Allows to generate article using:
- Telegram Bot to enter keywords
- ChatGPT to generate articles
- Notion to save the result
- Docker that makes everything work
- Get Telegram bot API token (https://t.me/BotFather)
- Get ChatGPT API key (https://platform.openai.com/account/api-keys)
- Get Notion secret (https://www.notion.so/my-integrations)
- In the Notion: create database 'My Articles', add connection, and get id of the notion page (https://www.notion.so/help/add-and-manage-connections-with-the-api)
- Run command:
git clone https://github.com/KhitrovMaksim/generated-articles.git
- Run command:
cd generated-articles
- Create .env file in the 'generated-articles' directory:
TELEGRAM_TOKEN=65860836...
OPENAI_API_KEY=sk-Oq1xz...
NOTION_SECRET=secret_zs...
NOTION_PAGE_ID=89565...
- Run command:
npm i
- To run dev:
npm run dev
- To run prod:
docker compose up
- ChatGPT API (OpenAI)
- Telegram API (Telegraf)
- Notion API
- Docker
Bot: https://t.me/ArticlesGeneratorBot (The bot has been stopped!)