Smaxbot

Step 1: You'll need to create 2 blocks in your script:

Shop Welcome: This block includes a button that redirects to your shop

Confirm Info: This block will send the confirmation message after receiving information.

Shop welcome block
Confirmation block

Step 2: Back to botplus.io, now click on Push data / Create New Platform / Smaxbot

Step 3: The Setting pop-up should be shown now:

Name: Name of this Connection

BotID: Your Bot ID

Bot Token: Your bot Token

Block ID: Confirmation block ID, for our example is the Confirm Info block

Data Fields: Data fields that available to send to your bot

Need help finding your Bot ID, Bot Token or Block ID? Let's move on to next step

Step 4:

To find your block ID, first click on the block you want to find it's ID. The string right after ?id= in your browser URL is the block ID (1). Double click to quick select this string and copy it.

Click button (2) to copy your BotID, and click button (3) to copy your bot Token:

Now back to Smax.bot and fill all the fields.

Step 5: Botplus settings for sending information

Go to the Push data menu, click Add Field

​

​

The Control Name drop-down will show a list of control name to your form.

​

You need to give your control name an unique attribute name in order to make it work in Botplus

Step 6: Confirm Info block setup

Let's actually use those attributes we've created in the last step:

Note: Add the =SEPRATOR() method to your currency attribute for a better currency format.

Ex.: {{total}} will be displayed as 25000

[=SEPRATOR({{total}})] will be displayed as 25,000

Step 7: Setup Webview URL

Select URL Address (1) / User free domain (2)

Note: You can customize your shop's domain (ex.: shop.botplus.asia/myshop), or use your own domain.

Click Update, and click the URL on (3) to copy it. This URL (3) is the one we use for our bot.

Step 8: Link your shop URL to a button

Add a new button in your Shop demo block inside the Text element (A gallery/media element also works)

Enter your button name, select URL then paste the URL we've generated in Step 7

We also recommend to add this URL to domain whitelist so Messenger won't open a new tab for this:

Step 9: Final test

Click on the Reflink button:

This is what we're getting in messenger:

Open the link and try to make an order:

Fill the form:

And it's done! As soon as you submitted, the Confirmation block will be fired up:

Last updated

Was this helpful?