diff --git a/workflows/Discover influencers in Shopify customers with influencers.club, GPT-4o and SendGrid-13370/discover_influencers_in_shopify_customers_with_influencers.club_gpt-4o_and_sendgrid.json b/workflows/Discover influencers in Shopify customers with influencers.club, GPT-4o and SendGrid-13370/discover_influencers_in_shopify_customers_with_influencers.club_gpt-4o_and_sendgrid.json new file mode 100644 index 000000000..e872bea3e --- /dev/null +++ b/workflows/Discover influencers in Shopify customers with influencers.club, GPT-4o and SendGrid-13370/discover_influencers_in_shopify_customers_with_influencers.club_gpt-4o_and_sendgrid.json @@ -0,0 +1 @@ +{"id":"B9K2c_19ie1REho3PMSMv","meta":{"instanceId":"85adf2a35c28eb4259098779e620f01802fefc169e5e72d95fa3a1fcdca8b513","templateCredsSetupCompleted":true},"name":"Discover influencers by analyzing Shopify customers and executing tailored outreach","tags":[],"nodes":[{"id":"35f23067-9af0-42b5-96d4-bec4f94b64d2","name":"šŸ“‹ WORKFLOW OVERVIEW","type":"n8n-nodes-base.stickyNote","position":[-1792,1712],"parameters":{"color":7,"width":560,"height":436,"content":"## šŸŽÆ WORKFLOW OVERVIEW\n\n**How it works**\n1. Captures Shopify orders/customers\n2. Enriches emails with social media data\n3. Classifies creators by tier & niche\n4. Sends personalized partnership outreach\n5. Syncs to HubSpot CRM\n6. Alerts team on Slack\n\n**Set up required**\n- Shopify app key (trigger)\n- HubSpot App Token (read + write)\n- influencers.club API key\n- OpenAI API key\n- Slack API key\n- Sendgrid API key"},"typeVersion":1},{"id":"ab4c0168-dd21-451e-9e68-dca1c87888af","name":"Sticky Note - Step 1 Triggers","type":"n8n-nodes-base.stickyNote","position":[-1216,1712],"parameters":{"color":4,"width":684,"height":660,"content":"## šŸ”” STEP 1: TRIGGERS\n\n**Two entry points:**\n\n**A) Shopify Order Trigger**\n- Fires when: New order created\n- Use case: Convert buyers into affiliates\n- Best for: Product purchases\n\n**B) Shopify Customer Trigger**\n- Fires when: New customer account created\n- Use case: Newsletter signups, account creation\n- Best for: Early funnel engagement\n\n**Setup:**\n1. Connect Shopify OAuth2 account\n2. Webhooks auto-register on activation\n3. Test with Shopify test orders\n\n**Why two triggers?**\nCaptures both:\n- Paying customers (higher intent)\n- Free signups (broader reach)"},"typeVersion":1},{"id":"362e4f3a-7532-490e-bb6f-c065548d57b2","name":"Sticky Note - Step 2","type":"n8n-nodes-base.stickyNote","position":[-480,1712],"parameters":{"color":4,"width":460,"height":868,"content":"## šŸ”§ STEP 2: DATA PREPARATION\n\n**Edit Fields / Get Customer Email**\n\n**Purpose:** Extract clean email address from Shopify payload\n\n**Why needed:**\n- Shopify webhooks contain 50+ fields\n- Enrichment API only needs email\n- Simplifies downstream processing\n\n**āš ļø TODO - Replace empty email field with:**\n```javascript\n// For Order trigger:\n{{ $json.customer.email }}\n\n// For Customer trigger:\n{{ $json.email }}\n```\n\n**Best practice:**\nValidate email format before API call to avoid wasted credits"},"typeVersion":1},{"id":"f714f536-78b1-41b7-9da1-6806d16105f7","name":"Sticky Note - Step 5","type":"n8n-nodes-base.stickyNote","position":[1024,1712],"parameters":{"color":5,"width":516,"height":932,"content":"## šŸ·ļø STEP 5: AI CLASSIFICATION\n\n**AI Creator Classification Agent**\n\n**What it does:**\n- Analyzes platform data from enrichment\n- Classifies into tier: nano/micro/mid/macro\n- Detects niche: fashion, beauty, fitness, etc.\n- Calculates value score (0-100)\n- Determines brand fit (1-10)\n\n**Uses GPT-4o-mini ($0.15/1M tokens)**\n- Temperature: 0.3 (consistent results)\n- Structured JSON output\n- 18 predefined niches\n\n**Output schema:**\n```json\n{\n \"classification\": {\n \"tier\": \"micro\",\n \"niche\": \"fashion\",\n \"niche_subcategory\": \"sustainable fashion\",\n \"followers\": 15234,\n \"value_score\": 68,\n \"brand_fit_score\": 8\n }\n}\n"},"typeVersion":1},{"id":"5142600c-dad0-41c4-880a-9de09bef26cf","name":"Sticky Note - Step 6","type":"n8n-nodes-base.stickyNote","position":[1568,1712],"parameters":{"color":5,"width":492,"height":932,"content":"## āœ‰ļø STEP 6: AI OUTREACH GENERATION\n\n**E-Commerce Creator Outreach Agent**\n\n**What it does:**\n- Generates personalized email subject + body\n- Matches program to tier (affiliate/ambassador/UGC/partnership)\n- Selects offer type (discount/commission/paid collab)\n- Acknowledges they're already a customer\n\n**Uses GPT-4o ($2.50/1M tokens)**\n- Temperature: 0.8 (creative variation)\n- Structured JSON output\n- 50-150 word messages based on tier\n\n**Personalization layers:**\n1. First name + customer acknowledgment\n2. Tier-appropriate language\n3. Niche-specific terminology\n4. Platform mention (Instagram/TikTok/etc.)\n5. Value proposition matching follower count\n\n**Example outputs:**\n- Nano: \"Love [Brand]? Join our creator community šŸŽ\"\n- Macro: \"Exclusive partnership - 457K followers ⭐\"\n\n"},"typeVersion":1},{"id":"8fff0f83-b81c-4363-94e8-11ea8ff98239","name":"Sticky Note - Step 7","type":"n8n-nodes-base.stickyNote","position":[2320,1616],"parameters":{"color":3,"width":596,"height":708,"content":"## šŸ’¾ STEP 7: CRM SYNC\n\n**HubSpot Contact Update**\n\n**What it does:**\n- Creates or updates contact in HubSpot\n- Uses email as unique identifier\n- Currently syncs: email only\n\n**āš™ļø Recommended properties to add:**\n```javascript\nadditionalFields: {\n creator_tier: $json.classification.tier,\n creator_niche: $json.classification.niche,\n creator_followers: $json.classification.followers,\n creator_platform: $json.classification.primary_platform,\n creator_value_score: $json.classification.value_score,\n partnership_program: $json.outreach.program,\n outreach_priority: $json.outreach.priority\n}\n```\n\n**Why sync to CRM:**\n- Track creator lifecycle (prospect → partner → advocate)\n- Segment for future campaigns\n- Sales team visibility\n- Attribution tracking\n\n**Setup:**\n1. Create custom properties in HubSpot\n2. Map fields in node\n3. Set up automated lists/workflows"},"typeVersion":1},{"id":"ca93cd83-44aa-4d81-b4e6-63b729928532","name":"Sticky Note - Step 8","type":"n8n-nodes-base.stickyNote","position":[2320,2384],"parameters":{"color":3,"width":420,"height":628,"content":"## šŸ“§ STEP 8: EMAIL DELIVERY\n\n**SendGrid Email**\n\n**What it does:**\n- Sends AI-generated outreach email\n- From: partnerships@yourdomain.com\n- Subject & body from Outreach Agent\n\n**Current config:**\n- To: Creator's email\n- Content: Personalized by tier"},"typeVersion":1},{"id":"76dfd2b5-f11a-4b56-baab-b709f986f28d","name":"Sticky Note - Step 9","type":"n8n-nodes-base.stickyNote","position":[2320,3088],"parameters":{"color":3,"width":420,"height":724,"content":"## šŸ”” STEP 9: SLACK NOTIFICATIONS\n\n**High-Value Creator Alerts**\n\n**What it does:**\n- Notifies #social-listening channel\n- Alerts for high-priority creators\n- Shares key metrics at a glance\n\n**Message format:**\n```\n🚨 High-Value Creator Signed Up!\n\nName: Sarah Johnson\nEmail: sarah@example.com\nTier: Mid-Tier (87K followers)\nPlatform: Instagram\nPriority: Medium\nProgram: UGC Creator\n```\n\n**Why Slack alerts:**\n- Real-time team visibility\n- Quick manual review option\n- Celebrate wins\n- Monitor workflow health\n\n**Optional enhancements:**\n- Add profile link\n- Include sample content\n- Tag team members\n- Thread enrichment data"},"typeVersion":1},{"id":"0b0ece15-2eeb-4af5-a41a-b32392a1e0ca","name":"Sticky Note - Step ","type":"n8n-nodes-base.stickyNote","position":[528,1712],"parameters":{"color":4,"width":460,"height":804,"content":"## āœ… STEP 4: CREATOR VALIDATION\n\n**Is Creator? (IF Node)**\n\n**Logic:**\n```javascript\nif (result.is_creator === true) {\n // Route to classification\n} else {\n // Skip to failed enrichment handler\n}\n```\n\n**Why this matters:**\n- 85-90% of customers are NOT creators\n- Avoids wasting AI credits on non-creators\n- Keeps workflow fast and cost-efficient\n\n**Possible outcomes:**\nāœ… **TRUE path:** Proceed to AI classification\nāŒ **FALSE path:** Log as non-creator, end workflow\n\n**Optimization tip:**\nAdd minimum follower threshold here:\n```javascript\nresult.is_creator === true \n&& result.max_followers >= 1000\n```\nTo filter out very small accounts"},"typeVersion":1},{"id":"e48fe51b-e9a0-474f-9d02-3cf81197bfd8","name":"OpenAI Chat Model1","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[1632,2720],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o"},"options":{"temperature":0.8},"builtInTools":{}},"credentials":{"openAiApi":{"id":"credential-id","name":"N8N open AI"}},"typeVersion":1.3},{"id":"49f8968f-df23-4b65-8c57-d4703084d44e","name":"Structured Output Parser1","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[1920,2720],"parameters":{"schemaType":"manual","inputSchema":"{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"title\": \"EcommerceCreatorOutreach\",\n \"type\": \"object\",\n \"required\": [\"outreach\"],\n \"properties\": {\n \"outreach\": {\n \"type\": \"object\",\n \"required\": [\"subject\", \"message\", \"priority\", \"program\", \"offer_type\", \"talking_points\"],\n \"properties\": {\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"Personalized email subject line\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"Full personalized email body\"\n },\n \"priority\": {\n \"type\": \"string\",\n \"enum\": [\"normal\", \"medium\", \"high\"],\n \"description\": \"Outreach priority level\"\n },\n \"program\": {\n \"type\": \"string\",\n \"enum\": [\"affiliate\", \"ambassador\", \"ugc_creator\", \"brand_partnership\"],\n \"description\": \"Recommended creator program type\"\n },\n \"offer_type\": {\n \"type\": \"string\",\n \"enum\": [\"discount_code\", \"commission\", \"free_product\", \"paid_collab\", \"revenue_share\"],\n \"description\": \"Primary incentive offer\"\n },\n \"talking_points\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"},\n \"description\": \"Key personalization elements used\"\n }\n }\n }\n }\n}\n"},"typeVersion":1.2},{"id":"dfbd51d5-c6f7-4e8d-acdb-2e6628f573cb","name":"OpenAI Classifier Model1","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[1088,2720],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o-mini"},"options":{"temperature":0.3},"builtInTools":{}},"credentials":{"openAiApi":{"id":"credential-id","name":"N8N open AI"}},"typeVersion":1.3},{"id":"27869e69-0b7d-490b-9cb7-35cc4c555f27","name":"Classification Output Parser1","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[1456,2720],"parameters":{"schemaType":"manual","inputSchema":"{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"title\": \"CreatorClassification\",\n \"type\": \"object\",\n \"required\": [\"classification\"],\n \"properties\": {\n \"classification\": {\n \"type\": \"object\",\n \"required\": [\"primary_platform\", \"tier\", \"niche\", \"niche_subcategory\", \"value_score\", \"reasoning\"],\n \"properties\": {\n \"primary_platform\": {\n \"type\": \"string\",\n \"enum\": [\"instagram\", \"tiktok\", \"youtube\", \"twitter\"],\n \"description\": \"Platform with highest engagement or most relevant audience\"\n },\n \"tier\": {\n \"type\": \"string\",\n \"enum\": [\"nano\", \"micro\", \"mid\", \"macro\"],\n \"description\": \"Influencer tier based on follower count\"\n },\n \"tier_name\": {\n \"type\": \"string\",\n \"description\": \"Human-readable tier name\"\n },\n \"niche\": {\n \"type\": \"string\",\n \"enum\": [\n \"fashion\",\n \"beauty\",\n \"fitness\",\n \"food\",\n \"home_lifestyle\",\n \"tech\",\n \"parenting\",\n \"travel\",\n \"pets\",\n \"business\",\n \"entertainment\",\n \"education\",\n \"art_photography\",\n \"automotive\",\n \"sports\",\n \"gaming\",\n \"music\",\n \"general\"\n ],\n \"description\": \"Primary content niche\"\n },\n \"niche_name\": {\n \"type\": \"string\",\n \"description\": \"Human-readable niche name\"\n },\n \"niche_subcategory\": {\n \"type\": \"string\",\n \"description\": \"Specific subcategory within niche (e.g., 'sustainable fashion', 'vegan cooking', 'exotic pets')\"\n },\n \"followers\": {\n \"type\": \"integer\",\n \"description\": \"Total follower count from primary platform\"\n },\n \"engagement_rate\": {\n \"type\": \"number\",\n \"description\": \"Engagement rate percentage\"\n },\n \"username\": {\n \"type\": \"string\",\n \"description\": \"Creator's username on primary platform\"\n },\n \"profile_url\": {\n \"type\": \"string\",\n \"description\": \"URL to primary platform profile\"\n },\n \"value_score\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"description\": \"Overall value score for partnership potential (0-100)\"\n },\n \"content_themes\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"},\n \"maxItems\": 5,\n \"description\": \"Key content themes or topics (max 5)\"\n },\n \"audience_demographics\": {\n \"type\": \"string\",\n \"description\": \"Likely audience demographics based on content\"\n },\n \"brand_fit_score\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 10,\n \"description\": \"How well they fit for e-commerce brand partnerships (1-10)\"\n },\n \"reasoning\": {\n \"type\": \"string\",\n \"description\": \"Brief explanation of classification decisions\"\n }\n }\n }\n }\n}\n"},"typeVersion":1.2},{"id":"1c38f371-9a41-457c-99f1-c0a10d1ffe74","name":"Get Order Email","type":"n8n-nodes-base.set","position":[-336,2240],"parameters":{"options":{},"assignments":{"assignments":[{"id":"b855a1c5-cd64-4403-bce2-3cef4da9bd57","name":"email","type":"string","value":"={{ $json.email }}"}]}},"typeVersion":3.4},{"id":"5b3d1b79-c247-4da3-8eb8-897bf1b79cc2","name":"Sticky Note - Step 3 Enrichment","type":"n8n-nodes-base.stickyNote","position":[48,1712],"parameters":{"color":4,"width":460,"height":884,"content":"## šŸ” STEP 3: CREATOR ENRICHMENT\n\n**Influencers.club API Call**\n\n**What it does:**\n- Searches 50+ social platforms for email\n- Returns creator profiles if found\n- Includes: followers, engagement, bio, URLs\n\n**Response structure:**\n```json\n{\n \"result\": {\n \"is_creator\": true,\n \"email\": \"...\",\n \"platforms\": [\n {\n \"name\": \"instagram\",\n \"followers\": 87234,\n \"engagement\": 4.2,\n \"username\": \"...\",\n \"bio\": \"...\"\n }\n ]\n }\n}\n```\n\n**Error handling:**\n- On error → Continue to \"Handle Failed Enrichment\"\n- Non-creators → is_creator = false\n- Rate limits: 100/min, 10K/day\n\n**āš™ļø Setup required:**\nAdd API key in HTTP Header Auth credentials"},"typeVersion":1},{"id":"bcb60ff1-1cbb-4b35-be3f-5e71d34a4a8f","name":"Shopify Order Trigger","type":"n8n-nodes-base.shopifyTrigger","position":[-864,1968],"webhookId":"cde2e2aa-a1d3-418d-b431-b50801f17bfa","parameters":{"topic":"orders/create","authentication":"oAuth2"},"credentials":{"shopifyOAuth2Api":{"id":"credential-id","name":"Shopify account"}},"typeVersion":1},{"id":"39e98c23-f857-4362-91bb-652ff856edb7","name":"Shopify Customer Trigger","type":"n8n-nodes-base.shopifyTrigger","position":[-864,2160],"webhookId":"11c5469c-f9f0-40bf-82cb-b0c830e52825","parameters":{"topic":"customers/create","authentication":"oAuth2"},"credentials":{"shopifyOAuth2Api":{"id":"credential-id","name":"Shopify account"}},"typeVersion":1},{"id":"ea5c3ad6-b7a3-4772-98ba-a14d993990de","name":"Get Customer Email","type":"n8n-nodes-base.set","position":[-336,2416],"parameters":{"options":{},"assignments":{"assignments":[{"id":"881b427a-d45c-49e2-a7bc-b55dddfe9951","name":"email","type":"string","value":"={{ $json.email }}"}]}},"typeVersion":3.4},{"id":"2ff05f30-a6ff-4f1f-8a8e-998b73365bb7","name":"Handle Failed Enrichment","type":"n8n-nodes-base.code","position":[224,2656],"parameters":{"jsCode":"const subscriber = $input.first().json;\n\nreturn {\n json: {\n email: subscriber.email,\n first_name: subscriber.first_name,\n last_name: subscriber.last_name,\n enrichment_status: 'failed',\n classification: {\n creator_status: 'non_creator',\n creator_type: {},\n creator_tier: { overall: 'none', max_followers: 0 },\n intent_signals: {\n has_affiliate_links: false,\n has_brand_deals: false,\n sells_products_or_subscriptions: false\n },\n platforms_present: []\n },\n routing: {\n flow: 'standard_newsletter',\n priority: 'low',\n actions: ['Keep in standard newsletter flow'],\n notes: 'Enrichment failed - treating as non-creator'\n },\n timestamp: new Date().toISOString()\n }\n};"},"typeVersion":2},{"id":"897781a7-7f7e-4b4f-af25-3005faf9af60","name":"Send a message - Failed Enrichment","type":"n8n-nodes-base.slack","position":[224,2864],"webhookId":"0ba62d05-f1aa-4417-90f6-3da4f141bd93","parameters":{"text":"=Check the Newsletter Subscriber flow for {{$json.email}}","select":"channel","channelId":{"__rl":true,"mode":"list","value":"C0ABVMKF6Q5","cachedResultName":"social-listening"},"otherOptions":{},"authentication":"oAuth2"},"credentials":{"slackOAuth2Api":{"id":"credential-id","name":"Allowed Slack Integration"}},"typeVersion":2.4},{"id":"dc4a3a98-bfa7-4284-a7cb-b2d40c19d06f","name":"Is Creator?","type":"n8n-nodes-base.if","notes":"Check if the enrichment returned is_creator = true","position":[720,2400],"parameters":{"options":{},"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"is-creator-check","operator":{"type":"boolean","operation":"true"},"leftValue":"={{ $json.result.is_creator }}","rightValue":true}]}},"typeVersion":2.2},{"id":"b626c61c-fb37-484e-9868-6fbd45aed636","name":"AI Creator Classification Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[1200,2384],"parameters":{"text":"={{ JSON.stringify($json) }}","options":{"systemMessage":"=You are an expert creator classification specialist for e-commerce brands. Your job is to analyze social media profiles and intelligently classify creators for partnership opportunities.\n\nINPUT:\nYou'll receive JSON with:\n- customer_name: First name of the customer\n- platforms: Array of platform objects with { name, followers, engagement, username, bio, url }\n\nYOUR TASK:\n1. Select the PRIMARY platform (highest engagement or most relevant for e-commerce)\n2. Classify influencer TIER based on follower count\n3. Detect creator NICHE with nuance and subcategories\n4. Calculate VALUE SCORE for partnership potential\n5. Provide clear REASONING\n\nOUTPUT MUST BE VALID JSON ONLY (no markdown, no extra text)\n\n---\n\n## TIER CLASSIFICATION RULES:\n\n**Follower Count → Tier:**\n- < 5,000: \"nano\" (Tier: \"Nano\")\n- 5,000 - 49,999: \"micro\" (Tier: \"Micro\") \n- 50,000 - 249,999: \"mid\" (Tier: \"Mid-Tier\")\n- 250,000+: \"macro\" (Tier: \"Macro\")\n\n**Primary Platform Selection:**\n- Prioritize platforms with HIGHEST engagement rate\n- If engagement rates similar, prefer: Instagram > TikTok > YouTube > Twitter\n- For e-commerce: Instagram/TikTok are most valuable\n\n---\n\n## NICHE CLASSIFICATION (BE NUANCED!):\n\n### Fashion\n**Subcategories:** sustainable fashion, streetwear, luxury fashion, modest fashion, plus-size fashion, vintage fashion, fast fashion, minimalist fashion\n**Bio signals:** fashion, style, ootd, outfit, wardrobe, designer, streetwear, lookbook, fashionista, thrifted, vintage\n**Example:** \"sustainable fashion advocate\" not just \"fashion\"\n\n### Beauty\n**Subcategories:** makeup tutorials, skincare routines, clean beauty, K-beauty, hair care, nail art, beauty reviews, cosmetics\n**Bio signals:** beauty, makeup, skincare, cosmetics, glam, mua, skincareroutine, cleanbeauty\n**Example:** \"clean beauty enthusiast\" not just \"beauty\"\n\n### Fitness\n**Subcategories:** weightlifting, yoga, pilates, running, crossfit, bodybuilding, calisthenics, sports nutrition, wellness coaching\n**Bio signals:** fitness, workout, gym, health, wellness, yoga, athlete, trainer, gains, fitfam\n**Example:** \"yoga & mindfulness coach\" not just \"fitness\"\n\n### Food\n**Subcategories:** vegan cooking, meal prep, baking, restaurant reviews, cocktails, healthy eating, comfort food, international cuisine\n**Bio signals:** food, cooking, recipe, chef, foodie, baker, vegan, plantbased, homecook\n**Example:** \"vegan recipe creator\" not just \"food\"\n\n### Home/Lifestyle\n**Subcategories:** interior design, home organization, DIY projects, minimalism, cozy aesthetic, smart home, gardening\n**Bio signals:** home, decor, interior, design, diy, lifestyle, homemaker, organization, aesthetic, cozy\n**Example:** \"minimalist home design\" not just \"lifestyle\"\n\n### Tech/Gadgets\n**Subcategories:** product reviews, unboxing, gaming hardware, smart home tech, phone reviews, PC building, wearables\n**Bio signals:** tech, gadget, review, unboxing, tech reviewer, android, iphone, gaming, geek\n**Example:** \"smartphone reviewer\" not just \"tech\"\n\n### Parenting\n**Subcategories:** new mom, toddler activities, homeschooling, baby products, pregnancy journey, family travel\n**Bio signals:** mom, dad, parent, family, kids, baby, toddler, motherhood, parenting, momlife\n**Example:** \"toddler activity ideas\" not just \"parenting\"\n\n### Travel\n**Subcategories:** budget travel, luxury travel, solo travel, adventure travel, family travel, digital nomad, travel photography\n**Bio signals:** travel, wanderlust, explore, adventure, travelblogger, nomad, backpacking\n**Example:** \"budget travel tips\" not just \"travel\"\n\n### Pets\n**Subcategories:** dog training, cat care, exotic pets, pet nutrition, rescue advocacy, pet photography, aquarium/fish, reptiles, birds\n**Bio signals:** pet, dog, cat, puppy, kitten, animal, petlover, dogmom, catmom, rescue, reptile, bird, fish, aquarium, gecko, hamster\n**Example:** \"exotic reptile care\" not just \"pets\" (this is why regex fails!)\n\n### Business/Entrepreneur\n**Subcategories:** e-commerce tips, dropshipping, solopreneurship, side hustles, passive income, digital products, SaaS\n**Bio signals:** business, entrepreneur, founder, ceo, startup, ecommerce, shopify, dropship, sidehustle\n**Example:** \"Shopify store owner\" not just \"business\"\n\n### Entertainment\n**Subcategories:** comedy, pranks, reactions, celebrity news, pop culture, movie reviews\n**Bio signals:** comedy, comedian, funny, pranks, entertainment, reactions, viral\n\n### Education\n**Subcategories:** language learning, study tips, online courses, tutoring, test prep, career advice\n**Bio signals:** education, teacher, tutor, learning, studytips, edu, professor\n\n### Art/Photography\n**Subcategories:** digital art, photography, illustration, graphic design, painting, crafts\n**Bio signals:** artist, photographer, art, photography, creative, design, illustration\n\n### Automotive\n**Subcategories:** car reviews, car modifications, racing, classic cars, electric vehicles\n**Bio signals:** cars, automotive, racing, vehicles, tesla, ev, carreviews\n\n### Sports\n**Subcategories:** basketball, soccer, golf, tennis, extreme sports, sports commentary\n**Bio signals:** sports, athlete, basketball, soccer, golf, tennis, football\n\n### Gaming\n**Subcategories:** streaming, esports, game reviews, let's plays, speedruns\n**Bio signals:** gaming, gamer, twitch, streamer, esports, gameplay\n\n### Music\n**Subcategories:** music production, covers, original songs, DJ sets, music reviews\n**Bio signals:** music, musician, singer, producer, dj, artist, covers\n\n### General (fallback)\nUse ONLY if no clear niche detected. Most creators have a niche!\n\n---\n\n## VALUE SCORE CALCULATION (0-100):\n\nBase score by tier:\n- Nano: 10 points\n- Micro: 20 points\n- Mid: 30 points\n- Macro: 40 points\n\nEngagement bonus:\n- > 5%: +15 points\n- 3-5%: +10 points\n- 1-3%: +5 points\n- < 1%: +0 points\n\nNiche relevance for e-commerce (+10 points):\n- Fashion, Beauty, Fitness, Home/Lifestyle, Pets, Parenting, Food\n\nMulti-platform presence:\n- 2+ platforms: +5 points\n- 3+ platforms: +10 points\n\nProfessional signals in bio:\n- Brand mentions, media kit, UGC, collaboration: +5 points\n\n---\n\n## BRAND FIT SCORE (1-10):\n\nConsider:\n- **Content quality signals:** Professional bio, clear niche, collaboration history\n- **Audience alignment:** Demographics match typical e-commerce customer\n- **Partnership readiness:** Mentions \"collabs\", \"DM for business\", link in bio\n- **Authenticity:** Genuine content vs promotional spam\n\nScoring:\n- 1-3: Poor fit (very general, no clear audience)\n- 4-6: Moderate fit (clear niche but low engagement or unprofessional)\n- 7-8: Good fit (strong niche, decent engagement, professional)\n- 9-10: Excellent fit (perfect niche, high engagement, proven collaborator)\n\n---\n\n## CONTENT THEMES:\n\nExtract 3-5 specific themes from bio:\n- Don't just repeat niche\n- Look for specific topics, styles, or focuses\n- Examples: \"sustainable living\", \"budget tips\", \"GRWM videos\", \"product hauls\"\n\n---\n\n## AUDIENCE DEMOGRAPHICS:\n\nInfer likely audience based on:\n- Platform (TikTok = younger, Instagram = broader)\n- Niche (beauty = mostly female 18-35, gaming = mostly male 16-30)\n- Bio language (professional = older audience)\n\nFormat: \"Primarily [gender] aged [range], interested in [topics]\"\nExample: \"Primarily female aged 25-40, interested in sustainable fashion and ethical shopping\"\n\n---\n\n## REASONING:\n\nProvide 2-3 sentence explanation:\n1. Why you chose this niche/subcategory\n2. Why you assigned this value score\n3. Key signals from bio that informed decision\n\nExample: \"Classified as sustainable fashion (fashion niche) based on bio mentions of 'ethical wardrobe' and 'slow fashion advocate'. Mid-tier with 87K followers and 4.2% engagement rate. High brand fit (8/10) due to professional bio and clear audience alignment with conscious consumers.\"\n\n---\n\nOUTPUT FORMAT:\n{\n \"classification\": {\n \"primary_platform\": \"instagram\",\n \"tier\": \"micro\",\n \"tier_name\": \"Micro\",\n \"niche\": \"fashion\",\n \"niche_name\": \"Fashion/Style\",\n \"niche_subcategory\": \"sustainable fashion\",\n \"followers\": 15234,\n \"engagement_rate\": 3.8,\n \"username\": \"eco_style_sarah\",\n \"profile_url\": \"https://instagram.com/eco_style_sarah\",\n \"value_score\": 45,\n \"content_themes\": [\"sustainable fashion\", \"capsule wardrobes\", \"thrift flips\", \"ethical brands\"],\n \"audience_demographics\": \"Primarily female aged 22-35, interested in sustainable fashion and ethical shopping\",\n \"brand_fit_score\": 8,\n \"reasoning\": \"Classified as sustainable fashion based on bio keywords 'ethical wardrobe' and 'slow fashion'. Micro-tier with 15K followers and strong 3.8% engagement. Value score 45 reflects good e-commerce fit with environmentally conscious audience.\"\n }\n}\n"},"promptType":"define","hasOutputParser":true},"typeVersion":3.1},{"id":"8f258aca-6a41-4587-bcd1-7cecc2225d71","name":"E-Commerce Creator Outreach Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[1680,2384],"parameters":{"text":"={{ JSON.stringify($json) }}","options":{"systemMessage":"=You are an expert e-commerce influencer partnership specialist who crafts personalized creator outreach for brands.\n\nCONTEXT:\nThis person is ALREADY A CUSTOMER who purchased from your Shopify store. They're now being invited to join your creator program because we discovered they have social influence.\n\nINPUT:\nYou will receive JSON with:\n- Customer data: { first_name, email, order_total (if from order webhook) }\n- result: { platform data from influencers.club API }\n- classification: { tier, niche_name, followers, engagement_rate, profile_url, value_score }\n\nHARD RULES:\n- Output MUST be valid JSON only, matching the exact schema\n- No markdown, no extra commentary, no invented metrics\n- NEVER mention follower count if < 10,000\n- Always acknowledge they're already a customer (\"Thanks for your recent order!\" or \"Welcome to [Brand]!\")\n- Use first_name, fallback to username or \"there\"\n- Be authentic - this is a WARM lead, not cold outreach\n- Keep it conversational and value-focused\n\nPERSONALIZATION STRATEGY BY TIER:\n\n**Nano/Micro (< 50K followers):**\n- Program: \"affiliate\" or \"ambassador\"\n- Priority: \"normal\"\n- Offer: \"discount_code\" or \"free_product\"\n- Tone: Friendly, community-focused, exclusive\n- Focus: Earn while sharing products you already love\n- DO NOT mention follower count\n- Message length: 50-80 words\n- Value prop:\n - Exclusive discount codes for their audience\n - Early access to new products\n - Earn commission on sales\n - Be part of creator community\n- Example: \"Since you're already loving [Product], want to share it with your audience and earn commission?\"\n\n**Mid-Tier (50K-250K followers):**\n- Program: \"ugc_creator\" or \"brand_partnership\"\n- Priority: \"medium\"\n- Offer: \"commission\" or \"paid_collab\"\n- Tone: Professional, opportunity-focused\n- Format followers: 87,234 → \"87K\"\n- Message length: 80-120 words\n- Value prop:\n - Paid content creation opportunities\n - Higher commission rates (15-20%)\n - Featured on brand channels\n - Long-term partnership potential\n- Example: \"Your [niche] content resonates with [X] followers - let's explore a paid partnership\"\n\n**Macro (250K+ followers):**\n- Program: \"brand_partnership\"\n- Priority: \"high\"\n- Offer: \"paid_collab\" or \"revenue_share\"\n- Tone: Strategic, executive-level\n- Format followers: 456,789 → \"457K\" or 1,234,567 → \"1.2M\"\n- Message length: 100-150 words\n- Value prop:\n - Significant paid partnerships\n - Exclusive brand ambassador role\n - Revenue share opportunities\n - Co-branded product lines\n - Priority support & custom terms\n- Example: \"As a leading [niche] voice with [X] followers, we'd love to discuss an exclusive partnership\"\n\nE-COMMERCE NICHE LANGUAGE:\n- Fashion/Style: \"style your audience\", \"curated looks\", \"wardrobe essentials\"\n- Beauty/Skincare: \"beauty routine\", \"glowing skin\", \"product favorites\"\n- Fitness/Wellness: \"wellness journey\", \"fitness goals\", \"healthy lifestyle\"\n- Food/Cooking: \"kitchen must-haves\", \"meal prep\", \"foodie favorites\"\n- Home/Lifestyle: \"home aesthetic\", \"cozy vibes\", \"living space\"\n- Tech/Gadgets: \"tech setup\", \"gear recommendations\", \"product reviews\"\n- Parenting: \"parent life\", \"family essentials\", \"mom-approved\"\n- Travel: \"travel essentials\", \"adventure gear\", \"on-the-go\"\n\nMESSAGE STRUCTURE:\n1. Warm greeting with first name\n2. Acknowledge their purchase (\"Thanks for your recent order!\")\n3. Transition: \"We noticed you're a [niche] creator on [platform]\"\n4. Value proposition for their tier\n5. Specific benefits (2-3 bullet points for mid/macro, prose for nano/micro)\n6. Clear call-to-action (\"Reply to this email\" or \"Click here to apply\")\n7. Friendly sign-off\n\nSUBJECT LINE RULES:\n- 40-60 characters\n- Personalized, acknowledge customer relationship\n- Nano/Micro: \"Love [Brand]? Join our creator community šŸŽ\"\n- Mid-Tier: \"Paid partnership opportunity - [X]K followers šŸ’¼\"\n- Macro: \"Exclusive brand partnership - [X]K followers ⭐\"\n- NO all caps, max ONE emoji\n\nOFFER TYPE MATCHING:\n- Nano (< 5K): discount_code or free_product\n- Micro (5K-50K): commission (10-15%) or free_product\n- Mid (50K-250K): paid_collab or commission (15-20%)\n- Macro (250K+): paid_collab or revenue_share\n\nTONE CALIBRATION:\n- Never: pushy, desperate, overly corporate\n- Always: appreciative (they're a customer!), genuine, benefit-focused\n- Acknowledge the existing relationship warmly\n\nTALKING_POINTS:\nList specific personalization used:\n- customer_status (they purchased!)\n- first_name\n- niche_reference\n- platform_mention\n- follower_count (if mentioned)\n- product_they_bought (if available)\n- tier_appropriate_offer\n\nOUTPUT SCHEMA:\n{\n \"outreach\": {\n \"subject\": \"\",\n \"message\": \"\",\n \"priority\": \"normal|medium|high\",\n \"program\": \"affiliate|ambassador|ugc_creator|brand_partnership\",\n \"offer_type\": \"discount_code|commission|free_product|paid_collab|revenue_share\",\n \"talking_points\": []\n }\n}\n"},"promptType":"define","hasOutputParser":true},"typeVersion":3.1},{"id":"7555d3f3-081d-498f-bbf8-265b2a489a8e","name":"Create or update a CRM contact","type":"n8n-nodes-base.hubspot","position":[2768,2128],"parameters":{"email":"={{ $('Influencers.club - Enrichment API by Email').first().json.result.email }}","options":{},"authentication":"appToken","additionalFields":{}},"credentials":{"hubspotAppToken":{"id":"credential-id","name":"gorgi hubspot"}},"typeVersion":2.2},{"id":"099d83ce-9adc-4c4f-849d-37baa25e1a6b","name":"Send an email","type":"n8n-nodes-base.sendGrid","position":[2592,2752],"parameters":{"subject":"={{ $json.output.outreach.subject }}","toEmail":"={{ $('Influencers.club - Enrichment API by Email').item.json.result.email }}","fromName":"Gjorgji P","resource":"mail","fromEmail":"user@example.com","contentValue":"={{ $json.output.outreach.message }}","additionalFields":{}},"credentials":{"sendGridApi":{"id":"credential-id","name":"SendGrid account"}},"typeVersion":1},{"id":"d91d571c-e4be-4fd0-8e61-50bebfa7fa6f","name":"Send a message","type":"n8n-nodes-base.slack","position":[2608,3600],"webhookId":"f1d5f9a8-ab53-49fc-a047-284b53d19cb3","parameters":{"text":"=🚨 *High-Value Creator Signed Up!*\n\n*Name:* {{ $('Influencers.club - Enrichment API by Email').item.json.result.tiktok.full_name }}\n*Email:* {{ $('Influencers.club - Enrichment API by Email').item.json.result.email }}\n*Tier:* {{ $('AI Creator Classification Agent').item.json.output.classification.tier }}\n*Platform:* {{ $('AI Creator Classification Agent').item.json.output.classification.primary_platform }}","select":"channel","channelId":{"__rl":true,"mode":"list","value":"C0ABVMKF6Q5","cachedResultName":"social-listening"},"otherOptions":{},"authentication":"oAuth2"},"credentials":{"slackOAuth2Api":{"id":"credential-id","name":"Allowed Slack Integration"}},"typeVersion":2.4},{"id":"4d1be0c1-b7a8-486c-b858-9d2ec7abc4a5","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[192,1360],"parameters":{"width":752,"content":"## Find and activate creators inside your loyalty program – API Creatorbooks\n**Step by step workflow to enrich ecommerce customers emails on Shopify with multi social (Instagram, Tiktok, Youtube, Twitter, Onlyfans, Twitch and more) and launch personalized comms using the influencer.club API**. [Full explanation](https://influencers.club/creatorbook/discover-influencers-among-saas-clients/)"},"typeVersion":1},{"id":"2a87a336-71cf-4bb5-887c-fedd2fc40b67","name":"Enrich by Email","type":"n8n-nodes-influencersclub.influencersClub","onError":"continueErrorOutput","position":[224,2416],"parameters":{"email":"={{ $json.email }}"},"credentials":{"influencersClubApi":{"id":"credential-id","name":"Influencers Club - Gjorgji"}},"typeVersion":1}],"active":false,"pinData":{},"settings":{"binaryMode":"separate","availableInMCP":false,"executionOrder":"v1"},"versionId":"540eed0c-2025-42bc-80ce-3689503e3422","connections":{"Is Creator?":{"main":[[{"node":"AI Creator Classification Agent","type":"main","index":0}]]},"Enrich by Email":{"main":[[{"node":"Is Creator?","type":"main","index":0}],[{"node":"Handle Failed Enrichment","type":"main","index":0}]]},"Get Order Email":{"main":[[{"node":"Enrich by Email","type":"main","index":0}]]},"Get Customer Email":{"main":[[{"node":"Enrich by Email","type":"main","index":0}]]},"OpenAI Chat Model1":{"ai_languageModel":[[{"node":"E-Commerce Creator Outreach Agent","type":"ai_languageModel","index":0}]]},"Shopify Order Trigger":{"main":[[{"node":"Get Order Email","type":"main","index":0}]]},"Handle Failed Enrichment":{"main":[[{"node":"Send a message - Failed Enrichment","type":"main","index":0}]]},"OpenAI Classifier Model1":{"ai_languageModel":[[{"node":"AI Creator Classification Agent","type":"ai_languageModel","index":0}]]},"Shopify Customer Trigger":{"main":[[{"node":"Get Customer Email","type":"main","index":0}]]},"Structured Output Parser1":{"ai_outputParser":[[{"node":"E-Commerce Creator Outreach Agent","type":"ai_outputParser","index":0}]]},"Classification Output Parser1":{"ai_outputParser":[[{"node":"AI Creator Classification Agent","type":"ai_outputParser","index":0}]]},"AI Creator Classification Agent":{"main":[[{"node":"E-Commerce Creator Outreach Agent","type":"main","index":0}]]},"E-Commerce Creator Outreach Agent":{"main":[[{"node":"Send a message","type":"main","index":0},{"node":"Create or update a CRM contact","type":"main","index":0},{"node":"Send an email","type":"main","index":0}]]}}} \ No newline at end of file