Kogno
  • Introduction
  • Getting Started
    • Configuration
    • Starting the Server
    • Messenger Configuration
    • Telegram Configuration
    • WhatsApp Configuration
    • NLP Configuration
  • Conversation Class
  • Contexts
    • Blocks
      • before_anything
      • postback
      • deep_link
      • command
      • any_attachment
      • regular_expression
      • keyword
      • any_number
      • any_text
      • intent
      • entity
      • membership
      • recurring_notification
      • everything_else
      • after_all
    • Sub Contexts
    • Routing
    • Sequences
    • Conversational Forms
  • Replies / Notifications
    • text
    • button
    • quick_reply
    • raw
    • list
    • carousel
    • url
    • typing
    • image
    • video
    • html
    • markdown
    • contact
    • location
    • recurring_notification_request
    • messenger_generic_template
    • whatsapp_template
  • Templates
  • Models
    • User model
  • Scheduled Messages
  • Telegram Inline Query
  • Command Line
  • Global Methods
  • Internationalization
Powered by GitBook
On this page
  • whatsapp_template(name=String, components=Array, language=String)
  • Platforms
  • Usage
  • On Demand
  • Params

Was this helpful?

  1. Replies / Notifications

whatsapp_template

Allows the creation of messages from WhatApp Templates.

Previousmessenger_generic_templateNextTemplates

Last updated 2 years ago

Was this helpful?

whatsapp_template(name=String, components=Array, language=String)

Create a template

In order to create a WhatsApp Template, .

Platforms

Platform
Supported

Messenger

WhatsApp

Telegram

Usage

@reply.whatsapp_template("hello_world")

On Demand

user = User.first
user.notification.whatsapp_template(
  "sample_issue_resolution",
  [
    {
      type: :body,
      parameters: [
        {
          type: :text,
          text: "Martín"
        }
      ]
    }
  ] 
)
user.send

Params

Name
Description

name String

Required.

Name of the template.

components Array

language String

Optional. Contains a language object. Specifies the language the template may be rendered in. By default: "en_US".

Optional. Array of components objects containing the parameters of the message. .

Learn more about WhatsApp Templates in the .

read this guide
official documentation
Read more