Skip to main content

Message Objects

Template message object

FieldTypeMeaning
templateIdstring*Whatsapp template id
componentsComponent Object*Components details

Component object

FieldTypeMeaning
headerHeader object[]List of header
bodystring[]List of messages
buttonButton object[]List of button

Header object

FieldTypeMeaning
typestring*type(image, video, document, text)
datastring*text or url

Button object

FieldTypeMeaning
typestring*type(URL, MPM)
indexint*Button index
datastring*text or url

Don't pass Button object if button type is MPM.

Event object

FieldTypeMeaning
namestring*Name
phoneNumberstring*Customer phone number
emailstring*Customer email
eventNamestring*Name of the event
eventProperties[key: string]: string[]*Event properties details

BikInitiateFlowPayload object

FieldTypeMeaning
appIdstring*App Id
mediumstring*Medium
flowIdstring*Flow Id
phoneNumberstring*Phone number
emailstringEmail of the user
nodeNamestringName of the chatbot flow's node
channelIdstringBusiness phone number from which you want to trigger the flow
sessionIdstringBik session Id
carryPayload[key: string]: string[]Payload
payloadAbandonedCartPayload objectAbandonedCart Payload

phoneNumber and email both are optional but at least one is required. Get yoursessionId using externalAPI block in the journey builder and scope of the sessionId is with in the flow.

AbandonedCartPayload object

FieldTypeMeaning
checkoutIdstring*Checkout Id
phoneNumberstring*Customer Phone number
emailstringCustomer email
abandonedCartAbandonedCart object*AbandonedCart details

AbandonedCart object

FieldTypeMeaning
idstring*Id
phoneNumberstring*Customer Phone number
convertedboolean*Convert to order
cartPriceint*Total cart value
partnersDataPartnerData object*PartnerData
cartBikOrderItem object[]*Total order items

BikOrderItem object

FieldTypeMeaning
namestring*Product name
priceint*Product price
quantityint*Product quantity
productIdint*product id
variantIdintProduct variant id

UserProperty object

FieldTypeMeaning
userIdstringUser ID
firstNamestringUser first name
lastNamestringUser last name
customerNamestringCustomer name
namestringName (generic)
sourcestringSource
phoneNumberstringPhone number
alternatePhoneNumberstringAlternate phone number
emailstringEmail
webpushstringWeb push notification
address1stringAddress line 1
address2stringAddress line 2
citystringCity
statestringState
countrystringCountry
zipstringZip code
isTaxExemptedbooleanTax exemption status
acceptsMarketingbooleanMarketing acceptance status
lastOrderDateDate/stringDate of the last order
initialOrderDateDate/stringDate of the initial order
totalOrderCountnumberTotal count of orders
totalOrderValuenumberTotal value of orders
totalMessagesSentnumberTotal messages sent
totalBroadcastReceivednumberTotal broadcast received
lastBroadcastDateDate/stringDate of the last broadcast
lastActivityDateDate/stringDate of the last activity
timezonestringTimezone
createdAtDate/stringCreation date
updatedAtDate/stringLast update date
emailMarketingConsentbooleanEmail marketing consent status
smsMarketingConsentbooleanSMS marketing consent status
lastCampaignSentDateDateDate of the last campaign sent
tagsstring[]Tags associated with the user
partnerCustomerIdstringPartner's customer ID
orderAveragenumberAverage order value
instaFollowersCountnumberInstagram followers count

RecordUserProperties object

FieldTypeMeaning
bulkUpsertUPResponseBulkUpsertUPResponse objectBulkUpsertUPResponse details
invalidUserPropertiesUserProperty object[]InvalidUserProperties list if any

BulkUpsertUPResponse object

FieldTypeMeaning
createCountintTotal number of user property created
updateCountintTotal number of user property updated