Merge Users and Re-notify
A 3-step recipe with Knock. We can help you get access.
Recipe · 3 steps
Merge Users and Re-notify
with Knock
Works with AI assistants
Identify a surviving user, merge a duplicate in, and trigger a workflow.
- Upsert the surviving user so the merge target exists with current properties.
- Merge the duplicate user (from_user_id) into the surviving user so all data consolidates onto a single record.
- Trigger the workflow for the consolidated user so notifications resume against the surviving record.
What you'll need to have ready
- apiKey: Knock secret API key (sk_...) used as a Bearer token.
- userId: The id of the surviving user to merge into.
- email: The primary email address to set on the surviving user.
- fromUserId: The id of the duplicate user to merge from.
- workflowKey: The key of the workflow to trigger after the merge.
- data: Optional data payload passed into the workflow run.
For your developer
Arazzo workflow knock-app:merge-users-and-renotify, 3 operations: identifyUser → mergeUser → {$sourceDescriptions.workflowsApi.url}#/paths/~1v1~1workflows~1{key}~1trigger/post. Specs on APIs.io.