You are helping me build the following AI agent workflow. ## Goal Social Media Posts From WordPress: Pulls a WordPress post ID from Google Sheets to generate platform-specific AI captions and images, then publishes them to X. ## Specification - What it does: Get your WordPress content live on X, Facebook, LinkedIn, and Instagram instantly by letting this workflow pull post IDs from Google Sheets, generate tailored AI captions and images, and publish them across all platforms while tracking success in your sheet. - Trigger: Run manually (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - n8n: Workflow orchestration platform - WordPress: Fetching blog post content - Google Sheets: Storing post IDs and tracking status - OpenRouter Chat Model: Generating platform-specific captions via AI - OpenAI: Generating images for social posts ## Known pitfalls, handle each one explicitly in your implementation 1. Social media APIs often enforce strict rate limits so you must add delays between publish calls to avoid being blocked. 2. Image dimensions vary significantly across platforms like Instagram versus LinkedIn so resize the generated images dynamically before upload. 3. WordPress permalinks may change over time so verify the post URL is still valid before generating assets to prevent broken links. 4. Authentication tokens for social platforms expire periodically so implement a refresh mechanism or store credentials securely in n8n. ## Reference implementation https://n8n.io/workflows/3086 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automate-social-media-posts-from-wordpress-with-ai/ via usecasesforagents.com