Skip to content

Commit 91abe96

Browse files
committed
docs: align webhook action screenshot
1 parent 8a3dc97 commit 91abe96

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ activitysmith.live_activities.end(
473473

474474
### Live Activity Action
475475

476-
Just like Actionable Push Notifications, Live Activities can have a button that opens a URL in a browser or triggers a webhook. Webhooks are executed by the ActivitySmith backend.
476+
Just like Actionable Push Notifications, Live Activities can have a button that opens provided URL in a browser or triggers a webhook. Webhooks are executed by the ActivitySmith backend.
477477

478478
<p align="center">
479479
<img src="https://cdn.activitysmith.com/features/metrics-live-activity-action.png" alt="Metrics Live Activity with action" width="680" />
@@ -506,26 +506,27 @@ activity_id = start.activity_id
506506

507507
#### Webhook action
508508

509+
<p align="center">
510+
<img src="https://cdn.activitysmith.com/features/live-activity-with-action.png?v=20260319-1" alt="Live Activity with action" width="680" />
511+
</p>
512+
509513
```python
510514
activitysmith.live_activities.update(
511515
{
512516
"activity_id": activity_id,
513517
"content_state": {
514-
"title": "Server Health",
515-
"subtitle": "prod-web-1",
516-
"type": "metrics",
517-
"metrics": [
518-
{"label": "CPU", "value": 91, "unit": "%"},
519-
{"label": "MEM", "value": 57, "unit": "%"},
520-
],
518+
"title": "Reindexing product search",
519+
"subtitle": "Shard 7 of 12",
520+
"number_of_steps": 12,
521+
"current_step": 7,
521522
},
522523
"action": {
523-
"title": "Restart Service",
524+
"title": "Pause Reindex",
524525
"type": "webhook",
525-
"url": "https://ops.example.com/hooks/servers/prod-web-1/restart",
526+
"url": "https://ops.example.com/hooks/search/reindex/pause",
526527
"method": "POST",
527528
"body": {
528-
"server_id": "prod-web-1",
529+
"job_id": "reindex-2026-03-19",
529530
"requested_by": "activitysmith-python",
530531
},
531532
},

0 commit comments

Comments
 (0)