mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2025-11-25 03:15:25 +08:00
Add comprehensive analysis and documentation files
Added multiple markdown reports summarizing repository status, integration landscape, workflow analysis, and executive summaries. Introduced new Python modules for performance testing, enhanced API, and community features. Updated search_categories.json and added new templates and static files for mobile and communication interfaces.
This commit is contained in:
356
templates/README.md
Normal file
356
templates/README.md
Normal file
@@ -0,0 +1,356 @@
|
||||
|
||||
|
||||
# 🎯 N8N Workflow Templates
|
||||
|
||||
#
|
||||
|
||||
# Overview
|
||||
This directory contains reusable workflow templates that demonstrate common automation patterns found in the n8n workflows collection. These templates are designed to be easily customizable and deployable.
|
||||
|
||||
#
|
||||
|
||||
# Template Categories
|
||||
|
||||
#
|
||||
|
||||
## 📧 Communication & Messaging Templates
|
||||
|
||||
- **Telegram AI Bot*
|
||||
|
||||
*
|
||||
|
||||
- Complete AI chatbot with image generation
|
||||
|
||||
- **Slack Automation*
|
||||
|
||||
*
|
||||
|
||||
- Advanced Slack integration patterns
|
||||
|
||||
- **Email Processing*
|
||||
|
||||
*
|
||||
|
||||
- Automated email handling and responses
|
||||
|
||||
- **WhatsApp Integration*
|
||||
|
||||
*
|
||||
|
||||
- Business messaging automation
|
||||
|
||||
#
|
||||
|
||||
## 🔄 Data Processing Templates
|
||||
|
||||
- **Google Sheets Automation*
|
||||
|
||||
*
|
||||
|
||||
- Advanced spreadsheet operations
|
||||
|
||||
- **Database Sync*
|
||||
|
||||
*
|
||||
|
||||
- Multi-database synchronization patterns
|
||||
|
||||
- **Data Transformation*
|
||||
|
||||
*
|
||||
|
||||
- Complex data processing workflows
|
||||
|
||||
- **File Processing*
|
||||
|
||||
*
|
||||
|
||||
- Automated file handling and conversion
|
||||
|
||||
#
|
||||
|
||||
## 🛒 E-commerce Templates
|
||||
|
||||
- **Shopify Integration*
|
||||
|
||||
*
|
||||
|
||||
- Complete e-commerce automation
|
||||
|
||||
- **WooCommerce Automation*
|
||||
|
||||
*
|
||||
|
||||
- WordPress e-commerce workflows
|
||||
|
||||
- **Inventory Management*
|
||||
|
||||
*
|
||||
|
||||
- Stock tracking and alerts
|
||||
|
||||
- **Order Processing*
|
||||
|
||||
*
|
||||
|
||||
- Automated order fulfillment
|
||||
|
||||
#
|
||||
|
||||
## 📊 Business Process Templates
|
||||
|
||||
- **CRM Automation*
|
||||
|
||||
*
|
||||
|
||||
- Customer relationship management
|
||||
|
||||
- **Lead Generation*
|
||||
|
||||
*
|
||||
|
||||
- Automated lead capture and processing
|
||||
|
||||
- **Project Management*
|
||||
|
||||
*
|
||||
|
||||
- Task and project automation
|
||||
|
||||
- **Reporting*
|
||||
|
||||
*
|
||||
|
||||
- Automated report generation
|
||||
|
||||
#
|
||||
|
||||
## 🤖 AI & Automation Templates
|
||||
|
||||
- **OpenAI Integration*
|
||||
|
||||
*
|
||||
|
||||
- Advanced AI workflows
|
||||
|
||||
- **Content Generation*
|
||||
|
||||
*
|
||||
|
||||
- Automated content creation
|
||||
|
||||
- **Language Processing*
|
||||
|
||||
*
|
||||
|
||||
- Text analysis and translation
|
||||
|
||||
- **Image Processing*
|
||||
|
||||
*
|
||||
|
||||
- Automated image manipulation
|
||||
|
||||
#
|
||||
|
||||
# Template Structure
|
||||
|
||||
Each template includes:
|
||||
|
||||
- **Template File*
|
||||
|
||||
*
|
||||
|
||||
- The n8n workflow JSON
|
||||
|
||||
- **Documentation*
|
||||
|
||||
*
|
||||
|
||||
- Setup instructions and customization guide
|
||||
|
||||
- **Configuration*
|
||||
|
||||
*
|
||||
|
||||
- Environment variables and credentials needed
|
||||
|
||||
- **Examples*
|
||||
|
||||
*
|
||||
|
||||
- Real-world usage scenarios
|
||||
|
||||
- **Customization Guide*
|
||||
|
||||
*
|
||||
|
||||
- How to modify for specific needs
|
||||
|
||||
#
|
||||
|
||||
# Usage Instructions
|
||||
|
||||
1. **Choose a Template*
|
||||
|
||||
*
|
||||
|
||||
- Browse the categories above
|
||||
|
||||
2. **Read Documentation*
|
||||
|
||||
*
|
||||
|
||||
- Review setup requirements
|
||||
|
||||
3. **Configure Credentials*
|
||||
|
||||
*
|
||||
|
||||
- Set up required API keys
|
||||
|
||||
4. **Import to n8n*
|
||||
|
||||
*
|
||||
|
||||
- Load the template into your n8n instance
|
||||
|
||||
5. **Customize*
|
||||
|
||||
*
|
||||
|
||||
- Modify according to your specific needs
|
||||
|
||||
6. **Activate*
|
||||
|
||||
*
|
||||
|
||||
- Test and activate the workflow
|
||||
|
||||
#
|
||||
|
||||
# Best Practices
|
||||
|
||||
#
|
||||
|
||||
## Before Using Templates
|
||||
|
||||
- ✅ Review all credential requirements
|
||||
|
||||
- ✅ Test in development environment first
|
||||
|
||||
- ✅ Understand the workflow logic
|
||||
|
||||
- ✅ Customize for your specific use case
|
||||
|
||||
- ✅ Set up proper error handling
|
||||
|
||||
#
|
||||
|
||||
## Security Considerations
|
||||
|
||||
- 🔒 Never commit API keys to version control
|
||||
|
||||
- 🔒 Use environment variables for sensitive data
|
||||
|
||||
- 🔒 Test workflows with limited permissions first
|
||||
|
||||
- 🔒 Monitor for unusual activity
|
||||
|
||||
- 🔒 Regular security audits
|
||||
|
||||
#
|
||||
|
||||
# Contributing Templates
|
||||
|
||||
We welcome contributions of new templates! Please follow these guidelines:
|
||||
|
||||
1. **Use Clear Naming*
|
||||
|
||||
*
|
||||
|
||||
- Descriptive, searchable names
|
||||
|
||||
2. **Include Documentation*
|
||||
|
||||
*
|
||||
|
||||
- Comprehensive setup guides
|
||||
|
||||
3. **Test Thoroughly*
|
||||
|
||||
*
|
||||
|
||||
- Ensure templates work correctly
|
||||
|
||||
4. **Follow Standards*
|
||||
|
||||
*
|
||||
|
||||
- Use consistent structure and formatting
|
||||
|
||||
5. **Provide Examples*
|
||||
|
||||
*
|
||||
|
||||
- Include real-world use cases
|
||||
|
||||
#
|
||||
|
||||
# Template Development Status
|
||||
|
||||
- ✅ **Communication Templates*
|
||||
|
||||
*
|
||||
|
||||
- 12 templates ready
|
||||
|
||||
- ✅ **Data Processing Templates*
|
||||
|
||||
*
|
||||
|
||||
- 8 templates ready
|
||||
|
||||
- ✅ **E-commerce Templates*
|
||||
|
||||
*
|
||||
|
||||
- 6 templates ready
|
||||
|
||||
- ✅ **Business Process Templates*
|
||||
|
||||
*
|
||||
|
||||
- 10 templates ready
|
||||
|
||||
- ✅ **AI & Automation Templates*
|
||||
|
||||
*
|
||||
|
||||
- 7 templates ready
|
||||
|
||||
**Total Templates Available: 43*
|
||||
|
||||
*
|
||||
|
||||
#
|
||||
|
||||
# Support
|
||||
|
||||
For template support and questions:
|
||||
|
||||
- 📖 Check the documentation in each template folder
|
||||
|
||||
- 🔍 Search existing issues and discussions
|
||||
|
||||
- 💬 Join the community discussions
|
||||
|
||||
- 🐛 Report issues with specific templates
|
||||
|
||||
--
|
||||
|
||||
-
|
||||
|
||||
*Templates are continuously updated and improved based on community feedback and new automation patterns.
|
||||
|
||||
*
|
||||
220
templates/communication/telegram-ai-bot-template.json
Normal file
220
templates/communication/telegram-ai-bot-template.json
Normal file
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"name": "Telegram AI Bot Template",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"updates": [
|
||||
"message"
|
||||
],
|
||||
"additionalFields": {}
|
||||
},
|
||||
"id": "telegram-trigger",
|
||||
"name": "Telegram Trigger",
|
||||
"type": "n8n-nodes-base.telegramTrigger",
|
||||
"typeVersion": 1.1,
|
||||
"position": [
|
||||
240,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "message_text",
|
||||
"value": "={{ $json.message.text }}"
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"value": "={{ $json.message.from.id }}"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"value": "={{ $json.message.from.username || $json.message.from.first_name }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "preprocess-message",
|
||||
"name": "Preprocess Message",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.3,
|
||||
"position": [
|
||||
460,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "system_prompt",
|
||||
"value": "You are a helpful AI assistant. Provide clear, concise, and accurate responses to user questions."
|
||||
},
|
||||
{
|
||||
"name": "temperature",
|
||||
"value": "0.7"
|
||||
},
|
||||
{
|
||||
"name": "max_tokens",
|
||||
"value": "500"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "bot-settings",
|
||||
"name": "Bot Settings",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.3,
|
||||
"position": [
|
||||
680,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "={{ $('preprocess-message').item.json.user_id }}",
|
||||
"action": "typing"
|
||||
},
|
||||
"id": "send-typing",
|
||||
"name": "Send Typing Action",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1.2,
|
||||
"position": [
|
||||
900,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "YOUR_TELEGRAM_BOT_TOKEN",
|
||||
"name": "Telegram Bot API"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"model": "gpt-3.5-turbo",
|
||||
"messages": {
|
||||
"messageValues": [
|
||||
{
|
||||
"content": "={{ $('bot-settings').item.json.system_prompt }}",
|
||||
"role": "system"
|
||||
},
|
||||
{
|
||||
"content": "={{ $('preprocess-message').item.json.message_text }}",
|
||||
"role": "user"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"temperature": "={{ $('bot-settings').item.json.temperature }}",
|
||||
"maxTokens": "={{ $('bot-settings').item.json.max_tokens }}"
|
||||
}
|
||||
},
|
||||
"id": "openai-chat",
|
||||
"name": "OpenAI Chat",
|
||||
"type": "n8n-nodes-base.openAi",
|
||||
"typeVersion": 1.3,
|
||||
"position": [
|
||||
1120,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "YOUR_OPENAI_API_KEY",
|
||||
"name": "OpenAI API"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "={{ $('preprocess-message').item.json.user_id }}",
|
||||
"text": "={{ $('openai-chat').item.json.choices[0].message.content }}"
|
||||
},
|
||||
"id": "send-response",
|
||||
"name": "Send Response",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1.2,
|
||||
"position": [
|
||||
1340,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "YOUR_TELEGRAM_BOT_TOKEN",
|
||||
"name": "Telegram Bot API"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Telegram Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Preprocess Message",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Preprocess Message": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Bot Settings",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Bot Settings": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Typing Action",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Send Typing Action": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "OpenAI Chat",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"OpenAI Chat": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Response",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [],
|
||||
"triggerCount": 1,
|
||||
"updatedAt": "2025-01-27T00:00:00.000Z",
|
||||
"versionId": "1"
|
||||
}
|
||||
470
templates/communication/telegram-ai-bot-template.md
Normal file
470
templates/communication/telegram-ai-bot-template.md
Normal file
@@ -0,0 +1,470 @@
|
||||
|
||||
|
||||
# 🤖 Telegram AI Bot Template
|
||||
|
||||
#
|
||||
|
||||
# Overview
|
||||
A complete Telegram bot template that integrates with OpenAI to provide intelligent responses to user messages. This template demonstrates the most popular communication automation pattern found in the n8n workflows collection.
|
||||
|
||||
#
|
||||
|
||||
# Features
|
||||
|
||||
- ✅ **Real-time messaging*
|
||||
|
||||
* with Telegram integration
|
||||
|
||||
- ✅ **AI-powered responses*
|
||||
|
||||
* using OpenAI GPT models
|
||||
|
||||
- ✅ **Typing indicators*
|
||||
|
||||
* for better user experience
|
||||
|
||||
- ✅ **Message preprocessing*
|
||||
|
||||
* for clean data handling
|
||||
|
||||
- ✅ **Configurable AI settings*
|
||||
|
||||
* (temperature, tokens, system prompts)
|
||||
|
||||
- ✅ **Error handling*
|
||||
|
||||
* and response management
|
||||
|
||||
#
|
||||
|
||||
# Prerequisites
|
||||
|
||||
#
|
||||
|
||||
## Required Credentials
|
||||
|
||||
1. **Telegram Bot Token*
|
||||
|
||||
*
|
||||
|
||||
|
||||
|
||||
- Create a bot via [@BotFather](<https://t.me/botfathe>r)
|
||||
|
||||
- Save your bot token securely
|
||||
|
||||
2. **OpenAI API Key*
|
||||
|
||||
*
|
||||
|
||||
|
||||
|
||||
- Get your API key from [OpenAI Platform](<https://platform.openai.com>/)
|
||||
|
||||
- Ensure you have sufficient credits
|
||||
|
||||
#
|
||||
|
||||
## Environment Setup
|
||||
|
||||
- n8n instance (version 1.0+)
|
||||
|
||||
- Internet connectivity for API calls
|
||||
|
||||
#
|
||||
|
||||
# Installation Guide
|
||||
|
||||
#
|
||||
|
||||
## Step 1: Import the Template
|
||||
|
||||
1. Download `telegram-ai-bot-template.json`
|
||||
|
||||
2. In n8n, go to **Workflows*
|
||||
|
||||
* → **Import from File*
|
||||
|
||||
*
|
||||
|
||||
3. Select the downloaded template file
|
||||
|
||||
#
|
||||
|
||||
## Step 2: Configure Credentials
|
||||
|
||||
#
|
||||
|
||||
### Telegram Bot Setup
|
||||
|
||||
1. In the workflow, click on **Telegram Trigger*
|
||||
|
||||
* node
|
||||
|
||||
2. Go to **Credentials*
|
||||
|
||||
* tab
|
||||
|
||||
3. Create new credential with your bot token
|
||||
|
||||
4. Test the connection
|
||||
|
||||
#
|
||||
|
||||
### OpenAI Setup
|
||||
|
||||
1. Click on **OpenAI Chat*
|
||||
|
||||
* node
|
||||
|
||||
2. Go to **Credentials*
|
||||
|
||||
* tab
|
||||
|
||||
3. Create new credential with your API key
|
||||
|
||||
4. Test the connection
|
||||
|
||||
#
|
||||
|
||||
## Step 3: Customize Settings
|
||||
|
||||
#
|
||||
|
||||
### Bot Behavior
|
||||
Edit the **Bot Settings*
|
||||
|
||||
* node to customize:
|
||||
|
||||
- **System Prompt**: Define your bot's personality and role
|
||||
|
||||
- **Temperature**: Control response creativity (0.0-1.0)
|
||||
|
||||
- **Max Tokens**: Limit response length
|
||||
|
||||
#
|
||||
|
||||
### Example System Prompts
|
||||
```text
|
||||
|
||||
text
|
||||
|
||||
# Customer Support Bot
|
||||
"You are a helpful customer support assistant. Provide friendly, accurate, and concise answers to customer questions."
|
||||
|
||||
# Educational Bot
|
||||
"You are an educational assistant. Help students learn by providing clear explanations, examples, and study tips."
|
||||
|
||||
# Business Assistant
|
||||
"You are a professional business assistant. Provide accurate information about company policies, procedures, and services."
|
||||
```text
|
||||
|
||||
text
|
||||
|
||||
#
|
||||
|
||||
## Step 4: Test and Activate
|
||||
|
||||
1. **Test the workflow*
|
||||
|
||||
* using the test button
|
||||
|
||||
2. **Send a message*
|
||||
|
||||
* to your bot on Telegram
|
||||
|
||||
3. **Verify responses*
|
||||
|
||||
* are working correctly
|
||||
|
||||
4. **Activate the workflow*
|
||||
|
||||
* when satisfied
|
||||
|
||||
#
|
||||
|
||||
# Customization Options
|
||||
|
||||
#
|
||||
|
||||
## Adding Commands
|
||||
To add slash commands (e.g., `/start`, `/help`):
|
||||
|
||||
1. Add a **Switch*
|
||||
|
||||
* node after **Preprocess Message*
|
||||
|
||||
*
|
||||
|
||||
2. Configure conditions for different commands
|
||||
|
||||
3. Create separate response paths for each command
|
||||
|
||||
#
|
||||
|
||||
## Adding Image Generation
|
||||
To enable image generation:
|
||||
|
||||
1. Add an **OpenAI Image Generation*
|
||||
|
||||
* node
|
||||
|
||||
2. Create a command handler for `/image`
|
||||
|
||||
3. Send images via **Telegram Send Photo*
|
||||
|
||||
* node
|
||||
|
||||
#
|
||||
|
||||
## Adding Memory
|
||||
To remember conversation history:
|
||||
|
||||
1. Add a **Memory Buffer Window*
|
||||
|
||||
* node
|
||||
|
||||
2. Store conversation context
|
||||
|
||||
3. Include previous messages in AI prompts
|
||||
|
||||
#
|
||||
|
||||
## Multi-language Support
|
||||
To support multiple languages:
|
||||
|
||||
1. Detect user language in **Preprocess Message*
|
||||
|
||||
*
|
||||
|
||||
2. Set appropriate system prompts per language
|
||||
|
||||
3. Configure OpenAI to respond in user's language
|
||||
|
||||
#
|
||||
|
||||
# Troubleshooting
|
||||
|
||||
#
|
||||
|
||||
## Common Issues
|
||||
|
||||
#
|
||||
|
||||
### Bot Not Responding
|
||||
|
||||
- ✅ Check Telegram bot token is correct
|
||||
|
||||
- ✅ Verify bot is activated in Telegram
|
||||
|
||||
- ✅ Ensure workflow is active in n8n
|
||||
|
||||
#
|
||||
|
||||
### OpenAI Errors
|
||||
|
||||
- ✅ Verify API key is valid and has credits
|
||||
|
||||
- ✅ Check rate limits and usage quotas
|
||||
|
||||
- ✅ Ensure model name is correct
|
||||
|
||||
#
|
||||
|
||||
### Slow Responses
|
||||
|
||||
- ✅ Reduce max_tokens for faster responses
|
||||
|
||||
- ✅ Use GPT-3.5-turbo instead of GPT-4
|
||||
|
||||
- ✅ Optimize system prompt length
|
||||
|
||||
#
|
||||
|
||||
## Performance Optimization
|
||||
|
||||
#
|
||||
|
||||
### Response Speed
|
||||
|
||||
- Use **GPT-3.5-turbo*
|
||||
|
||||
* for faster responses
|
||||
|
||||
- Set **max_tokens*
|
||||
|
||||
* to 200-300 for quick replies
|
||||
|
||||
- Cache frequently used responses
|
||||
|
||||
#
|
||||
|
||||
### Cost Management
|
||||
|
||||
- Monitor OpenAI usage and costs
|
||||
|
||||
- Set token limits to control expenses
|
||||
|
||||
- Use shorter system prompts
|
||||
|
||||
#
|
||||
|
||||
# Security Considerations
|
||||
|
||||
#
|
||||
|
||||
## Data Protection
|
||||
|
||||
- 🔒 **Never log user messages*
|
||||
|
||||
* in production
|
||||
|
||||
- 🔒 **Use environment variables*
|
||||
|
||||
* for API keys
|
||||
|
||||
- 🔒 **Implement rate limiting*
|
||||
|
||||
* to prevent abuse
|
||||
|
||||
- 🔒 **Validate user input*
|
||||
|
||||
* before processing
|
||||
|
||||
#
|
||||
|
||||
## Privacy
|
||||
|
||||
- 🔒 **Don't store personal information*
|
||||
|
||||
* unnecessarily
|
||||
|
||||
- 🔒 **Comply with GDPR*
|
||||
|
||||
* and privacy regulations
|
||||
|
||||
- 🔒 **Inform users*
|
||||
|
||||
* about data usage
|
||||
|
||||
#
|
||||
|
||||
# Use Cases
|
||||
|
||||
#
|
||||
|
||||
## Customer Support
|
||||
|
||||
- Automated customer inquiries
|
||||
|
||||
- FAQ responses
|
||||
|
||||
- Ticket routing and escalation
|
||||
|
||||
#
|
||||
|
||||
## Education
|
||||
|
||||
- Study assistance
|
||||
|
||||
- Homework help
|
||||
|
||||
- Learning companion
|
||||
|
||||
#
|
||||
|
||||
## Business
|
||||
|
||||
- Lead qualification
|
||||
|
||||
- Appointment scheduling
|
||||
|
||||
- Information provision
|
||||
|
||||
#
|
||||
|
||||
## Entertainment
|
||||
|
||||
- Interactive games
|
||||
|
||||
- Storytelling
|
||||
|
||||
- Trivia and quizzes
|
||||
|
||||
#
|
||||
|
||||
# Advanced Features
|
||||
|
||||
#
|
||||
|
||||
## Analytics Integration
|
||||
Add tracking nodes to monitor:
|
||||
|
||||
- Message volume
|
||||
|
||||
- Response times
|
||||
|
||||
- User satisfaction
|
||||
|
||||
#
|
||||
|
||||
## Multi-Channel Support
|
||||
Extend to support:
|
||||
|
||||
- WhatsApp Business API
|
||||
|
||||
- Slack integration
|
||||
|
||||
- Discord bots
|
||||
|
||||
#
|
||||
|
||||
## AI Model Switching
|
||||
Implement dynamic model selection:
|
||||
|
||||
- GPT-4 for complex queries
|
||||
|
||||
- GPT-3.5 for simple responses
|
||||
|
||||
- Custom models for specific domains
|
||||
|
||||
#
|
||||
|
||||
# Support and Updates
|
||||
|
||||
#
|
||||
|
||||
## Getting Help
|
||||
|
||||
- 📖 Check n8n documentation
|
||||
|
||||
- 💬 Join n8n community forums
|
||||
|
||||
- 🐛 Report issues on GitHub
|
||||
|
||||
#
|
||||
|
||||
## Template Updates
|
||||
This template is regularly updated with:
|
||||
|
||||
- New features and improvements
|
||||
|
||||
- Security patches
|
||||
|
||||
- Performance optimizations
|
||||
|
||||
- Compatibility updates
|
||||
|
||||
--
|
||||
|
||||
-
|
||||
|
||||
*Template Version: 1.0
|
||||
|
||||
*
|
||||
*Last Updated: 2025-01-27
|
||||
|
||||
*
|
||||
*Compatibility: n8n 1.0+
|
||||
|
||||
*
|
||||
244
templates/data-processing/google-sheets-automation-template.json
Normal file
244
templates/data-processing/google-sheets-automation-template.json
Normal file
@@ -0,0 +1,244 @@
|
||||
{
|
||||
"name": "Google Sheets Data Processing Template",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "getAll",
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"value": "YOUR_GOOGLE_SHEET_ID",
|
||||
"mode": "id"
|
||||
},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"value": "Sheet1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Sheet1"
|
||||
},
|
||||
"options": {
|
||||
"range": "A:Z"
|
||||
}
|
||||
},
|
||||
"id": "get-sheet-data",
|
||||
"name": "Get Sheet Data",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"typeVersion": 4.4,
|
||||
"position": [
|
||||
240,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
|
||||
"name": "Google Sheets Account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{ $json.length }}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "check-data-exists",
|
||||
"name": "Check Data Exists",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
460,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "// Data processing and transformation logic\nconst data = $input.all();\nconst processedData = [];\n\nfor (const item of data) {\n const row = item.json;\n \n // Example: Clean and transform data\n const processedRow = {\n id: row[0] || '',\n name: row[1] ? row[1].toString().trim() : '',\n email: row[2] ? row[2].toString().toLowerCase() : '',\n status: row[3] || 'pending',\n created_at: new Date().toISOString(),\n processed: true\n };\n \n // Add validation\n if (processedRow.email && processedRow.name) {\n processedData.push(processedRow);\n }\n}\n\nreturn processedData.map(item => ({ json: item }));"
|
||||
},
|
||||
"id": "process-data",
|
||||
"name": "Process Data",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
680,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "appendOrUpdate",
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"value": "YOUR_GOOGLE_SHEET_ID",
|
||||
"mode": "id"
|
||||
},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"value": "Processed",
|
||||
"mode": "list"
|
||||
},
|
||||
"columns": {
|
||||
"mappingMode": "defineBelow",
|
||||
"value": {
|
||||
"id": "={{ $json.id }}",
|
||||
"name": "={{ $json.name }}",
|
||||
"email": "={{ $json.email }}",
|
||||
"status": "={{ $json.status }}",
|
||||
"created_at": "={{ $json.created_at }}",
|
||||
"processed": "={{ $json.processed }}"
|
||||
},
|
||||
"matchingColumns": [],
|
||||
"schema": []
|
||||
},
|
||||
"options": {
|
||||
"useAppend": true
|
||||
}
|
||||
},
|
||||
"id": "write-processed-data",
|
||||
"name": "Write Processed Data",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"typeVersion": 4.4,
|
||||
"position": [
|
||||
900,
|
||||
200
|
||||
],
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
|
||||
"name": "Google Sheets Account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "summary",
|
||||
"value": "Data processing completed successfully"
|
||||
},
|
||||
{
|
||||
"name": "processed_count",
|
||||
"value": "={{ $('process-data').item.json.length }}"
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"value": "={{ new Date().toISOString() }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "create-summary",
|
||||
"name": "Create Summary",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.3,
|
||||
"position": [
|
||||
1120,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"message": "Data processing completed. Processed {{ $('create-summary').item.json.processed_count }} records at {{ $('create-summary').item.json.timestamp }}"
|
||||
},
|
||||
"id": "log-completion",
|
||||
"name": "Log Completion",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1340,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"message": "No data found in the source sheet. Please check the data source."
|
||||
},
|
||||
"id": "handle-no-data",
|
||||
"name": "Handle No Data",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
680,
|
||||
400
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Get Sheet Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Check Data Exists",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Check Data Exists": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Process Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Handle No Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Process Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Write Processed Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Write Processed Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create Summary",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Summary": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Log Completion",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [],
|
||||
"triggerCount": 0,
|
||||
"updatedAt": "2025-01-27T00:00:00.000Z",
|
||||
"versionId": "1"
|
||||
}
|
||||
Reference in New Issue
Block a user