• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
Solution home App Resources Workbot for Slack

Workbot for Slack: Creating Buttons

Modified on: Wed, May 3, 2017 at 1:36 PM

Buttons are powerful tools in slack that allows you to send commands with a single click instead of having to manually type in a command again. Below we have an example of two buttons from Workbot in slack. 

JXAum1YSuJP-TbJdhTTnB9LySNhlFsNevQ.png



You can create something similar as well by using the Post Command Reply action. Buttons are extremely useful in command replies as this allows you to easily run the recipe again on freshdesk, or even run another related recipe. After creating the action, simple click on the "optional fields" button and select "buttons". You will then see the field below


Jfq0nNfEUOoetkMb0TmCD2p9HmdZJPTW-w.png



The button field takes in a list of JSON Object. In summary, here is how you should create a button :


All buttons should be enclosed in a large casing that is the Square brackets [ ]. 

Within the square brackets, A button will reside in a curly braces casing { }
Within the curly braces, There are two functions : 
1) The Label, annotated as "title":
Any words resides after that will be the label of the button.


2) The Command, annotated as "command":
Any words resides after this will be the command of the button. Do be reminded that there is a format given for a Workbot command. In simple terms, a command is basically text that is sent to workbot by clicking the button instead of typing the text manually. If your command is "Salesforce Show Lead", it will have the same effect as typing in the same command and sending it to workbot. 


Here is how the Button mentioned above will look like in Slack : 


To add multiple buttons, you should separate each button with a comma (,), as shown below. Buttons can also have dynamic titles and commands, if you map data pills into them.




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    Documentation
    Developer's Library
    Tutorials
    eBooks
    Product Hour
    Product Blog
    Workato Blog
    Product updates
    Customer Stories
    © Workato 2022   Privacy   Terms   +1 (844) 469-6752
    • Documentation
    • Workato Blog
    • Product Blog
    • Solutions
    • Forums
    • Tickets
    • Log in
    • Return to Workato
    Article views count