> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pre-built Workflows

> Ready-to-use Anysite workflow templates for common use cases

## Overview

Get started quickly with pre-built workflow templates combining multiple Anysite nodes for common business scenarios. These templates provide complete automation solutions that you can customize for your specific needs.

## Lead Generation Workflows

### Social Media Lead Discovery

Complete workflow for finding and qualifying leads across social platforms.

**What it does:**

* Searches LinkedIn for professionals in target industries
* Finds their Twitter profiles for engagement analysis
* Extracts contact information from company websites
* Scores leads based on engagement and company size
* Adds qualified leads to your CRM

**Workflow Template:**

```json theme={null}
{
  "name": "Social Media Lead Discovery",
  "nodes": [
    {
      "name": "Search LinkedIn Professionals",
      "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
      "operation": "searchPeople",
      "parameters": {
        "keywords": "CTO OR \"Chief Technology Officer\"",
        "location": "San Francisco Bay Area",
        "industry": "Technology",
        "limit": 50
      }
    },
    {
      "name": "Find Twitter Profiles",
      "type": "@horizondatawave/n8n-nodes-anysite.Twitter",
      "operation": "searchUsers",
      "parameters": {
        "query": "{{ $json.firstName }} {{ $json.lastName }} {{ $json.company }}"
      }
    },
    {
      "name": "Get Company Website",
      "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
      "operation": "getCompanyInfo",
      "parameters": {
        "companyName": "{{ $json.company }}"
      }
    },
    {
      "name": "Extract Contact Info",
      "type": "@horizondatawave/n8n-nodes-anysite.WebParser",
      "operation": "parseUrl",
      "parameters": {
        "url": "{{ $json.websiteUrl }}/contact",
        "customSelectors": {
          "email": "a[href^='mailto:']",
          "phone": "[href^='tel:']"
        }
      }
    },
    {
      "name": "Score Lead Quality",
      "type": "n8n-nodes-base.function",
      "parameters": {
        "functionCode": `
          const lead = items[0].json;
          let score = 0;
          
          // Company size scoring
          if (lead.employeeCount > 500) score += 30;
          else if (lead.employeeCount > 100) score += 20;
          else if (lead.employeeCount > 10) score += 10;
          
          // Social engagement scoring
          if (lead.twitterFollowers > 5000) score += 25;
          else if (lead.twitterFollowers > 1000) score += 15;
          
          // Industry relevance
          if (lead.industry.includes('Technology')) score += 20;
          if (lead.industry.includes('Software')) score += 15;
          
          // Contact availability
          if (lead.email) score += 15;
          if (lead.phone) score += 10;
          
          return [{
            json: {
              ...lead,
              leadScore: score,
              qualification: score > 70 ? 'Hot' : score > 40 ? 'Warm' : 'Cold'
            }
          }];
        `
      }
    },
    {
      "name": "Filter High-Quality Leads",
      "type": "n8n-nodes-base.filter",
      "parameters": {
        "conditions": [
          {
            "field": "leadScore",
            "operation": "greaterThan",
            "value": 40
          }
        ]
      }
    },
    {
      "name": "Add to CRM",
      "type": "n8n-nodes-base.hubspot",
      "parameters": {
        "operation": "create",
        "resource": "contact",
        "data": {
          "firstname": "={{ $json.firstName }}",
          "lastname": "={{ $json.lastName }}",
          "email": "={{ $json.email }}",
          "company": "={{ $json.company }}",
          "jobtitle": "={{ $json.position }}",
          "lead_score": "={{ $json.leadScore }}",
          "lead_source": "Social Media Discovery"
        }
      }
    }
  ]
}
```

### Content Creator Outreach

Find and connect with content creators in your industry.

**Features:**

* Instagram influencer discovery
* Engagement rate analysis
* Contact information extraction
* Outreach message personalization

## Competitive Intelligence

### Competitor Social Media Monitoring

Track competitor activity across all social platforms.

**Workflow Components:**

1. **Multi-Platform Search** - Monitor LinkedIn, Twitter, Instagram, Reddit
2. **Content Analysis** - Extract themes, messaging, and engagement
3. **Performance Tracking** - Compare engagement rates and reach
4. **Trend Identification** - Spot emerging topics and strategies
5. **Report Generation** - Weekly competitive intelligence reports

**Workflow Template:**

