Skip to Content

Features

Listen for webhooks

Receive webhooks from the tools you already use and capture them as memories.

Support desks, billing systems, and CRMs already send webhooks when something happens. listen runs a small receiver in your process and captures each webhook as a memory.

Listen for webhooks when...

  • A tool you use can send webhooks, and what it sends is worth remembering.
  • You'd rather not build and host a webhook receiver yourself.

Availability

SDKAvailable
PythonYes
TypeScriptNo. Call capture from your own webhook route.

Set it up

import os
from docklee import Dock

dock = Dock()
dock.listen(
    port=8080,
    secret=os.environ["WEBHOOK_SIGNING_SECRET"],
)

listen runs in a background thread, so the call returns at once. Point the tool's webhook URL at this port.

Options

OptionDefaultDescription
port8080The port to receive webhooks on.
secretnoneThe signing secret used to verify each webhook.
parsersnoneA map from source name to the parser module that turns its payload into text.

Always set secret, so webhooks that weren't sent by your tool are rejected. Expose the port only to the tools that send to it.

Next steps

Your tools are feeding memory. Learn how people review what's stored next.

On this page