Buttons with Custom payload - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Buttons with Custom payload

post by mail2sandy on Feb 18, 2020

mail2sandy

Hi All,

I am trying to implement button with custom payload. when i send some custom data in the payload it is created as an 2nd object.

Current Output:

[  
  {  
    "recipient_id": "default",  
    "text": "Hello World!",  
    "buttons": [  
      {  
        "payload": "null",  
        "title": "Button1"  
      }  
    ]  
  },  
  {  
    "recipient_id": "default",  
    "custom": "this is custom payload"  
  }  
]

Expected Output: I am expecting out put like below

[  
  {  
    "recipient_id": "default",  
    "text": "Hello World!",  
    "buttons": [  
      {  
        "payload": "null",  
        "title": "Button1"  
      }  
    ],  
    "custom": "this is custom payload"  
  }  
]

Any inputs???