Picky Assist Help Desk
Main WebsiteBlogFacebook Community
Picky Assist Help Desk
Picky Assist Help Desk
  • Welcome To Picky Assist 🙏
  • Setting Up Guide
    • Sending First Message
    • Connecting Channels
      • WhatsApp Web Automation to Official API Migration Guide 2024
      • Connecting WhatsApp Web Automation
      • Connecting Facebook Messenger
        • Introduction
        • Getting Start
        • Guidelines & Compliances
        • Messenger Link
      • Connecting WhatsApp Official
        • Introduction
        • Dashboard
        • Profile
        • Templates
      • Connecting WhatsApp Cloud API
      • WhatsApp Official Managed Service
      • Connecting Instagram
      • Phone Bridge (Call Blaze)
      • Connecting SMTP
      • Connecting Amazon SES
      • Connecting Sendgrid
      • Connecting Additional WhatsApp Numbers
      • Porting WhatsApp Number to Picky Assist
      • WhatsApp Official Message Delivery Issues & Solutions
    • Working With Prebuilt CRM Modules
      • Introduction
      • Onboarding
      • Modules
        • Leads
        • Deals
        • Meetings
        • Company
        • Support Cases
        • System Modules
          • Contacts
          • Notes
          • Task
          • Call Logs
          • Tags
          • Activity Logs
      • Automations
        • Workflows
        • Chatbots
        • Funnels
        • Connectors
        • Scheduler
        • Other Prebuilt Features
      • Reports and Dashboard
      • Mandatory Preconditions for Using Prebuilt
      • Testing Prebuilt
    • Managing Organization
    • Setting Up Teambox
      • Introduction
      • Routing Rules
      • Teambox
      • Inbox View
      • Organization Hierarchy
      • Analytics
    • Setting Up Smart Replies
      • Introduction
      • Train Module
        • Training Bot Introduction
        • Topics / Categories
        • Intent & Context
        • Question Variations
        • Uploading Bulk Questions
        • Reply with Media Files
        • Personalising Replies
        • Smart Actions
        • Direct URL
        • Fall Back Response
        • Small Talks
        • Testing the Bot
        • Publishing Bot
      • ChatGPT Integration
      • Learn Module
      • Stats Module
      • Deep Linking
      • Settings
    • Smart Reply V2
      • Introduction
      • ChatGPT Integration
      • Train Module
        • Training Bot Introduction
        • Topics / Categories
        • Intent & Context
        • Question Variation
        • Uploading Bulk Questions
        • Reply with Media Files
        • Personalizing Replies
        • Smart Actions
        • Direct URL
        • Fall Back Response
        • Small Talks
        • Publishing Bot
      • Learn Module
      • Stats Module
      • Deep Linking
      • Settings
    • Setting Up Broadcaster
      • Introduction
      • Creating a Campagin
      • Sending Message to WhatsApp Groups
      • Reports
      • Broadcaster V2
        • Introduction
        • Creating Campaign
        • Reports
    • Setting Up Sequence
      • Introduction
      • Creating New Sequence
      • Sequence Stats
      • Subscribe & Unsubscribe
      • Disabling Sequence Message
    • Setting Up Reminder
    • Setting Up Mobile App
    • Setting Up Connector
      • Introduction
      • Getting Started
      • Steps
        • Introduction
        • Filters
        • Delay
        • Iterator
        • Stats
      • Actions
      • Formatter
        • Date & Time
        • Counter
        • Math Calculation
        • Data Parser
        • Convert File
        • Line Items
      • Building Mini App
      • Email Parser
      • Data Storage
      • Simulate Test
      • Connector Logs
    • Email Builder
    • Setting Up Flow Builder
      • Fundamentals (Must Read)
      • Basic Terminology (Must Read)
      • Guide to Building an Effective Chatbot (Must Read)
      • Create, Manage, Test & Publish Flows
      • Triggering a Chatbot Flow
      • Steps
        • Introduction (Must Read)
        • Send Message
        • Ask A Question
        • Filter
        • Save Data
        • Actions
        • Check WhatsApp Session
        • Delay
        • Smart Delay
        • Formatter
        • Splitter
        • Data Lookup
        • Trigger HTTP API
        • Webhook
        • Apps
        • Match Keywords
        • Route to Chatbot
        • End
      • Saving Data into CRM
      • Analytics
      • Integrations
      • Flow Builder logs and conversational logs
      • Chatbot Best Practices, Ideas & FAQ
    • Setting up Modular CRM
      • Fundamentals (Must Read)
      • Guide to Building and Implementing a Modular CRM (Must Read)
      • Create & Manage Data Modules
      • CRM Macro Buttons
      • Adding Records into CRM
      • Data View & Manage Records
      • Task
      • Workflows
      • Funnels
      • Data Import
      • Integrations
    • Setting Up Scheduler
    • Media Gallery
    • Quick Replies
    • Opt-out Settings
    • Blacklist
    • Global Variables
    • Setting Up Ad-On's
      • Setting Up WhatsMail
      • Setting Up Zendesk
      • Setting Up Zapier
      • Setting Up Zoho CRM
        • Getting Started
        • Working with Extension
        • Integrating with Zoho Workflow
        • Lead Assignment Rules
        • Integrating into Custom Modules
        • Connecting Multiple WhatsApp Numbers into Zoho CRM
        • Integrating WhatsApp with Zoho CRM Mobile App
        • Keyboard Shortcuts
      • Setting Up Facebook Lead Adform
      • Facebook Lead Ad form V2
      • Setting Up WhatsApp Web
      • Setting Up Pabbly Connect
      • Setting Up ChatGPT App
    • Google Chrome Extensions
      • Extension for Sending WhatsApp Messages from any Webpage
      • Chrome Extension V2
      • Extension for Zoho CRM & Teambox
    • Managing Profile
      • Two Factor Aunthentication
      • Login History
      • Delete Account
    • Quick Rollout Guide
      • WhatsApp Official Account
    • Developers & Partners Guide for Deep Integration of Picky Assist
  • API Documentation V2
    • Introduction
    • Quick Start Guide 🏃
    • Global Webhook
      • How Webhook Works
      • Webhook Variables
      • Configuring Webhook URL
      • Webhook Request & Response
      • Getting the Conversation Context
      • Testing Your Webhook
    • Event Webhook
      • How Event Webhook Works
      • Event Webhook Variables
      • Configuring Event Webhook URL
      • Event Webhook Sample Request & Response
    • Push API
      • Introduction
      • API Variables
      • Sending Single Message - Push
      • Sending Dynamic Messages – Push
      • Sending Media Attachments – Push
      • Sending Interactive List & Buttons
      • Sending Stickers
      • Sending Bulk Messages - Push
      • Sending Contacts
      • Sending Location
      • Sending WhatsApp Template Messages
        • Introduction
        • Sending WhatsApp Template Text Messages
        • Sending WhatsApp Template Image
        • Sending WhatsApp Template Document
        • Sending WhatsApp Interactive Buttons
        • Sending WhatsApp Limited Time Offer Templates
      • Sending Message to Groups
      • Sending SMS Using SIM Card
      • Sending Message to Facebook Messenger
      • Normal Post Method
      • Delivery Reports
      • Push API Must Read Instructions
      • Testing API Requests
    • WhatsApp Template API
      • Introduction
      • API Variables
      • Template Request API
      • Template Status API
      • Languages
      • Guidelines
    • WhatsApp Group API
      • Introduction
      • API Variables
      • Create Group
      • Set Group Permission
      • Add Group Admin
      • Add Group Members
      • Fetch Group Details
      • Update Group Info
      • Remove Group Members / Admin
      • Generate New Invite Link
      • Group Delete Actions
    • WhatsApp Settings API's
      • WhatsApp Profile API
      • 2 Step Verification
      • WhatsApp Status Update
      • WhatsApp Contact & Group Fetching
    • Device Manage API’s
      • Fetching Device Status API
      • Device Commands API’s
      • WhatsApp Automation Server Status API
    • Account API
      • Fetch Balance
    • Project Management API
      • Introduction
      • Create Project
      • Get Project Details
      • Set / Update Webhook
      • Create API Token
      • Manage API Token
      • Change Billing Plan
      • Fetch Account Balance
      • Country Code & Timezones
    • References
      • Status & Error Codes
      • Most Frequent Issues & Solutions
      • Formating & Sending Emojis 😊
      • Postman Collection for Picky Assist API's
      • High Volume Messaging Bots - WhatsApp
    • Sample Codes
      • PHP
      • Python
      • Node JS
      • Ruby
      • Java
      • ASP.NET Using C#
      • Javascript
      • Go
      • Swift
      • C
      • C#
      • Objective C
  • General Guidelines
    • Billing
    • Adding Money Into Account
    • Rate Limits
    • Character Limits WhatsApp
    • Best Practices for Media Handling
    • Roadmap
    • Features In the Early Beta Version
  • Changelog
    • 2021
      • February 2021
      • March 2021
      • April 2021
      • May 2021
      • June 2021
    • 2020
      • February 2020
      • March 2020
      • April 2020
      • May 2020
      • June 2020
      • September 2020
      • October 2020
    • 2019
      • November 2019
      • October 2019
      • August 2019
      • September 2019
