Platform
Leveraging Platform-Specific Data for Enhanced Interaction
Platform variables provide access to platform-specific information. Parloa currently supports the following platform variables:
Key | Type | Description |
---|---|---|
| string | The platform is currently being used. Possible values: - - - |
| string | The phone number of the person calling. (Phone V1 only)
Deprecated: Please use |
| string | If available, the caller's phone number. If the caller is anonymous, the caller ID is provided. (Phone V1 & V2 only) |
| array | The key-value pairs are provided in the SIP Invite message (Phone V2 only) |
Applying Platform Variables in Conditional Logic
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.
Last updated