Skip to main content

CustomPacket

Module: Inworld.AI. Namespace: Inworld.Packet. Inherited from InworldPacket

This packet is used for triggers.

VariablesDescription
customThe CustomEvent of the packet.
PropertiesDescription
TriggerNameGets the name of the trigger. If it's from goal, delete the pattern part, otherwise return the name directly.
TriggerGets the full string of the trigger name and it's parameter names and values for the trigger. The format is like {TriggerName} {param1.name}: {param1.value} {param2.name}: {param2.value} ...
MessageGets the InworldMessage if it's an additional connection message sent by Inworld server.
ToJsonGenerates the string of json to send to the Inworld server.

TriggerParameter

Module: Inworld.AI. Namespace: Inworld.Packet.

VariablesDescription
nameThe name of the parameter.
valueThe value of the parameter.

CustomEvent

Module: Inworld.AI. Namespace: Inworld.Packet.

VariablesDescription
nameThe name of the trigger
parametersA list of the TriggerParameter in the trigger.