Platform
Leveraging Platform-Specific Data for Enhanced Interaction
Last updated
Was this helpful?
Leveraging Platform-Specific Data for Enhanced Interaction
Last updated
Was this helpful?
Platform variables provide access to platform-specific information. Parloa currently supports the following platform variables:
platform.name
string
The platform is currently being used. Possible values:
- phoneV2
- phoneV1
- gaction
- whatsapp
platform.phoneCallerNumber
string
The phone number of the person calling. (Phone V1 only)
Deprecated: Please use platform.callerId
instead.
platform.callerId
string
If available, the caller's phone number. If the caller is anonymous, the caller ID is provided. (Phone V1 & V2 only)
platform.sipInviteHeaders
array
The key-value pairs are provided in the SIP Invite message (Phone V2 only)
An exemplary use case of platform variables is within a Condition block in Parloa. Here's how it's typically structured:
For example, if the platform.name
equals "phoneV1", the bot could execute a set of commands tailored for voice interactions over the phone. If the platform.name
indicates another platform like WhatsApp, the bot may choose a branch that handles text-based interactions differently, like quick replies or chat buttons.
A Condition block checks for the value of platform.name
.
Based on the platform identified, the conversational flow diverges onto the relevant branch, ensuring that the interaction is appropriate for the specific platform.