← Back to changelog
Jun 16, 2026

Secondary Action Button for Live Activities

Alert Live Activity with primary and secondary action buttons

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.

What's New

  • New optional secondary_action field, supported for alert, progress, and segmented_progress Live Activities.
  • Both buttons use the same open_url, webhook, and Apple Shortcut payload shapes.
  • Use content_state.color to change the tint for both action buttons.

Example

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",
},
},
});

Availability

Available now across the API, SDKs, and CLI.

This feature is available in the ActivitySmith iOS app version 1.12.0 and newer.

Ready to bring ActivitySmith into your workflow?

Start your free trial. No credit card required. Cancel anytime.