Action operator_panel__nps_confirm_answer
System ID:
action_operator_panel__nps_confirm_answer
In the scenario also:operator_panel__nps_confirm_answer
Description
Collects all non-empty user constants as survey answers and stores them in the database (NPS / feedback after an operator dialog). If state has op_prev_position, the scenario may return to the previous position after saving.
To save scores into chat statistics, also see statistic__set.
Events (scenario branches)
| Event | When it occurs |
|---|---|
| success | Answers saved |
| error | No chat_user_id / chat_id, no non-empty constants, or save error |
Parameters
No parameters in the node JSON ({}).
Before execution, answer fields must be present in constants (any non-empty keys), for example:
| Constant | Type | Description |
|---|---|---|
nps_score | number / string | NPS score (example) |
nps_comment | string | Comment (example) |
All non-empty constants go into the answers object.
Configuration example
Node config:
{}
User constants (example):
{
"nps_score": 9,
"nps_comment": "Дякую за допомогу!"
}