Skip to main content

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)
parameterTypeDescription
keystringThe key name for the value to set

Example Implementation

  • The following code demonstrates how to set a custom value during the call session:
const { PiopiyAction } = require("piopiy");

const action = new PiopiyAction();

action.setValue("name");