Use casesWorks with

Save to Context Engine from a Zap

A Zap saves to Context Engine with a Webhooks by Zapier POST action: send JSON to https://app.contextengine.com/tool/write with an Authorization header carrying a Context Engine key, and name the engine, the type and a title in the Data fields.

What it does

Plenty of what a team should remember starts in another app: a form reply, a won deal, a closed ticket. A Zap can save it into an engine as it happens, where people read it in the app and every connected AI tool finds it the next time it is asked.

Make a key

  1. In Context Engine, open AI tools, then Connect an AI tool, and choose Your own code.
  2. Press Create my key for a key that acts as you, with the engine at Can read and save. Or, on an engine you own or manage, choose Another kind of key, then Engine key, choose the engine under Belongs to, set Can read and save and press Create key: an engine key belongs to the engine and shows as “Engine key”.
  3. Copy the key. It is shown once.

Add the action in Zapier

  1. In the Zap editor, click +, choose Webhooks by Zapier, and pick POST as the event.
  2. Set Payload Type to JSON and URL to https://app.contextengine.com/tool/write.
  3. Under Data, add engine (your engine’s slug), type (for example note), title and body, mapping values from the trigger. A double underscore nests a field, so fields__due_at sets a task’s due date.
  4. Under Headers, add Authorization with the value Bearer followed by the key.
  5. Test the step. The memory appears in Memories, saved by the key.

Zapier’s steps are from its own help: Send webhooks in Zaps.

Taking access away

Use one key per Zap. Revoke it on AI tools and the Zap’s calls are refused from then on, while everything else keeps working.

Questions

What does Zapier need for this?

The Webhooks by Zapier app, which is not on every Zapier plan; Zapier's own help page says which. On the Context Engine side it needs one key, made under Connect an AI tool, Your own code.

Why was a save refused as title taken?

A title already used in that engine is refused. Put something unique from the trigger in the title, such as the date or the record's name, or edit the existing memory instead.

Will a Zap that runs twice save twice?

Not if you add an idem field with the trigger's ID: the same idem value never writes twice.

In the help