```json theme={null}
{
  "name": "Competitor Social Monitoring",
  "nodes": [
    {
      "name": "Monitor Competitor LinkedIn",
      "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
      "operation": "getCompanyPosts",
      "parameters": {
        "companyName": "{{ $('Set Competitors').item.json.competitor }}",
        "limit": 10
      }
    },
    {
      "name": "Monitor Competitor Twitter",
      "type": "@horizondatawave/n8n-nodes-anysite.Twitter",
      "operation": "getUserPosts",
      "parameters": {
        "username": "{{ $('Set Competitors').item.json.twitterHandle }}",
        "tweetCount": 20
      }
    },
    {
      "name": "Analyze Content Themes",
      "type": "n8n-nodes-base.openAi",
      "parameters": {
        "operation": "analyze",
        "prompt": "Analyze these social media posts and identify the main themes, messaging strategies, and target audience: {{ JSON.stringify($input.all().map(item => item.json.text || item.json.content).slice(0, 10)) }}"
      }
    },
    {
      "name": "Calculate Engagement Metrics",
      "type": "n8n-nodes-base.function",
      "parameters": {
        "functionCode": `
          const posts = $input.all();
          const totalEngagement = posts.reduce((sum, post) => {
            const likes = post.json.likes || 0;
            const comments = post.json.comments || 0;
            const shares = post.json.shares || post.json.retweets || 0;
            return sum + likes + comments + shares;
          }, 0);
          
          const avgEngagement = totalEngagement / posts.length;
          const topPost = posts.reduce((max, post) => {
            const engagement = (post.json.likes || 0) + (post.json.comments || 0);
            const maxEngagement = (max.json.likes || 0) + (max.json.comments || 0);
            return engagement > maxEngagement ? post : max;
          }, posts[0]);
          
          return [{
            json: {
              competitor: posts[0].json.competitor,
              totalPosts: posts.length,
              avgEngagement,
              topPost: topPost.json,
              analysisDate: new Date().toISOString()
            }
          }];
        `
      }
    }
  ]
}
```

### Price Monitoring & Analysis

Monitor competitor pricing and product changes.

**Capabilities:**

* Website change detection
* Price comparison analysis
* Product launch identification
* Market positioning insights

## Content Research

### Industry Trend Analysis

Discover trending topics and content opportunities.

**Workflow Features:**

1. **Multi-Source Research** - Reddit, Twitter, industry blogs
2. **Trend Identification** - Spot emerging topics and discussions
3. **Content Gap Analysis** - Find underserved content areas
4. **Keyword Research** - Extract popular search terms
5. **Content Calendar** - Generate content ideas and scheduling

**Example Implementation:**

```json theme={null}
{
  "name": "Industry Trend Analysis",
  "trigger": {
    "type": "n8n-nodes-base.cron",
    "parameters": {
      "rule": {
        "interval": [
          {
            "field": "cronExpression",
            "expression": "0 9 * * 1"
          }
        ]
      }
    }
  },
  "nodes": [
    {
      "name": "Reddit Hot Topics",
      "type": "@horizondatawave/n8n-nodes-anysite.Reddit",
      "operation": "monitorHotPosts",
      "parameters": {
        "subreddits": "MachineLearning,artificial,technology",
        "postLimit": 20,
        "minScore": 100
      }
    },
    {
      "name": "Twitter Trending",
      "type": "@horizondatawave/n8n-nodes-anysite.Twitter",
      "operation": "searchTweets",
      "parameters": {
        "query": "#AI OR #MachineLearning OR #TechTrends",
        "resultType": "popular",
        "limit": 50
      }
    },
    {
      "name": "Extract Trending Keywords",
      "type": "n8n-nodes-base.function",
      "parameters": {
        "functionCode": `
          const allText = $input.all().map(item => 
            item.json.title || item.json.text || ''
          ).join(' ');
          
          const keywords = allText.toLowerCase()
            .match(/\\b\\w{4,}\\b/g) || [];
            
          const keywordCount = {};
          keywords.forEach(word => {
            if (!['this', 'that', 'with', 'from', 'they', 'have', 'will', 'been', 'said'].includes(word)) {
              keywordCount[word] = (keywordCount[word] || 0) + 1;
            }
          });
          
          const trending = Object.entries(keywordCount)
            .sort(([,a], [,b]) => b - a)
            .slice(0, 15)
            .map(([keyword, count]) => ({ keyword, mentions: count }));
            
          return [{ json: { trendingKeywords: trending, date: new Date().toISOString() } }];
        `
      }
    },
    {
      "name": "Generate Content Ideas",
      "type": "n8n-nodes-base.openAi",
      "parameters": {
        "operation": "generate",
        "prompt": "Based on these trending keywords in AI/ML: {{ JSON.stringify($json.trendingKeywords) }}, generate 5 unique blog post ideas that would appeal to technical professionals. Include title, brief description, and target audience for each."
      }
    },
    {
      "name": "Save to Content Calendar",
      "type": "n8n-nodes-base.googleSheets",
      "parameters": {
        "operation": "append",
        "sheetId": "your-content-calendar-sheet-id",
        "values": [
          "={{ new Date().toLocaleDateString() }}",
          "={{ $json.contentIdeas }}",
          "Trend Analysis",
          "Planning"
        ]
      }
    }
  ]
}
```

