Setting Custom Value
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.
setValue(key)
parameter | Type | Description |
---|---|---|
key | string | The key name for the value to set |
Example Implementation
- The following code demonstrates how to set a custom value during the call session:
- Node.js
- Python
const { PiopiyAction } = require("piopiy");
const action = new PiopiyAction();
action.setValue("name");
from piopiy import Action
# Create an instance of the Action class
action = Action()
action.setValue("name")