Powered by GitBook
On this page

Was this helpful?

  1. API Documentation V2
  2. Global Webhook

Webhook Variables

Variables used in webhook to extract the incoming messages

Below are the variables used in webhook request, you need to extract the value from the below variables;

Variable

Details

Type

number

Mobile number with country code of the sender.

For Whatsapp Group (web automation) the number will be Group Name @Sender Name / Number For phone automation if the sender mobile number is already saved in the phone contacts then instead of number the contact name may append as number.

String

messenger_id

Unique User id allocated by facebook to identify user, this id need to be passed when you use Push API to send message

Numeric

name

Name of the User

Only supports in WhatsApp Official, WhatsApp Web Automation & Messenger

String

message-in

Text message received in the application – only first 2500 characters will be pushed to the server for WhatsApp Phone Automation Data is URL Encoded You need to decode it

String

message_in_raw

Text Messages in Raw Format, no URL Encoding

Variable Added on 19, Feb, 2021

String

application

.On which messaging app the message has received

1 = Whatsapp Personal (Phone Automation) 2 = Whatsapp Business (Phone Automation) 3 = SMS (Phone Automation) 4 = Call (Phone Automation)

5 = Facebook Messenger

Numeric

direction

0 = Inbound

1 = Outbound

1=outbound will be triggered only for WhatsApp Web Automation when enabled from the Settings

