You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Live Activities can include a primary action button. `secondary_action` adds a secondary button for `alert`, `progress`, and `segmented_progress` Live Activities, using the same `open_url`, `shortcuts://`, and `webhook` payload shapes as `action`.
326
+
Live Activities can include an action button.
327
327
328
328
-`open_url`: open an HTTPS URL.
329
-
-`open_url` with a `shortcuts://run-shortcut?name=...` URL: run a specific iPhone Shortcut, for example to open an app.
329
+
-`open_url` with a `shortcuts://` URL: run an Apple Shortcut, for example to open an app.
alt="Alert Live Activity with primary and secondary action buttons"
413
+
width="680"
414
+
/>
415
+
</p>
416
+
417
+
Use `secondary_action` when you want a second button beside the primary `action`.
418
+
419
+
The secondary action button is supported for `alert`, `progress`, and `segmented_progress` Live Activities. Both buttons use the same `open_url`, `webhook`, and Apple Shortcut payload shapes.
420
+
421
+
```python
422
+
activitysmith.live_activities.stream(
423
+
"agent-approval",
424
+
content_state=content_state(
425
+
title="Approval Needed",
426
+
message="Should I send the follow-up email to Brightlane?",
0 commit comments