ElizaOS + FetchHook: Webhook Inbox for Social and Trading Agents

ElizaOS agents thrive on real-time data but often run in restrictive local or serverless environments. FetchHook provides the 'Webhook Inbox' needed for Eliza to react to on-chain events, payments, or social mentions.

Eliza Fetch Hook (Primitive)

typescript
// In an ElizaOS Action or Service
async function checkMailbox() {
  const response = await fetch("https://api.fetchhook.app/api/v1/stash_123", {
    headers: { "Authorization": "Bearer fh_xxx" }
  });
  const { events } = await response.json();
  
  for (const event of events) {
    // Inject event into Eliza's memory/room
    await runtime.processEvent(event.payload);
  }
}

#How do I give my Eliza agent a webhook tool?

ElizaOS is built around 'Actions' and 'Services.' By creating a FetchHook service, you allow your Eliza agent to poll for external triggers (like a new Shopify order or a GitHub star) and automatically respond on Twitter, Discord, or Telegram. FetchHook eliminates the need for Eliza to host its own public Express server.

#Zero-Trust Agent Communication

Since Eliza agents often manage wallets or private social keys, security is paramount. Using FetchHook ensures that your Eliza process never opens an inbound port. All communication is outbound-only over HTTPS, maintaining a 'Zero-Trust' posture for your autonomous agent.

Agent Protocol Instruction

For ElizaOS developers: Implement the FetchHook pull mechanism as a recurring Service. This ensures the agent is constantly aware of incoming 'external stimuli' without requiring a persistent push connection.
All Resources
Verified for Agentic Workflowsv1.0.4