Two scheduled runs per day that deliver a curated sheet of internships plus Gmail drafts for companies with no open role — without opening 20 tabs by hand.
This system turns a twice-daily schedule into a curated source of truth for TypeScript Node internships. It runs at 11 AM and 5 PM IST, researches YC, Internshala, AshbyHQ and direct startup pages through Tavily with strict rules on company size, intern title, location and freshness, validates the output through a structured JSON schema, blocks familiar large firms via code, splits jobs and reach-out targets into two lanes, and writes clean jobs to Google Sheets while building bespoke cold emails as Gmail drafts with resume attached. Nothing is auto-sent.
It is built with n8n Schedule, GPT-5.6 Luna at 16k max tokens and temperature 0.1, Tavily Search Tool advanced depth with up to 25 iterations, a Structured Output parser for schema safety, Code nodes for flattening, blocking and mapping, and Gmail plus Google Sheets for human output. One n8n workflow handles the full flow with 18 nodes.
| Tool | Role |
|---|---|
| n8n Schedule Trigger | Fires at 11 AM and 5 PM IST daily with interval triggerAtHour 11 and 17 |
| Internship Research Agent — @n8n/n8n-nodes-langchain.agent | Holds absolute rules: block 200+ employee or $100M+ funded firms, require intern title, max 14 days old, Bangalore or remote, direct job pages only. Runs 5 priority queries across YC W26/S26, Node TS Bangalore, Internshala, AshbyHQ, hiring backend intern |
| GPT-5.6 Luna — lmChatOpenAi | Language model with maxTokens 16384, temperature 0.1, timeout 180s, maxIterations 25. Credentials OpenAI J1XsY3EChVaVis9t |
| Tavily Search Tool — tavilyTool | Live web search via Tavily per priority query. General topic, advanced depth, max_results 10, time_range month, include_answer basic. Called multiple times per source in priority order |
| Structured Output — outputParserStructured | Forces JSON shape with openInternships {company, role, location, link, description, postedDate} and reachOutTargets {company, description, whyFit, howToReachOut}. Fixture jsonSchemaExample enforces parse |
| Flatten & Tag — Code runOnceForAllItems | Blocks Set of ~80 familiar large firms plus Indian unicorns, normalizes company, role, link, postedDate, tags _type job or prospect. Line truncated to 2000 chars covers Tesla, Google, Flipkart, Swiggy etc |
| Google Sheets — Jobs and Cold Emails | Appends to 15xbN4RWsGluOKwchcXsf084FHIcmOTD9pVxdzbWplbs. Jobs sheet maps url, company, role, location, source, status new, filledAt, submittedAt, notes. Cold Emails maps company, whyFit, howToReach, contact, status new, draft, sentAt, repliedAt, url |
| Gmail Draft + Google Drive Download | HTTP Request Downloads resume from Drive id 198jZyZxCXVovIeS3Z7V4ueA-WJN3h6ic as binary, then Gmail draft creates subject plus body with resume attached. No auto-send |
| n8n Code + HTTP Request | Build Draft Prompt crafts personalized 150-word brief with candidate profile and portfolio links, Generate Draft calls opencode.ai chat completions, Parse Draft Result extracts subject and body via JSON regex with fallback |
graph LR
A[Schedule<br/>11AM + 5PM IST<br/>df2a4a1a] --> B[Internship Research Agent<br/>Strict prompt<br/>5 priority queries]
B --> C[GPT-5.6 Luna<br/>16k tokens<br/>temp 0.1<br/>timeout 180s]
B --> D[Tavily Search Tool<br/>advanced<br/>10 results<br/>month range]
B --> E[Structured Output<br/>openInternships<br/>reachOutTargets]
E --> F[Flatten & Tag<br/>Block 80 firms<br/>normalize]
F --> G{Route<br/>Switch<br/>_type}
G -->|job| H[Map to Jobs Columns<br/>company role<br/>location notes]
H --> I[Write Jobs Sheet<br/>15xbN4RW.../Jobs<br/>append]
G -->|prospect| J[Build Draft Prompt<br/>Inject profile<br/>portfolio GitHub<br/>150 words]
J --> K[Generate Draft<br/>HTTP POST<br/>opencode.ai<br/>temp 0.7]
K --> L[Parse Draft Result<br/>Extract subject body<br/>fallback if parse fail]
L --> M[Map to Cold Emails<br/>whyFit howToReach<br/>draft status new]
M --> N[Write Cold Emails Sheet<br/>15xbN4RW.../Cold Emails<br/>append]
N --> O[Download Resume<br/>Drive 198jZyZxC...<br/>binary]
O --> P[Create Gmail Draft<br/>subject + body<br/>resume attach<br/>no auto-send]
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 F fill:#111111,stroke:#111111,color:#ffffff
style H fill:#111111,stroke:#111111,color:#ffffff
style I fill:#111111,stroke:#111111,color:#ffffff
style J fill:#111111,stroke:#111111,color:#ffffff
style K fill:#111111,stroke:#111111,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 O fill:#111111,stroke:#111111,color:#ffffff
style P fill:#111111,stroke:#111111,color:#ffffff

Find only fresh and relevant internships without searching by hand, while excluding familiar large firms and board listing pages that waste time.
| Step | Node | What it does |
|---|---|---|
| 1 | 11AM + 5PM IST — scheduleTrigger | Rule interval with triggerAtHour 11 and 17. Version 1.3 position 0,-192. Reliable twice daily run with no manual start |
| 2 | Internship Research Agent — agent | Text prompt Run a full internship search now, following your ROLE/GOAL/SOURCES/OUTPUT FORMAT/CONSTRAINTS instructions exactly. Search every source in priority order, call Tavily multiple times, then return only final JSON. System message defines candidate: TypeScript Node Express Next PostgreSQL Prisma Mongo Redis, location Bangalore or remote, no experience. Absolute rules block Tesla, SpaceX etc and any 200+ employees. Requires intern title, max 14 days, links must resolve, no 404, skip Indeed search pages and /jobs /careers /open-positions. Search strategy ordered: YC W26 intern backend, Node TS Bangalore startup, site:internshala.com Node TS, site:ashbyhq.com software intern, hiring backend intern TS |
| 3 | GPT-5.6 Luna — lmChatOpenAi | Model gpt-5.6-luna, responsesApiEnabled false, maxTokens 16384, temperature 0.1, timeout 180000. Credentials OpenAI account J1XsY3EChVaVis9t. Position 232,40 linked via ai_languageModel |
| 4 | Tavily Search Tool — tavilyTool | Description Search the live web via Tavily... Follow priority order. Query fromAI query, topic general, advanced, max_results 10, time_range month, include_answer basic. Called once or more per source up to maxIterations 25 |
| 5 | Structured Output — outputParserStructured | Schema example with openInternships [company, role, location, link, description, postedDate] and reachOutTargets [company, description, whyFit, howToReachOut]. Forces downstream nodes to receive valid JSON |
Raw JSON with openInternships and reachOutTargets. Example aims for 10 to 15 internships plus 5 to 10 reach-out targets per run, bounded by priority queries.
{
"openInternships": [
{
"company": "Buildly",
"role": "Backend Engineering Intern",
"location": "Bangalore",
"link": "https://buildly.app/careers/backend-intern",
"description": "Buildly is seed-stage infra tooling for Node.js teams",
"postedDate": "2026-08-10"
}
],
"reachOutTargets": [
{
"company": "ForgeStack",
"description": "Fintech backend infra on Node.js and TypeScript, 22 employees",
"whyFit": "Node/TS + PostgreSQL stack matches candidate closely",
"howToReachOut": "Careers page: https://forgestack.io/careers. Founder on X: @forgefounder"
}
]
}