用于常见用例的即用型 Anysite 工作流模板
使用预构建的工作流模板快速入门,这些模板结合了多个 Anysite 节点,用于常见的业务场景。这些模板提供了完整的自动化解决方案,您可以根据特定需求进行定制。
用于在社交平台上查找和筛选潜在客户的完整工作流。
功能:
工作流模板:
{
"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;
// 公司规模评分
if (lead.employeeCount > 500) score += 30;
else if (lead.employeeCount > 100) score += 20;
else if (lead.employeeCount > 10) score += 10;
// 社交互动评分
if (lead.twitterFollowers > 5000) score += 25;
else if (lead.twitterFollowers > 1000) score += 15;
// 行业相关性
if (lead.industry.includes('Technology')) score += 20;
if (lead.industry.includes('Software')) score += 15;
// 联系方式可用性
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"
}
}
}
]
}
在您的行业中查找并联系内容创作者。
功能:
跨所有社交平台跟踪竞争对手活动。
工作流组件:
工作流模板:
{
"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()
}
}];
`
}
}
]
}
监控竞争对手定价和产品变化。
功能:
发现热门话题和内容机会。
工作流功能:
实现示例:
{
"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"
]
}
}
]
}
跨所有社交平台监控品牌提及。
监控范围:
针对负面提及的快速响应工作流。
响应功能:
全面的市场情报收集。
研究领域:
自动化潜在客户评分和资格认定。
资格标准:
每个工作流模板都可以通过以下方式定制:
性能优化:
数据质量:
合规性:
要将这些工作流导入 n8n:
跨多个接触点跟踪客户旅程。
包含竞争对手指标的实时仪表板。
主动的客户健康监控和干预。
自动化的潜在客户培育和资格认定。