RASA Domain.yml Custom Block(Multiselect) Dynamic Values

entities:
  - name
  - id

slots:
  name:
    type: unfeaturized
    auto_fill: false
  id:
    type: unfeaturized
    auto_fill: false

templates:
utter_multiselect:
  - custom:
      blocks:
      - type: section
        text:
          text: Pick one or more items from the list
          type: mrkdwn
        accessory:
          type: multi_static_select
          placeholder:
            type: plain_text
            text: Select items
          options:
            - text:
                type: plain_text
                text: Jack
              value: value-0
            - text:
                type: plain_text
                text: {name}
              value: value-1
            - text:
                type: plain_text
                text: John
              value: value-2

Trying to access the value in the “name” entity which has been set by custom action however, it results in value NULL and as a result, the multiselect does not render in the UI. Trying this on slack and got the format for the Multiselect from Slack’s Block Kit Builder.

Works fine if I hardcode the values but, a solution to put values dynamically in the multiselect dropdown is the one I am aiming for.

Hi there @djaydogra-777, can you first confirm that the slot was actually set in the backend by looking at the --debug logs upon this utterance being created?

Hi @erohmensing , yes the slot values were set as I used an utterance to print the slot values and checked it.

I got this message in the shell though…