How to create a button in actions.py

can you show the syntax of payload button in action file. because it gives complete error in my file. but i can get it in domain file