Update and roll back WordPress plugins and themes via SSH with Groq analysis
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Groq Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Configuration (Edit Fields (Set)): sets 10 fields: siteUrl, wpPath, wpCli…
- Prepare (DB backup, debug log, update list) (SSH): uses SSH
- Parse preparation (Code): runs custom JavaScript code
- Preparation result (Switch): routes items into 2 branches
- Update list (Code): runs custom JavaScript code
- Mail: No updates (Send Email): sends an email over SMTP
- Mail: Aborted (Send Email): sends an email over SMTP
- Process updates one by one (Loop Over Items (Split in Batches)): loops over the items in batches
- Finish round (Code): runs custom JavaScript code
- Still open? (If): checks a condition and branches into true / false
…plus 18 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - SSH
n8n-nodes-base.ssh - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Send Email
n8n-nodes-base.emailSend - HTTP Request
n8n-nodes-base.httpRequest - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow runs on a schedule or manually to update WordPress plugins and themes over SSH using WP-CLI, verifies site health with HTTP checks and log inspection, automatically rolls back breaking updates, and emails an HTML report with…