add

public DialogManager.DynamicCustomAction add(String key, JsonElement value)

Adds a static field to the payload sent with the custom event. The key must not collide with any input keys.

Return

this builder

Parameters

key

field name

value

JSON element value


public DialogManager.DynamicCustomAction add(String key, String value)

Convenience overload for plain string values.

Return

this builder

Parameters

key

field name

value

plain text value