Smax.bot
Last updated
Last updated
Step 1: To link your bot to Smax.bot, simply click the Connect button:
Step 2: We are now linking your bot:
1: Type your secret key (it works like an password to your bot)
2: Choose Smax.bot platform
3: Attribute name for your custom image. It is linkIMG for this example, but you could type in anything.
4: Preview of JSON for your settings
Step 3: You should create 2 blocks for this. For example we have the Test Voucher block and Export Voucher block here:
Step 4: Fill the required filed in Test Voucher block then add a button that leads to Export Voucher block
Step 5: In the Export Voucher block you'll need 2 elements : Json API and Image (or Gallery)
1: Select the POST method
2: Click the Copy button in Step 2 and paste it here
3: Click on Json tab
4: Paste the Json that generated in Step 2
5: Copy the attribute name in Step 2 and paste it here. Don't forget the curly braces for attribute, so it should be {{linkIMG}}
Step 6: Now it is time to test our bot. It would take a few seconds or more for our bot to generate the image, so a Typing element before sending is recommended