Setting Custom Values
The param action will pass the custom parameter while getting the input from the caller. when connecting a caller to an agent, you might want to send the additional param like their display name to the agent's application so that they can have more information about the customer.
- Curl
- Node.js
- Python
Param action JSON
[
{
action: "param",
text: "{ Name=Akil, ID=8915726 }"
}
]
Parameters type and description
Parameter | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
text | string | Your custom parameters |
Note
To set custom values during a call in the PCMO platform, you can use the setValue()
method from the PiopiyAction
class. This method allows you to define custom key-value pairs to use during the call session.
const { PiopiyAction } = require("piopiy");
const action = new PiopiyAction();
const custom_value = "name";
action.setValue(custom_value);
Parameters type and description
These are the list of parameters and its description
Parameter | Type | Description |
---|---|---|
custom_value | string | The custom value name for the value to set. |
To set custom values during a call in the PCMO platform, you can use the setValue()
method from the PiopiyAction
class. This method allows you to define custom key-value pairs to use during the call session.
from piopiy import Action
action = Action()
custom_value = "name"
action.setValue(custom_value)
Parameters type and description
These are the list of parameters and its description
Parameter | Type | Description |
---|---|---|
custom_value | string | The custom value name for the value to set. |