# Webhook Automation Guide KEY CONTEXT: Practical patterns for using Synapse webhooks to automate workflows. Covers logging, summarization, external tool integration, sync to note-taking apps, and monitoring. Events: memory.created, memory.updated, memory.deleted, memory.verified, memory.unverified, task.updated, chat.message_sent. Webhook Automation Guide Practical patterns for automating workflows with Synapse webhooks. Pattern 1: Memory Log Log every new memory to a file or external service. Setup [CODE BLOCK] Explanation The handler listens for events and logs each new memory's key and a content preview to a file. This is useful for auditing, debugging, or creating a secondary backup of important memories. Pattern 2: Memory Summary Summarize new memories using an LLM and store the summary. Setup [CODE BLOCK] Explanation This pattern captures both and events, sends the content to an LLM for summarization, and stores the result. Useful for maintaining a condensed knowledge base. Pattern 3: Sync to Note-Taking App Forward new memories to Notion, Obsidian, or similar tools. Setup [CODE BLOCK] Explanation This pattern forwards each new memory to a Notion database, preserving the key as the title, content as a text property, and category as a select field. Adapt the API call for Obsidian, Logseq, or other tools. Pattern 4: Monitoring & Alerting Get notified when memories are deleted or when tasks fail. Setup [CODE BLOCK] Explanation This pattern monitors for and events. When a memory is deleted or a task fails, it triggers an alert. Useful for monitoring and ensuring data integrity. Pattern 5: Chat Message Relay Forward chat messages to an external system for logging or analysis. Setup [CODE BLOCK] Explanation This pattern listens for events and forwards them to an external logging or analysis system. Useful for conversation analytics, compliance logging, or integration with CRM systems.