Intent in button payload with gui

hello i want to send intent in button payload from web GUI. So, for this, do I have to write separate logic to send the payload or RASA automatically captures that intent from the payload. right now I am sending button’s title using javascript to HTTP server of rasa. help needed asap.

if you pass the payload like this /intent_name, the intent should be picked up automatically