Iteration with improved prompts and stricter validation — same flow as v1 with tighter facts, G2 rating tracking, and price-change math. Current production version using Google Sheets.
This is the production iteration of the Competitor Battlecard Agent. It retains the form intake and monthly refresh from v1 and adds validation to prevent empty writes. G2 rating is tracked as a metric, hiring signal is used as a proxy for product direction, and an overlap flag indicates direct competition with an AI automation platform. The refresh diff computes pricing change percent and G2 movement so notifications report old versus new values.
Built with DeepSeek via OpenAI gateway, Tavily Search across six angles, Google Sheets Competitor Battlecards at 1AXFA9dnC13k_MXc-CvUJX8cwlzAfwAfnmTc_b824AdI for 15 columns, and Gmail for change-only alerts. The workflow has 22 nodes. Storage moved from Data Table in v1 to Sheets for direct stakeholder access.
| Tool | Role |
|---|---|
| DeepSeek via OpenAI | Agent model for both research agents, 15 iterations, six-angle search |
| Tavily Search | Six angles: pricing, changelog, reviews, G2 rating, hiring, alternative. 5 results each |
| Google Sheets | Store at 1AXFA9dn.../Competitor Battlecards, 15 columns, matched on competitorName |
| Gmail | Change-only notification with diff summary |
| n8n Code | Format, validate, and compare. Computes percent and G2 delta |
| n8n Form + If | Form intake and validation gate for empty output |
| n8n Schedule | Monthly trigger that loads rows for batch refresh |
graph LR
A["Form Trigger<br/>Research a Competitor<br/>Name + Website URL"] --> B["Normalize Input<br/>competitorName<br/>websiteUrl"]
B --> C["Competitor Research Agent<br/>DeepSeek 6 angles<br/>pricing G2 hiring"]
C --> D["Tavily Search Tool<br/>5 results per angle"]
C --> E["Battlecard Schema<br/>positioning pricing g2Rating<br/>strengths weaknesses<br/>recentMoves jobListings<br/>overlapFlag talkTrack"]
E --> F{"Validate Research<br/>positioning notEmpty?"}
F -->|yes| G["Format New Row<br/>join with pipe<br/>pricingChangePct 0%<br/>lastChecked now"]
G --> H["Save New Battlecard<br/>Google Sheets append"]
F -->|no| I["Agent Failed<br/>no valid output"]
J["Schedule<br/>Monthly at 9 AM"] --> K["Get Competitor Rows<br/>Google Sheets get"]
K --> L["Refresh Research Agent<br/>DeepSeek 6 angles<br/>previous card context"]
L --> D
L --> E
E --> M{"Validate Refresh Output<br/>positioning notEmpty?"}
M -->|yes| N["Compare Changes + Price Diff<br/>dollar price extraction<br/>G2 core per 5<br/>pricingChangePct<br/>g2RatingChange"]
N --> O{"Has Changes?<br/>changed == true"}
O -->|yes| P["Update Battlecard<br/>Sheets update"]
P --> Q["Notify Change<br/>Gmail diff summary"]
Q --> K
O -->|no| K
M -->|no| K
K --> R["Refresh Cycle Complete"]
style A fill:#111111,stroke:#111111,color:#ffffff
style B fill:#111111,stroke:#111111,color:#ffffff
style C fill:#111111,stroke:#111111,color:#ffffff
style D fill:#111111,stroke:#111111,color:#ffffff
style E fill:#111111,stroke:#111111,color:#ffffff
style G fill:#111111,stroke:#111111,color:#ffffff
style H fill:#111111,stroke:#111111,color:#ffffff
style I fill:#333333,stroke:#333333,color:#ffffff
style J fill:#333333,stroke:#333333,color:#ffffff
style K fill:#333333,stroke:#333333,color:#ffffff
style L fill:#111111,stroke:#111111,color:#ffffff
style M fill:#111111,stroke:#111111,color:#ffffff
style N fill:#111111,stroke:#111111,color:#ffffff
style P fill:#111111,stroke:#111111,color:#ffffff
style Q fill:#111111,stroke:#111111,color:#ffffff
style R fill:#333333,stroke:#333333,color:#ffffff

Reduce pricing errors and add two signals used on calls: G2 movement and hiring velocity.
| Area | v1 | v2 | Why |
|---|---|---|---|
| Pricing | Tries to infer | Exact numbers or not found | Avoids quoting incorrect plans |
| G2 Rating | Not tracked | g2Rating and change tracking | Tracks perception change |
| Recent Moves | Single list | recentMoves plus jobListings | Jobs signal product bets |
| Weaknesses | Reviews broadly | G2 complaints only | More accurate objections |
| Overlap flag | Not present | YES/NO plus reason | Indicates direct competition |
| Store | Data Table 9 columns | Sheets 15 columns | Easier sharing |
| Validation | None | Checks positioning not empty | Blocks empty writes |
| Refresh diff | Trimmed compare | Plus percent and G2 math | Reports numeric change |
No migration required beyond Sheets sharing. Test two competitors in v2 before switching the active flag, then archive v1.
Provide a simple form and block empty results before they reach Sheets.