Trigger Then Archive Feed Message
A 3-step recipe with Knock. We can help you get access.
Recipe · 3 steps
Trigger Then Archive Feed Message
with Knock
Works with AI assistants
Trigger a workflow, locate the message, and archive it.
- Trigger the workflow for the recipient to produce an in-app message.
- List the most recent message for the tenant so the generated message can be archived.
- Archive the message so it is hidden from the default feed list while remaining accessible for later unarchiving.
What you'll need to have ready
- apiKey: Knock secret API key (sk_...) used as a Bearer token.
- workflowKey: The key of the workflow to trigger.
- recipientId: The user id to trigger the workflow for.
- tenant: Optional tenant id used to scope the message lookup.
- data: Optional data payload passed into the workflow run.
For your developer
Arazzo workflow knock-app:trigger-then-archive-feed-message, 3 operations: {$sourceDescriptions.workflowsApi.url}#/paths/~1v1~1workflows~1{key}~1trigger/post → listMessages → archiveMessage. Specs on APIs.io.