Control SwitchBot devices via chat with OpenRouter AI
Control SwitchBot Devices with AI via Chat
What this workflow does: This workflow lets you control your SwitchBot smart home devices using natural language chat. Tell the AI what you want to do (e.g. "turn off the living room light"), and it will look up your devices, generate the correct SwitchBot API command, and send it automatically.
Workflow steps: When chat message received — triggered by a user message in the n8n chat interface Set Credentials — stores your SwitchBot API token and secret Get Auth — generates a signed authentication header using HMAC-SHA256 Get Device List — fetches all registered devices from the SwitchBot API Generate API Request with AI — the AI reads the device list and user request, then generates the correct API URL and body Send Device Command — sends the POST request to SwitchBot to execute the command
Requirements: SwitchBot account with API token and secret OpenRouter API credentials (or swap for any compatible LLM)
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments