PDF document to WordPress article with Gmail human approval workflow
This n8n workflow extracts text from an uploaded PDF and drafts a structured post with OpenAI. An HTTP endpoint generates cover media while Telegram receives a quick preview. Gmail pauses for human approval before WordPress publishes the article under three built-in node error flags.
- Catalogue ID
- #1424
- Functional nodes
- 19
- Connections
- 19
- Trigger
- formTrigger
- AI layer
- AI-assisted
Business problem solved
Turning internal PDF briefs and whitepapers into formatted WordPress posts with cover images takes hours of editing. Fully automatic publishing without human review creates brand and accuracy risks.
Trigger
The form trigger accepts a PDF upload and initiates extraction, drafting, preview and human approval.
Connected systems
- Upload form
- PDF text extractor
- OpenAI
- Gmail approval
- Telegram
- WordPress
- HTTP image and media API
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. Upload PDF (Trigger) (connects to Extract Text)
- 2. Extract Text (Service and data) (connects to Write Blog Post)
- 3. gpt-4o-mini (AI layer) (connects to Write Blog Post)
- 4. pollinations.ai (Service and data) (connects to Upload Image to Wordpress, Merge, Get Base64)
- 5. Create Wordpress Post (Service and data) (connects to pollinations.ai)
- 6. Upload Image to Wordpress (Service and data) (connects to Set Image on Wordpress Post)
- 7. Set Image on Wordpress Post (Service and data) (connects to Markdown)
- 8. Send Error Message (Service and data)
- 9. Is there Title & Content? (Logic and routing) (connects to Human In The Loop Approve…, Send Error Message)
- 10. Merge (Logic and routing) (connects to Telegram Partial Blog, Gmail Final Blog)
- 11. Markdown (Service and data) (connects to Merge)
- 12. Human In The Loop Approve… (Service and data) (connects to Is Approved?)
- 13. Is Approved? (Logic and routing) (connects to Create Wordpress Post)
- 14. Gmail Final Blog (Service and data)
- 15. Telegram Partial Blog (Service and data)
- 16. Get Blog Post (Logic and routing) (connects to Is there Title & Content?)
- 17. Write Blog Post (AI layer) (connects to Get Blog Post)
- 18. Get Base64 (Service and data) (connects to Save Image to imgbb.com)
- 19. Save Image to imgbb.com (Service and data)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
PDF upload and text extraction
The submitted PDF file enters the extraction node to retrieve clean text for content drafting.
- 02
Article drafting and media preview
OpenAI writes the article body and title, an HTTP call generates an image and Telegram receives a quick preview.
- 03
Gmail human-in-the-loop approval
Gmail sends an approval request to the editor and pauses WordPress publishing until an explicit approval arrives.
- 04
WordPress publishing and error branches
Approved articles publish to WordPress with media attached, while three built-in error flags catch WordPress API failures.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow carries three built-in node error flags on WordPress post creation, image upload and featured-image assignment. A Telegram error node is also connected.
Production layer added by ALTAI
During live deployment, ALTAI wires the three built-in error paths to a central error queue. Image source licensing stays locked alongside a publishing run log.
PDF to WordPress post with Gmail approval Frequently asked questions
No. The approval conditional node only passes confirmed approvals to WordPress publishing; rejected drafts stop cleanly.
If WordPress post creation, media upload or featured-image assignment fails, the error flags prevent silent breakage and preserve execution state.
Yes. During deployment, the WordPress post status field can lock to draft so editors make final formatting checks inside the CMS.
Related n8n workflows
Gmail newsletter summary to Telegram audio
Summarises filtered Gmail messages with OpenAI, converts text to speech via an error-protected HTTP call and sends Telegram audio.
Nostr AI topic reporting to Gmail and Telegram
Reads tagged Nostr posts on a schedule, runs Google Gemini chains to summarise themes and sends HTML digests to Gmail and Telegram.
Past meeting follow-up with Gmail approval
Checks recent Google Calendar meetings for missing Gmail follow-up, proposes available calendar slots via OpenAI agents and sends a Gmail approval gate.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms