Morning Signal is a GTM intelligence example, but the useful part is the agent pattern:
approved context -> live search -> structured extraction -> evidence packet -> grounded synthesis
Use this guide when turning the starter kit into another source-grounded agent.
Start with the context a human should approve before retrieval begins.
For GTM intelligence, that context is:
- company profile
- products
- competitors
- ICP
- target markets
For other domains, replace those fields with the decisions that shape search quality.
Examples:
- Recruiting: role families, target companies, locations, seniority, hiring signals
- Finance: tickers, filing types, watchlist companies, risk categories
- Product: competitors, features, docs areas, release surfaces
- Market research: category, geography, customer segments, trusted sources
Search lanes are the bridge between approved context and live web evidence.
In lib/agent.ts, adapt planQueries() so every query has:
- a business purpose
- a freshness expectation
- a source type
- a downstream section in the final report
Good lanes are narrow enough to retrieve useful evidence, but broad enough to surface new signals.
Avoid asking the LLM to "research this" directly. Keep the stages separate:
- Plan queries.
- Search the web.
- Extract selected URLs.
- Assemble evidence.
- Synthesize from the evidence packet.
That separation makes the agent easier to debug, evaluate, and trust.
Update lib/types.ts for your new report structure, then update:
lib/llm.tsfor synthesis instructionsapp/page.tsxfor rendering- any validation logic that checks sources or sections
Useful output sections usually answer:
- What changed?
- Why does it matter?
- What evidence supports it?
- What action should the user take?
Every important claim should keep a path back to source evidence.
At minimum, preserve:
- title
- URL
- publisher or hostname
- date if available
- search snippet
- extracted content
Do not add citations as decoration after synthesis. Pass sources through the data model from retrieval to final output.
Search lanes:
- hiring pages for target companies
- recent funding announcements
- layoffs or team expansion news
- role-specific job postings
- executive announcements
Output:
- top hiring signal
- companies to contact
- role demand trend
- candidate sourcing angle
- source-backed next steps
Search lanes:
- pricing pages
- docs pages
- changelogs
- help center billing pages
- comparison pages
Output:
- pricing change detected
- packaging implication
- affected customer segment
- sales response
- source links
Search lanes:
- docs sitemap
- changelog
- release notes
- API reference pages
- GitHub releases
Output:
- changed surface
- likely product implication
- developer-facing message
- affected competitors or partners
- source links