## Brand Monitoring

### Social Mention Tracking

Monitor brand mentions across all social platforms.

**Monitoring Scope:**

* Direct brand mentions
* Product mentions
* Competitor mentions
* Industry discussions
* Sentiment analysis

### Crisis Management

Rapid response workflow for negative mentions.

**Response Features:**

* Real-time mention detection
* Sentiment analysis
* Escalation triggers
* Team notifications
* Response tracking

## Data Collection & Analysis

### Market Research Automation

Comprehensive market intelligence gathering.

**Research Areas:**

1. **Competitor Analysis** - Products, pricing, messaging
2. **Customer Feedback** - Reviews, social mentions, surveys
3. **Industry Trends** - News, discussions, expert opinions
4. **Technology Stack** - Tools and technologies used by targets
5. **Contact Intelligence** - Decision maker identification

### Lead Qualification Pipeline

Automated lead scoring and qualification.

**Qualification Criteria:**

* Company size and growth
* Technology stack alignment
* Budget indicators
* Decision maker access
* Engagement history

## Workflow Customization

### Template Modification

Each workflow template can be customized by:

1. **Adjusting Parameters** - Modify search criteria, limits, and filters
2. **Adding Integrations** - Connect to your CRM, database, or notification systems
3. **Custom Logic** - Add business-specific scoring and qualification rules
4. **Scheduling** - Set up automated execution times
5. **Error Handling** - Configure retry logic and fallback options

### Best Practices

**Performance Optimization:**

* Use appropriate rate limiting between API calls
* Implement caching for frequently accessed data
* Process data in batches for large datasets
* Set up monitoring and alerting for workflow health

**Data Quality:**

* Validate extracted data before processing
* Implement deduplication logic
* Handle missing or incomplete data gracefully
* Regular data cleanup and maintenance

**Compliance:**

* Respect platform rate limits and terms of service
* Implement proper data retention policies
* Ensure GDPR compliance for personal data
* Regular security audits of data access

## Getting Started

### Quick Setup

1. **Choose a Template** - Select a workflow that matches your use case
2. **Configure Credentials** - Set up your Anysite API credentials
3. **Customize Parameters** - Adjust settings for your specific needs
4. **Test Workflow** - Run with small dataset to verify functionality
5. **Schedule Automation** - Set up regular execution if needed

### Import Instructions

To import these workflows into n8n:

1. Copy the JSON workflow template
2. In n8n, go to **Workflows** > **Import from JSON**
3. Paste the template and click **Import**
4. Configure your Anysite credentials in the credential manager
5. Update any company-specific parameters
6. Test the workflow with sample data

### Support & Community

* **Documentation** - Detailed guides for each Anysite node
* **Community Forum** - Share templates and get help
* **Support** - Technical support for enterprise customers
* **Updates** - Regular template updates and new use cases

## Advanced Workflows

### Multi-Channel Attribution

Track customer journey across multiple touchpoints.

### Competitive Intelligence Dashboard

Real-time dashboard with competitor metrics.

### Customer Success Automation

Proactive customer health monitoring and intervention.

### Sales Pipeline Acceleration

Automated lead nurturing and qualification.

## Next Steps

* [LinkedIn Node](/n8n-nodes/linkedin-node) - LinkedIn data extraction
* [Twitter Node](/n8n-nodes/twitter-node) - Twitter/X monitoring
* [Instagram Node](/n8n-nodes/instagram-node) - Instagram content analysis
* [Web Parser Node](/n8n-nodes/web-parser-node) - Website data extraction
