Using slots in Custom Output Payloads

Hi, I’m trying to use slots in Custom Output Payloads, but it doesn’t work for me. It looks that it works only for text, but not for data element.

Below example:

utter_complaint:
  - channel: conpeek-voice
    custom:
      blocks:
        - text: Your choice is {slot_name}.
      data:
        var1: {slot_name}

In response i receive:

[
    {
        "recipient_id": "tester1",
        "custom": {
            "blocks": [
                {
                  "text": "Your choice is something."
                }
            ],
            "data": {
              "var1": {
                "slot_name": null
            }
        }
    }
]

Can you help ?

Regards Adam

problem solved

I had to put the slot name in quotation marks

Regards Adam