Numeric

group-id

If the message is received in a group the group id will be present

Group Feature is Depreciated in WhatsApp Official Business, supports only in WhatsApp Web Automation Channel

String

group-mentions

All mentioning in the group will be in an array

Array

context-msg-id

Numeric

type

What kind of message is received

1 = text 2 = image 3 = video 4 = audio 5 = location (not supported in phone automation) 6 = document 7 = contact (not supported in phone automation)

9 = WhatsApp Official Interactive Buttons

Numeric

media-url

URL to download the media shared by the user We dont support fetching incoming media for phone automation.

URL

unique-id

Unique id assigned by the picky assist application for each inbound messages. (Its just for your reference )

Numeric

project-id

Project ID in which the message is received, useful if a single URL handles webhook for multiple projects (Its just for your reference)

Numeric

location

Location values need to pass as array

name = name of the location address = Address of the Location url = URL of the Address (only for incoming locations)

lat = Latitude long = Longitude

Not Supported in Phone Automation

Array

contact

Contact as Array, in case multiple contact shared then same will be passed as multiple array's

first_name = First Name

last_name = Last Name

phone = Phone Number

city = City

country = Country country_code = Country Short Code

state = State

street = Street address_type = Address Type

zip = Postal Code

email = Email Address

company = Company Name contact_image = Base 64 code of the contact image

