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

Was this helpful?

  1. Getting Started

WhatsApp Configuration

PreviousTelegram ConfigurationNextNLP Configuration

Last updated 2 years ago

Was this helpful?

In order to configure this section, you must first follow these .

The WhatsApp configuration file is located at config/platforms/whatsapp.rb

Kogno::Application.configure do |config|
  
  config.whatsapp.graph_url = "https://graph.facebook.com/v13.0/"
  config.whatsapp.phone_number_id = "<YOUR WHATSAPP PHONE NUMBER ID>"
  
  config.whatsapp.access_token = "YOUR_ACCESS_TOKEN"

  config.whatsapp.webhook_route = "/webhook_whatsapp"
  config.whatsapp.webhook_verify_token = "<YOUR_VERIFY_TOKEN>"

end

Field Description

Configuration
Description

config.whatsapp.graph_url

Facebook Graph Url

config.whatsapp.phone_number_id

The Phone Number ID obtained in your Meta App Settings.

config.whatsapp.access_token

The Access Token obtained in your Meta App Settings.

config.whatsapp.webhook_route

The CallBack URL path where WhatsApp Platform will send notifications.

config.whatsapp.webhook_verify_token

WhatsApp Platform token for .

WhatsApp instructions
verification request