Class WhatsappWorkflow

All Implemented Interfaces:
Jsonable

public final class WhatsappWorkflow extends Workflow
Defines properties for sending a verification code to a user over a WhatsApp message.

You must have a WhatsApp Business Account configured to use the from field, which is now a requirement for WhatsApp workflows.

  • Constructor Details

    • WhatsappWorkflow

      Deprecated.
      This no longer works and will be removed in a future release.
      Constructs a new WhatsApp verification workflow.
      Parameters:
      to - The number to send the message to, in E.164 format.
    • WhatsappWorkflow

      public WhatsappWorkflow(String to, String from)
      Constructs a new WhatsApp verification workflow with a custom sender number.
      Parameters:
      to - The number to send the message to, in E.164 format.
      from - The WhatsApp Business Account number to send the message from, in E.164 format.
  • Method Details