GreenBubble icon

GreenBubble

Interact with the GreenBubble WhatsApp automation platform

Campaign → Create Campaign

AI-generated

Summary

Create a GreenBubble broadcast campaign using an approved WhatsApp template, selecting all contacts, specific phone numbers, or contacts with specified tags. Optional template variable mappings and a media URL are included when provided.

Inputs

  • Campaign Name (required) — Name for the campaign.
  • WABA ID (required) — WhatsApp Business Account ID.
  • Template Name (required) — Name of the approved template to broadcast.
  • Recipient Type (required) — Choose all contacts, specific contacts, or tags.
  • Contact Numbers — For specific contacts, provide a JSON array of phone numbers. Included in the request only when the array is non-empty.
  • Tag IDs — For tag recipients, provide a JSON array of tag IDs. Included in the request only when the array is non-empty.
  • Variables Mapping — JSON object mapping template variable keys to values, such as {"1":"John"}. Included only when non-empty.
  • Media URL — Optional media URL for media templates; included only when non-empty.

Output shape

One or more items containing the API response data.

If the response contains an array under data, contacts, or campaigns, each array element is returned as a separate item; otherwise the full response is returned as one item. Requires GreenBubble API credentials.

Links

Discussion