Generate DraftKings DFS lineups with GPT-4o, Google Sheets, email and Slack alerts

Go to Workflow
4 views
Built by Hyrum Hurst Hyrum Hurst
Created on June 05, 2026

Description

Who’s it For
This template is perfect for daily fantasy sports (DFS) enthusiasts, sports analysts, and content creators who want automated, AI-optimized lineups for DraftKings contests. Works for multiple sports including NFL, NBA, MLB, NHL, and esports like LOL and CS.

How It Works / What It Does
The workflow uses the DraftKings API Actor to scrape real-time contest and player data. It calculates player value based on projected points and salary, and then uses AI to generate optimized DFS lineups. Generated lineups are logged to Google Sheets, emailed to subscribers with AI-personalized messaging, and internal teams are notified via Slack. Filters allow skipping contests that are too expensive, almost full, or starting too soon.

How to Set Up
Configure DraftKings API Actor: select sport, maxContests, includePlayerData.
Google Sheets: enter Sheet ID and worksheet for logging lineups.
Email Node: configure SMTP or SendGrid for sending subscriber emails.
Slack Node: enter channel for team notifications.
Adjust workflow schedule for daily or pre-game runs.
Optional: modify contest filters (entry fee, prize pool, start time).

Requirements
DraftKings API Actor access via Apify
n8n instance with nodes: DraftKings API Actor, Set, Function, IF, OpenAI, SplitInBatches, Google Sheets, Email, Slack
Google Sheets account
Slack workspace
SMTP/Email service for notifications

How to Customize the Workflow
Adjust sports, contest limits, or player data inclusion.
Change AI prompts in the OpenAI node to adjust lineup strategy.
Modify email templates for personalized messaging.
Add historical tracking logic for performance analysis.
Multi-sport branching can be expanded for other leagues.

Why This Template is Valuable
Saves DFS players hours of research and lineup building.
Provides actionable AI-optimized lineups daily.
Tracks contests and player trends over time.
Integrates notifications to both internal team and subscribers.
Branded for QuarterSmart by Hyrum Hurst: reliable, plug-and-play, high-value DFS automation.

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Send Email
n8n-nodes-base.emailSend
Slack
n8n-nodes-base.slack