Entities are not readable in custom message

entities are not readable in custom message

Rasa version: 1.3.7

Python version: 3.7

Issue: i want to output the entities that the user has chosen using the custom key.

it works very well with the text key using the code below in yaml:

  utter_submit_leave_authorization:
    - text: "your request is under review following the parameters:\n
          - certificate: {certif_type}\n
          - Departure date: {dep_date}\n
          - Half day: {dep_date_half_day}\n
          - End date: {end_date}\n
          - Half day: {end_date_half_day}"

and the output is like

Capture-text-01

but in the case of using the custom key with the code below :

- custom:
    blocks:
    - type: section
      text:
        type: mrkdwn
        text: 'your request is under review following the parameters :'
    - type: section
      fields:
      - type: mrkdwn
        text: "*Departure date:*\n{dep_date}"
      - type: mrkdwn
        text: "*Half day:*\n{dep_date_half_day}"
      - type: mrkdwn
        text: "*End date:*\n{end_date}"
      - type: mrkdwn
        text: "*Half day:*\n{end_date_half_day}"
      - type: mrkdwn
        text: "*Type:*\n{certif_type}"

and the output is like:

Capture-custom-01

I believe this should be fixed in 1.5.1! List interpolation custom templates by wochinge · Pull Request #4835 · RasaHQ/rasa · GitHub

1 Like

Yes it does… Special thanks go to Tobias Wochinger

1 Like