Skip to content

Instantly share code, notes, and snippets.

@ChakshuGautam
Last active September 2, 2024 09:37
Show Gist options
  • Save ChakshuGautam/e638b412f24cc6b7dffa1113a8c5f4bc to your computer and use it in GitHub Desktop.
Save ChakshuGautam/e638b412f24cc6b7dffa1113a8c5f4bc to your computer and use it in GitHub Desktop.

Campaign vs Bot

Campaign | Managed by Broadcast Service | Track

  • Segment[]
  • name, desc
  • notification configuration | JSON
  • botID

Segment | Managed by Broadcast Service

  • name=AllUsers
  • users[]

Flow

Trigger a Notification for UserSegment Loop over user for segment AllUsers (Campaign)(Segment) || Broadcast Service

  • create a Bot | @chinmoy to share the Bot CURL
  • inbound request | notification configuration => Logic Def
  • Orchestrator (Can be a Pass Through)
  • Transformer => Packet for FCM
  • Outbound (FCM Adapter) => FCM API to send to a single user

Created when a bot is created or do it manually thorugh an API. Bot Definition

Bot | Back and forth communication

  • Delivery of messages | Channel Agnostic
  • Tracking
  • Permanent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment