Weekend digests

Create a personalized WhatsApp weekend digest

Batch relevant recommendations into one timely message, attach the facts behind each item and keep follow-up answers grounded in the same snapshot.

Level
Intermediate
Time
16 minutes
Stack
Scheduler · HTTP · Webhooks
Scheduled digest pipeline with recommendations and WhatsApp replies
The production boundary used throughout this tutorial.
01

Define the delivery window

Store each recipient’s timezone and consented schedule. Compute the next send in UTC and protect the job with a unique recipient-period key so overlapping workers cannot send twice.

02

Select a bounded recommendation set

Rank candidates before calling ChatRail and cap the result count. Record the selection timestamp so later answers can distinguish the original snapshot from current availability.

03

Attach explainable context

Include stable IDs, concise reasons, URLs and observation times. Avoid passing full profiles, hidden ranking features or data that the recipient does not need.

digest-context.json
{
  "digest_id": "wk-2026-37-user-42",
  "generated_at": "2026-09-12T14:00:00Z",
  "items": [
    {"id":"evt-81","title":"Riverside market",
     "starts_at":"2026-09-13T10:00:00-04:00"}
  ]
}
04

Compose for scanning

Lead with the most relevant item, keep each entry short and provide a clear way to ask for details or opt out. One useful digest is better than several fragmented alerts.

05

Answer against the correct snapshot

Resolve the reply to the digest and item before answering. If time-sensitive facts may have changed, call a narrow availability tool or clearly state when the data was observed.

Freshness is part of correctness.

Do not present an old event time, price or availability value as current.

06

Test timing, consent and load

Simulate timezone boundaries, daylight-saving changes, a withdrawn item and a scheduler retry. Load-test in batches and respect provider and workspace limits.

  • One digest per period
  • Opt-outs stop future jobs
  • Stale facts are identified
  • Batch concurrency is bounded
STRAIGHT ANSWERS

Questions before you build?

Start with the documentation or review the practical answers below.

Is ChatRail the official Meta Cloud API?

No. ChatRail uses a WhatsApp Linked Devices session. Review the transport trade-offs before production use.

Can I use it without AI?

Yes. Sending, delivery tracking and webhooks work without enabling AI.

Where should I start?

Use the Quickstart for your first request, then choose a workflow tutorial.