
Live Activities can now include a secondary action button beside the primary action.
This is useful for AI agent approvals, operational prompts, and webhook-driven workflows where you need to choose between two actions, like approving or denying an AI agent step, sending or cancelling an outreach message, retrying or pausing a job, or acknowledging or escalating an alert.
secondary_action field, supported for alert, progress, and segmented_progress Live Activities.open_url, webhook, and Apple Shortcut payload shapes.content_state.color to change the tint for both action buttons.This example shows an approval prompt with two webhook buttons. The body can contain whatever your backend needs, or it can be empty.
await activitysmith.liveActivities.stream("agent-approval", { content_state: { title: "Approval Needed", message: "Should I send the follow-up email to Brightlane?", type: "alert", color: "green", icon: { symbol: "sparkles", color: "green", }, badge: { title: "Agent", color: "green", }, }, action: { title: "Send", type: "webhook", url: "https://agent.example.com/live-activity/approve", method: "POST", body: { approval_id: "approval_01JY3J7Q9S0P8M1V5PZK7DR4M2", decision: "send", }, }, secondary_action: { title: "Deny", type: "webhook", url: "https://agent.example.com/live-activity/deny", method: "POST", body: { approval_id: "approval_01JY3J7Q9S0P8M1V5PZK7DR4M2", decision: "deny", }, },});Available now across the API, SDKs, and CLI.
This feature is available in the ActivitySmith iOS app version 1.12.0 and newer.
Start your free trial. No credit card required. Cancel anytime.