Not Supported in Phone Automation , Messenger

Array

your-variable

Custom variable you configured to the webhook will be passed

String

payload

Custom Payload / value which passed while sending the message for WhatsApp Interactive Buttons (Quick Replies)

String

interactive

Array in which Interactive List or Reply button payload will be posted

Array

type

1 = List Messages

2 = Quick Reply Button

Numeric

id

Unique reference value you passed for choice or button when message is sent

String

description

Description of the Choice in a List Message Menu

String

referral

This is applicable only for WhatsApp Official Accounts and following details will be passed in this array when a user sends you a message on WhatsApp by clicking any of your Facebook/Instagram Ad's

Array

headline

Headline Used in the Ad that generated the messages

String

body

Body from the Ad that generated the message

String

source_type

The type of the ad’s source. Currently, supported values are ad and post.

String

source_id

Facebook ID for an ad or a post.

String

source_url

The url that leads to the ad.

String

image

The image that the user saw and clicked.

String

video

The video that the user saw and clicked.

String

Response Variables

If you would like to given an instant reply to the incoming messages then you need to give reply in JSON format, refer the below details;

Variable

Details

Type

message-out

Pass message you need to give as reply.

Text

delay

If you would like to give response by setting a delay then please pass the delay value in “delay” variable , delay need to be set in seconds and maximum allowed delay is 3600 seconds i.e delay=10 means message will send after 10 seconds

Numeric

media-url

If you would like to reply with a media file then provide the complete URL of the media. Please note the media URL should be publicly available.

If you pass media URL for phone automation then response message may be delayed since its make use of Auto Click. Method so we highly recommend to use media only when its required for phone automation.

URL

reference_number

You can pass any value here like your internal message id etc and the same will be returned in the Event Webhook i.e Delivery Reports

Please note we don't check for duplicate or unique values here, we just return the value you passed

String

application

Specify from which application the reply back need to be send

0 = Use Inbound Application

1 = Whatsapp Personal (Phone Automation) 2 = Whatsapp Business (Phone Automation) 3 = SMS (Phone Automation) 4 = Call (Phone Automation)

5 = Facebook Messenger

8 = WhatsApp Official 10 = WhatsApp Web Automation Shared Number 919737001155 = Shared Number India

Coming Soon Services 6 = Telegraph 7 = Web

Numeric

type

What kind of message you need to give as response

1 = text 2 = image 3 = video 4 = audio 5 = location 6 = document 7 = contact

Contact & Location not support in phone automation

Contact & Location data need to pass as an array , rest all media need to pass through "media-url" as URL

Numeric

location

Location values need to pass as array

name = name of the location address = Address of the Location url = URL of the Address

lat = Latitude long = Longitude

Not Supported in Phone Automation , FB Messenger

Array

contact

Contact value need to pass as Array, in case multiple contacts need to sent then same need to be passed as multiple array's

first_name = First Name

last_name = Last Name

phone = Phone Number

city = City

country = Country

state = State

street = Street

zip = Postal Code

email = Email Address

company = Company Name contact_image = Base 64 code of the contact image

Not Supported in Phone Automation , Messenger

Array

The reply should be in JSON Format & message-in variable is URL encoded you need to decode it

For SMS if you pass "media-url" then it will append the URL at the end of message

If you pass application=0 in the response then we will use the same incoming application to send the reply.

PreviousHow Webhook WorksNextConfiguring Webhook URL

Last updated 2 years ago

Was this helpful?

8 = WhatsApp Official 10 = WhatsApp Web Automation If you have connected multiple channels or using WhatsApp Cloud api then please get the channel id from your project under Settings ->

If the user replied to your another message then you will get the message id of the parent message to identify the context of the conversation.

Channels
Read More