Skip to content

Commit c5d4c0d

Browse files
committed
docs: add realistic push redirection/actions examples
1 parent ea24358 commit c5d4c0d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,25 @@ response = activitysmith.notifications.send(
4444
{
4545
"title": "New subscription 💸",
4646
"message": "Customer upgraded to Pro plan",
47-
"channels": ["devs", "ops"], # Optional
47+
"redirection": "https://crm.example.com/customers/cus_9f3a1d", # Optional
48+
"actions": [ # Optional (max 4)
49+
{
50+
"title": "Open CRM Profile",
51+
"type": "open_url",
52+
"url": "https://crm.example.com/customers/cus_9f3a1d",
53+
},
54+
{
55+
"title": "Start Onboarding Workflow",
56+
"type": "webhook",
57+
"url": "https://hooks.example.com/activitysmith/onboarding/start",
58+
"method": "POST",
59+
"body": {
60+
"customer_id": "cus_9f3a1d",
61+
"plan": "pro",
62+
},
63+
},
64+
],
65+
"channels": ["sales", "customer-success"], # Optional
4866
}
4967
)
5068

0 commit comments

Comments
 (0)