Background Tasks
Create workflow
Create workflow posts a draft named Follow up when a promise slips. It runs in the cloud, starts when a communication event matches, and stays inactive. The stored workflow keeps that name, the address follow-up-when-a-promise-slips, those instructions and triggers, cloud execution, revision 1, and schedule sync paused.
post/v1/background-tasks
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/background-tasks
- Auth: HTTP bearer
Request body
Example request
{
"active": true,
"createdAt": "2026-06-04T20:38:00Z",
"executionTarget": "desktop",
"instructions": "Summarize important account changes and draft follow-up notes.",
"lastAttemptAt": "2026-06-04T21:00:00Z",
"lastRunAt": "2026-06-04T21:02:00Z",
"lastRunId": "run-20260604-210000",
"lastRunSummary": "No high-priority account changes.",
"model": "openai/gpt-4.1-mini",
"name": "Daily Account Summary",
"provider": "openai",
"slug": "daily-summary",
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
}
}Response
Stored workflow.
Example response
{
"active": true,
"createdAt": "2026-06-04T20:38:00Z",
"executionTarget": "desktop",
"id": "123e4567-e89b-12d3-a456-426614174000",
"instructions": "Summarize important account changes.",
"lastAttemptAt": "2026-06-04T21:00:00Z",
"lastRunAt": "2026-06-04T21:02:00Z",
"lastRunId": "run-20260604-210000",
"lastRunSummary": "No high-priority account changes.",
"model": "openai/gpt-4.1-mini",
"name": "Daily Account Summary",
"provider": "openai",
"revision": 2,
"scheduleSyncState": "current",
"scheduleSyncedAt": "2026-06-04T20:39:00Z",
"slug": "daily-summary",
"templateSlug": "relationship-refresh",
"templateVersion": 1,
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
},
"updatedAt": "2026-06-04T20:39:00Z"
}Changes
No operation changes recorded.