This workflow automatically analyzes competitor websites, which inseted in description field and generates a clean, structured AI‑powered Battle Card for every new Zoho CRM deal. It reads the competitor URL from the deal Description, scrapes the site, runs an AI analysis pipeline and updates the deal with pricing, differentiators, pros/cons and a concise sales battle summary — all fully automated.
This workflow removes the manual effort of researching competitors during a sales cycle. Every time a new deal is created, it checks the Description field for a competitor name and website. After validating both, it automatically fetches the competitor webpage and feeds the content into an AI analysis pipeline powered by LangChain.
The AI transforms the messy, unstructured webpage HTML into a readable, structured and ready‑to‑use Battle Card — including pricing overview, differentiating features, advantages, disadvantages and a compact sales battle summary. This data is pushed directly into the Deal Description and emailed to the sales team. No web research, no copy‑pasting, no manual formatting — the AI does everything.
Runs every 5 minutes → pulls newly created deals and last run time.
Retrieves deals sorted by Created_Time.
Filters deals created after the last workflow run.
Ensures the Description has:
Regex identifies and extracts the name + first valid URL in the Description.
HTTP Request downloads the competitor webpage’s HTML.
The AI pipeline (LangChain + your chosen LLM) transforms HTML into a structured JSON output containing:
The script saves the formatted AI Battle Card directly into the Deal Description.
Gmail node sends a summary email to the sales team.
Edit LangChain prompt to:
Modify the Zoho Update node to store data in:
Update subject, body, recipients, etc.
Modify filters to:
There are many more possible use cases depending on your CRM setup and AI strategy.
| Issue | Possible Cause | Solution |
|---|---|---|
| No Battle Card generated | No URL found in Description | Add valid http/https competitor URL |
| Deal skipped | Time filtering excluded it | Adjust lookback window in code |
| AI output incomplete | HTML unreadable or blocked | Try different competitor URL |
| Zoho update fails | OAuth scope missing | Reconnect Zoho with full CRM access |
| Email not sent | Gmail OAuth expired | Reconnect Gmail |
| AI output wrong format | Prompt mismatched | Update output schema and prompt |
If you need help customizing prompts, enhancing automations or building full‑scale AI workflows, then our n8n automation developers at WeblineIndia can support: