How to assign value to slot or fetch custom payload value

Hi can anybody please help me to fetch custom payload value. like above I have mention in my files:

nlu.md

intent:inform

domain.yml

entities:

  • name
  • balance
  • slot_name

slots:

slot_name:

type: text

stories.md

happy path

  • greet
    • action_hello_world
  • check_balance
    • action_hello_world
  • mini_statement
    • action_statement

action.py

    if intent_name == 'check_balance':
        data = []
        for (id, acc_no) in zip(ac_ids, accounts):
            data.append({"label": acc_no, "value": "inform{'slot_name':" + id+"}"})
            # data.append({"label": acc_no, "value": "/" + id})

        message = {"payload": "dropDown", "data": data}
        dispatcher.utter_message(text="Please select account number", json_message=message)

Thanks in advance !!!