Learning Timeline
Key Insights
Advantages of Self-Hosting for AI
By self-hosting n8n on your own VPS, you have no 'workflow execution' limits like cloud plans, making it much more cost-effective for heavy Generative AI applications.
API Security Warning
Ensure your n8n domain uses HTTPS (SSL) before entering any sensitive API Keys (OpenAI/Stripe) to prevent data theft.
Prompts
System Prompt for n8n AI Agent
Target:
OpenAI Node / AI Agent
You are a helpful assistant integrated into an n8n workflow. Use the provided tools to answer the user's request accurately. If you don't know the answer, state that you need more information.
Step by Step
Subscribing to Hostinger VPS and Selecting the n8n Template
- Visit the Hostinger website and choose a VPS plan (KVM 2 or higher is recommended).
- Complete the payment process and log in to your Hostinger Dashboard.
- Click the 'Setup' button on your newly purchased VPS plan.
- Select the server 'Location' closest to your target audience (e.g., Singapore).
- Choose 'Select OS' and search for the 'Applications' category.
- Select the 'n8n' template (usually powered by Docker on Ubuntu).
- Enter a strong 'Server Password' and save it for future reference.
- Click 'Finish Setup' and wait until the server status shows as 'Running'.
Configuring Domain and SSL for n8n
- Copy your VPS 'IP Address' from the Hostinger Dashboard.
- Go to the 'Domain' or DNS Management section where your domain is registered.
- Add a new 'A Record': Enter '@' or a subdomain (e.g., 'n8n') and paste the 'IP Address'.
- Return to the Hostinger VPS Dashboard and click on the 'Settings' tab.
- Look for the 'Panel Access' section or click the 'Login' button for the administrative panel provided in the template.
- Follow the on-screen instructions to enter your domain so the system can automatically generate an SSL (https) via Let's Encrypt.
Integrating Generative AI (OpenAI/Claude) in n8n
- Open your n8n dashboard and click 'Create New Workflow'.
- Press the '+' button, then search for and select the 'OpenAI' or 'Anthropic' (Claude) node.
- Within the node settings, click 'Create New Credential'.
- Paste the 'API Key' you obtained from the respective AI platform.
- Use the 'AI Agent' or 'Chain' node to combine the AI model with external data.
- Connect a 'Chat Trigger' node so you can interact with the AI directly through the n8n interface.