Nostr Damus Monitor and Analysis

This workflow monitors and analyzes Nostr posts with the #damus hashtag, delivering daily reports via Gmail and Telegram. Key nodes include Webhook Trigger (receives requests), Daily Schedule (triggers at 9 AM), Manual Trigger (manual runs), Read Nostr Posts (fetches posts), Check if Posts Found (validates data), Aggregate Posts (collects content), Analyze Damus Posts (uses OpenAI for analysis), Prepare Report Data (formats results), Convert to HTML (creates report), Send Gmail/Telegram Report (sends outputs), and Success/No Posts Response (returns results). It uses Nostr Relay, OpenAI, Gmail, and Telegram APIs.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Obtain a Nostr Relay API key from your relay provider’s dashboard (e.g., nostr-relay.com). Get an OpenAI API key from platform.openai.com (Account > API Keys). Set up Gmail credentials in n8n (OAuth2 via Google Cloud Console, enable Gmail API). Create a Telegram bot via BotFather (t.me/BotFather) to get a token and chat ID. In n8n, configure credentials: Nostr Relay (API Key), OpenAI (API Key), Gmail (OAuth2), Telegram (Bot Token, Chat ID). Set the webhook path in Webhook Trigger (e.g., damus-monitor). Configure your application to send POST requests to n8n’s webhook URL (displayed in the node). Handle errors like invalid API keys (401: Unauthorized) or no posts (404: No posts found).\n\nTesting and Deployment: Import the JSON into n8n. Test manually via Manual Trigger or send a POST request to the webhook URL. Verify Read Nostr Posts fetches #damus posts and check if Posts Found routes correctly. Confirm Analyze Damus Posts generates a markdown analysis, and Prepare Report Data formats it. Check Send Gmail/Telegram Report delivers reports, and Success Response returns status 200. Test with an invalid Nostr API key to trigger No Posts Response (404). Monitor logs for rate limits (429: Too many requests) or authentication errors (401). If reports fail, verify API keys and relay connectivity. Activate the workflow in n8n for daily 9 AM runs and ensure the webhook is live. Deploy for automated Nostr monitoring and reporting.

$6.99

Workflow steps: 15

Integrated apps: manualTrigger, scheduleTrigger, webhook

Nostr Damus Monitor and Analysis preview