# Parsing argument error in buttons

**URL:** <https://forum.rasa.com/t/parsing-argument-error-in-buttons/52675>\
**Category:** Rasa Open Source\
**Created:** [April 18, 2022, 9:46pm UTC](https://forum.rasa.com/t/parsing-argument-error-in-buttons/52675 "2022-04-18T21:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![medhedi77](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/medhedi77/32/20293_2.png) [@medhedi77](https://forum.rasa.com/u/medhedi77)\
**Post date:** [April 18, 2022, 9:46pm UTC](https://forum.rasa.com/t/parsing-argument-error-in-buttons/52675/1 "2022-04-18T21:46:55Z")

</div>

![error](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/4/14f70676fb8ed03debe46f7e80c18e8f95c04c38.jpeg)I need some help please , the buttons used to work but suddenly i got this error despite i didn’t made any changes … Any suggestions please ??

---

<div class="post-metadata">

**Author:** ![itsjhonny](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/itsjhonny/32/20201_2.png) [@itsjhonny](https://forum.rasa.com/u/itsjhonny)\
**Post date:** [April 18, 2022, 11:14pm UTC](https://forum.rasa.com/t/parsing-argument-error-in-buttons/52675/2 "2022-04-18T23:14:35Z")

</div>

Hi! 😃What rasa version are you using?

Can you make a little test just using just one `{}` ?

```auto
{"title": "happy" , "payload": '/happy{"slot_name":"just a test"}'}

```

my actions.py

```auto
from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher

class ActionHelloWorld(Action):
    def name(self) -> Text:
        return "action_hello_world"
    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
            
        buttons = []

        #append the response of API in the form of title and payload

        buttons.append({"title": "happy" , "payload": '/happy{"slot_name":"just a test"}'})

        #then display it using dispatcher

        dispatcher.utter_message(text="message you want to display" , buttons=buttons)
        return []

```

my domain.yml

```auto
version: "3.0"

entities:
- slot_name

intents:
  - greet
  - happy

actions:
  - action_hello_world

slots:
  slot_name:
    type: text
    mappings:
    - type: from_entity
      entity: slot_name

 
  
responses:

  utter_happy:
  - text: "Great, carry on! {slot_name}"

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

  

```

---

<div class="post-metadata">

**Author:** ![medhedi77](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/medhedi77/32/20293_2.png) [@medhedi77](https://forum.rasa.com/u/medhedi77)\
**Post date:** [April 18, 2022, 11:56pm UTC](https://forum.rasa.com/t/parsing-argument-error-in-buttons/52675/3 "2022-04-18T23:56:15Z")

</div>

It works now thank you
