### AI Gmail Agent Workflow Configuration (JSON) Source: https://context7.com/lucaswalter/n8n-ai-automations/llms.txt Defines the configuration for an AI-powered Gmail agent workflow. It includes details on the workflow file, trigger, main components, AI models used, and example usage for both knowledge base creation and email processing. ```json { "workflow": "ai_gmail_agent.json", "trigger": "Gmail - Poll for new emails every minute", "main_components": [ "Form trigger to collect website URL and Google Drive folder", "Firecrawl integration to map and scrape entire website", "Gemini 2.5 Pro to build structured knowledge base", "Google Docs creation for knowledge base storage", "Gmail trigger for incoming emails", "AI agent with memory and thinking capabilities", "Automated email responses via Gmail API", "Activity logging to Google Sheets" ], "ai_models": ["gemini-2.5-pro"], "example_usage": { "knowledge_base_creation": { "input": { "Website": "https://www.bythebladekc.com/", "Google Drive Folder Id": "1M5g9mX8wRWlT45Cd-OfIq9eKgjreZO-7" }, "process": [ "1. Firecrawl maps all URLs on the website", "2. Batch scrapes all pages to markdown", "3. AI synthesizes content into comprehensive knowledge base", "4. Knowledge base uploaded to Google Drive as formatted document" ] }, "email_processing": { "incoming_email": { "from": "customer@email.com", "subject": "Question about lawn care services", "body": "Do you provide weekly mowing in the 64111 zip code?" }, "agent_decision_process": [ "1. Agent uses 'think' tool to analyze email", "2. Loads knowledge base from Google Docs", "3. Evaluates if response is appropriate", "4. Drafts response using knowledge base info", "5. Sends reply via Gmail API", "6. Logs decision and action to Google Sheets" ], "example_response": "Thank you for your inquiry. Yes, we provide weekly mowing services in the 64111 area. Please contact us at [phone] for a free quote.", "log_entry": { "Timestamp": "2025-08-26T15:30:00Z", "Sender": "customer@email.com", "Subject": "Question about lawn care services", "Decision": "RESPOND", "Action Taken": "REPLIED - Confirmed services and quote process" } } } } ``` -------------------------------- ### AI Scraping Pipeline Configuration (JSON) Source: https://context7.com/lucaswalter/n8n-ai-automations/llms.txt Configuration for the AI Scraping Pipeline, detailing workflow, trigger schedules for RSS feeds, data flow steps, scraping settings, example execution, error handling, and use cases. This JSON file defines the automation's structure and behavior. ```json { "workflow": "ai_scraping_pipeline.json", "architecture": "Multi-source RSS aggregation with parallel scraping", "schedule_triggers": [ { "name": "google_news_trigger", "interval": "Every 3 hours", "feed": "https://rss.app/feeds/v1.1/AkOariu1C7YyUUMv.json" }, { "name": "blog_open_ai_trigger", "interval": "Every 4 hours", "feed": "https://rss.app/feeds/v1.1/xNVg2hbY14Z7Gpva.json" }, { "name": "schedule_trigger", "interval": "Every 3 hours", "feed": "https://rss.app/feeds/v1.1/sgHcE2ehHQMTWhrL.json" } ], "data_flow": [ "1. Schedule trigger activates", "2. HTTP Request fetches RSS feed JSON", "3. Split Out node separates individual items", "4. Firecrawl scrapes each URL to markdown", "5. Convert to File creates .md files", "6. Google Drive uploads to 'News Scraper Automation' folder" ], "scraping_configuration": { "api": "Firecrawl v1", "formats": ["json", "markdown", "rawHtml", "links"], "excludeTags": ["iframe", "nav", "header", "footer"], "onlyMainContent": true, "extraction": { "prompt": "Extract exact main text as markdown, exclude banners/ads/navigation", "schema": "string (verbatim markdown content)" } }, "example_execution": { "trigger": "Google News feed at 9:00 AM", "feed_response": { "items": [ { "title": "OpenAI Releases GPT-5", "url": "https://techcrunch.com/2025/11/05/openai-gpt5", "published": "2025-11-05T08:00:00Z" }, { "title": "Google Launches New AI Model", "url": "https://venturebeat.com/2025/11/05/google-ai", "published": "2025-11-05T07:30:00Z" } ] }, "processing": [ { "url": "https://techcrunch.com/2025/11/05/openai-gpt5", "scrape_result": { "markdown": "# OpenAI Releases GPT-5\n\nOpenAI announced...", "success": true }, "file_created": "news_story_1.md", "uploaded_to": "Google Drive: News Scraper Automation/news_story_1.md" }, { "url": "https://venturebeat.com/2025/11/05/google-ai", "scrape_result": { "markdown": "# Google Launches New AI Model...", "success": true }, "file_created": "news_story_2.md", "uploaded_to": "Google Drive: News Scraper Automation/news_story_2.md" } ], "output_location": "Google Drive folder: 13_W8MvFeaIdGNdkX8lSNV-zVFraoG6j6" }, "error_handling": { "scrape_url": "continueRegularOutput - skips failed URLs", "create_markdown_file": "continueRegularOutput - continues pipeline", "upload_markdown": "continueRegularOutput - logs error, continues" }, "use_cases": [ "AI news aggregation for newsletter generation", "Content monitoring for competitive intelligence", "Research material collection for AI agents", "Training data preparation for ML models" ] } ``` -------------------------------- ### Firecrawl URL Scraper Configuration (JSON) Source: https://context7.com/lucaswalter/n8n-ai-automations/llms.txt This JSON configuration defines a reusable n8n workflow for scraping content from URLs using Firecrawl. It specifies the API endpoint, desired formats, exclusion tags, retry policy, and a custom JSON schema for extracting 'content' and 'main_content_image_urls'. The example output shows the expected structured data. ```json { "workflow": "firecrawl_scrape_url.json", "trigger": "Execute Workflow (called by other workflows)", "input_parameters": { "url": "https://techcrunch.com/2025/04/22/ex-meta-engineer-raises-14m-for-lace/" }, "api_configuration": { "endpoint": "https://api.firecrawl.dev/v1/scrape", "method": "POST", "formats": ["json", "markdown", "rawHtml", "links"], "excludeTags": ["iframe", "nav", "header", "footer"], "onlyMainContent": true, "retry_policy": { "retryOnFail": true, "maxTries": 3, "waitBetweenTries": 5000 } }, "json_extraction_schema": { "type": "object", "properties": { "content": { "type": "string", "description": "Exact verbatim main text in markdown format" }, "main_content_image_urls": { "type": "array", "items": { "type": "string", "description": "Image URL at least 600px wide from main content" } } }, "extraction_prompt": "Identify main content (article/newsletter body). Provide exact text verbatim in markdown. Extract image URLs that are part of main content (exclude logos, icons, avatars). Images must be at least 600px width." }, "example_output": { "data": { "content": "# Ex-Meta Engineer Raises $14M for Lace\n\n## AI-Powered Revenue Generation\n\nFormer Meta engineer launches startup with significant funding...\n\n### Key Features\n\n- AI-driven sales automation\n- Revenue optimization tools\n- Enterprise integration", "main_content_image_urls": [ "https://techcrunch.com/wp-content/uploads/2025/04/lace-founders.jpg", "https://techcrunch.com/wp-content/uploads/2025/04/product-screenshot.png" ], "markdown": "[Full markdown content]", "rawHtml": "[Full HTML]", "links": ["array of URLs found on page"] }, "success": true }, "usage_in_workflows": [ "AI scraping pipeline for news aggregation", "Newsletter content extraction", "Content repurposing factory input", "Knowledge base building for AI agents" ] } ``` -------------------------------- ### Generate Image Tool API Source: https://context7.com/lucaswalter/n8n-ai-automations/llms.txt This tool generates brand-aligned images based on provided context and title, adhering to specific digital watercolor style guidelines. It leverages OpenAI's image generation API and posts the result to Slack. ```APIDOC ## Generate Image Tool ### Description Specialized workflow tool that creates brand-aligned images using OpenAI's image generation API with detailed style guidelines. The tool accepts an image context/prompt and title, applies The Recap AI's visual brand guidelines for newsletter imagery, generates an image via OpenAI's gpt-image-1 model, and posts the result to a Slack channel for team review. The brand guidelines enforce a distinctive digital watercolor aesthetic with specific color palettes, techniques, and quality controls to ensure visual consistency. ### Method POST (Implied by workflow execution) ### Endpoint `https://api.openai.com/v1/images/generations` (Used internally by the tool) ### Parameters #### Input Parameters - **imageContext** (string) - Required - Description or content to visualize. - **imageTitle** (string) - Required - Short title for the image (under 5 words). #### Brand Guidelines (Applied internally) - **medium**: Digital watercolor emulating traditional cold-press paper - **paper_texture**: Visible tooth/grain showing through transparent washes - **brushwork**: Mix of wet-on-wet soft blends and wet-on-dry controlled edges - **edges**: 70% soft/lost, 30% crisp to guide eye - **value_structure**: Foundation: Strong midtone base; Darks: Reserved for accent lines and shadows; Highlights: Largely from unpainted paper - **color_palette**: Warm (Transparent red oxide, burnt sienna, quinacridone coral), Cool (Ultramarine, indanthrone mixes with neutral tint), Accents (Strategic pops of high-chroma red), Technique (Gentle temperature shifts within planes) - **texture**: Tiny blooms, speckling, lifting marks, color separation - **composition**: High-detail central focus fading to loose vignette edges - **avoid**: List of visual elements to avoid (e.g., Airbrush plastic skin, Hard comic inking outlines, etc.) ### Request Example ```json { "imageTitle": "TSMC Trillion Dollar AI Bet", "imageContext": "An image symbolizing the massive financial success of TSMC, a chip manufacturer, reaching a $1 trillion valuation driven by the AI boom. The image should feature a silicon wafer or computer chip glowing brightly, with stock market charts and dollar signs rising in the background." } ``` ### Response #### Success Response (200) - **file_format** (string) - The format of the generated image (e.g., PNG). - **message** (string) - A confirmation message including the image title. - **slack_channel** (string) - The Slack channel where the image was posted. - **visual_style** (string) - A description of the applied visual style. #### Response Example ```json { "slack_channel": "Marketing Agent workspace", "file_format": "PNG (1536x1024)", "message": "I've generated an image for you: `TSMC Trillion Dollar AI Bet`", "visual_style": "Digital watercolor with muted neutrals and red accents" } ``` ### Processing Steps 1. Load brand guidelines. 2. Construct prompt combining context and guidelines. 3. Call OpenAI image generation API (`gpt-image-1`, `1536x1024`, `b64_json`). 4. Receive base64-encoded PNG. 5. Convert base64 to binary PNG file. 6. Upload to Slack channel. 7. Post a confirmation message in Slack. ``` -------------------------------- ### Generate Image Tool Workflow Configuration Source: https://context7.com/lucaswalter/n8n-ai-automations/llms.txt This JSON configuration defines a specialized n8n workflow for generating images. It specifies the trigger, input parameters, detailed brand guidelines for image styling, OpenAI API configuration, and the steps involved in processing and outputting the generated image to a Slack channel. ```json { "workflow": "generate_image_tool.json", "trigger": "Execute Workflow (called by Marketing Agent)", "input_parameters": { "imageContext": "Description or content to visualize", "imageTitle": "Short title for the image (under 5 words)" }, "brand_guidelines": { "medium": "Digital watercolor emulating traditional cold-press paper", "paper_texture": "Visible tooth/grain showing through transparent washes", "brushwork": "Mix of wet-on-wet soft blends and wet-on-dry controlled edges", "edges": "70% soft/lost, 30% crisp to guide eye", "value_structure": { "foundation": "Strong midtone base", "darks": "Reserved for accent lines and shadows", "highlights": "Largely from unpainted paper" }, "color_palette": { "warm": "Transparent red oxide, burnt sienna, quinacridone coral", "cool": "Ultramarine, indanthrone mixes with neutral tint", "accents": "Strategic pops of high-chroma red", "technique": "Gentle temperature shifts within planes" }, "texture": "Tiny blooms, speckling, lifting marks, color separation", "composition": "High-detail central focus fading to loose vignette edges", "avoid": [ "Airbrush plastic skin", "Hard comic inking outlines", "Flat vector color fills", "Oversaturated neon palette", "Sharp photographic textures", "Text on generated images" ] }, "api_configuration": { "endpoint": "https://api.openai.com/v1/images/generations", "model": "gpt-image-1", "size": "1536x1024", "response_format": "b64_json" }, "example_generation": { "input": { "imageTitle": "TSMC Trillion Dollar AI Bet", "imageContext": "An image symbolizing the massive financial success of TSMC, a chip manufacturer, reaching a $1 trillion valuation driven by the AI boom. The image should feature a silicon wafer or computer chip glowing brightly, with stock market charts and dollar signs rising in the background." }, "prompt_construction": [ "User context: [imageContext]", "Brand guidelines: [watercolor style specifications]", "Final prompt: Combines context with technical style requirements" ], "processing_steps": [ "1. Load brand guidelines from Set node", "2. Construct prompt combining context + guidelines", "3. Call OpenAI image generation API", "4. Receive base64-encoded PNG", "5. Convert base64 to binary PNG file", "6. Upload to Slack channel C08KC39K8DR", "7. Post message: '*I've generated an image for you:* `TSMC Trillion Dollar AI Bet`'" ], "output": { "slack_channel": "Marketing Agent workspace", "file_format": "PNG (1536x1024)", "message": "I've generated an image for you: `TSMC Trillion Dollar AI Bet`", "visual_style": "Digital watercolor with muted neutrals and red accents" } }, "style_prompt_components": [ "watercolor illustration on cold-press paper texture", "layered transparent glazes", "controlled wet-on-dry details over loose wet-in-wet background washes", "subtle pigment granulation and backruns", "high-chroma accent reds against muted blues/earth neutrals", "unpainted paper highlights", "soft-to-hard edge transitions guiding focus", "semi-opaque gouache touches for specular hits", "slight drybrush texture in focal areas", "illustrative realism center fading to loose vignette edges" ], "integration_usage": [ "Called by Marketing Team Agent during content creation", "Newsletter header image generation", "Social media post graphics", "Blog article illustrations" ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.