Add content to a block
Add text, images, cards, carousels and other content to a flow block, and set up buttons and quick replies.
Every block in a flow needs content. Content is what the bot sends to the user: text, images, cards, buttons and so on. This guide adds the content types one by one to a Messenger block. Before you start, you need a flow to work in.
The video shows the panel in English. In the Mongolian panel the same menus and buttons have Mongolian names.
Open the block and see the content types
In the flow editor, click the block under Start (Эхлэх). The block's settings open on the left, with Message Type (Мессежийн төрөл) and the Add Content (Контент нэмэх) button. In this example the message type is Messenger.
Click Add Content to see the content types you can add: Text (Текст), Image, Card, Carousel, Get User Data, Video, GIF, Typing, Notification Request, File, Actions and Collection.
Write a text message
Choose Text from the list. A “Type a message...” field appears. Type the message the user will receive, for example “Сайн байна уу?” (Hello).
What you type shows up on the block in the flow editor right away.
Insert the user's name and an emoji
Two small icons sit at the bottom right of the text field. Click the </> icon to open a list with First Name, Last Name, Full Name, Email, Phone and Profile Image. Choose Full Name and {{full_name}} is inserted into the text. It stands for the full name of the user who receives the message.
Click the smiley icon to pick an emoji. The example message reads “Сайн байна уу? {{full_name}} Бидэнтэй холбогдсонд баярлалаа. Та манай цэстэй танилцана уу” (Hello, {{full_name}}. Thank you for contacting us. Please have a look at our menu).
Add buttons to the message
Click Add Button (Товчлуур нэмэх) under the text. A message can have up to three buttons.
Click a button you added to open the Edit (Засах) window. Type the button's name in Button Label (Товчлуурын шошго), for example “Товч 1” (Button 1). Under When This Button is Pressed (Энэ товчлуур дээр дарах үед), choose what the button does:
- Send Message (Мессеж илгээх)
- Open Website (Вэбсайт нээх)
- Call Number
- Perform Action
- Start Another Flow (Өөр өрөлт эхлүүлэх)
- Start Another Step
- Start External Step
Then click Save (Хадгалах).
Connect a button to a new message
In the button's Edit window, choose Send Message. A new block named “Send Message #1” is created, and a line connects it to the button. When a user taps the button, this block's content is sent.
The new block's Message Type is Omnichannel by default. This example changes it to Messenger.
Add an image
In the new block, click Add Content and choose Image. Click Upload Image to upload a picture. Or click Insert Link and paste the picture's link into the Image Link field.
There is an Add Button under the image too, so an image can also have buttons.
Each piece of content has three small icons on its right. Use them to delete the content, move it up or down, or duplicate it.
Open a website or start another flow from a button
For the second button, choose Open Website in the Edit window and enter the address of the website to open. This kind of button does not connect to another block, so it has no connection dot on the block.
For the third button, choose Start Another Flow. A block named “Start Flow #1” is created. In the Start Another Flow list on the left, which shows “Nothing selected” at first, pick the flow to start, for example “Ажилтантай холбогдох” (Connect to staff).
Add a card or a carousel
Go back to the first block and choose Card or Carousel from the Add Content menu. A card shows an image, a title, a description and buttons together. A card has these fields:
- Upload Image or Insert Link: the card's image
- Title (Required): the title, which you must fill in
- Subtitle: extra description
- Card URL: a link for the card
- Add Button: up to three buttons. A card's buttons have one more action to choose from, Share.
A Carousel shows several cards side by side. Click the + sign on the right of a card to add the next one. This example adds 10 cards. Click the small icons below to move between cards.
The two icons at the top left of a card switch the image between a wide and a square shape.
Add video, Get User Data and Typing content
In the Add Content menu, point to Video to see two options: Upload Video and Facebook Video.
Choose Get User Data to add a field for your question, an Edit button and the words “Awaiting user reply”. The bot sends the question and waits for the user's answer. The block also gets a new “Data was saved” output.
Choose Typing to add “Typing for 2 Seconds”. Set how many seconds the bot appears to be typing before the next message.
This guide does not cover GIF, Notification Request, File, Actions and Collection.
Add quick replies
Click Quick reply under the content to add one. Quick replies appear as separate small buttons under the block's message.
Click the quick reply you added to open the Edit window and type its name in Button Label, for example “буцах” (back). The actions you can choose are Send Message, Perform Action, Start Another Flow, Start Another Step and Start External Step. Pick one and click Save.
A block can have several quick replies. This example adds five.
Each change is saved automatically, and “Saving...” appears at the top while it saves. When your content is ready, click Publish (Нийтлэх) in the top right corner.
You do this in the Chatbot panel.new-cp.smartbot.mn
Open Chatbot panel