User Input Flow and add the requiredUser Input Flow element. Define your question sequence, such as collecting email address, phone number, or user preferences. Assign each response to the appropriateCustom Fieldor system variable.
BotSailor will collect the user's responses through Facebook Messenger and store the information in the contact profile for future management and segmentation.
|
Before building your flow, make sure you have the following in place:
●Facebook Business Page: Admin access to the Facebook Page you want to automate.
●BotSailor Account: An active BotSailor account logged in to the dashboard.
●Messenger Integration: Your Facebook Page connected to BotSailor under Chatbot Manager.
|
Trigger Keyword → Welcome Text → User Input Flow → Name Question → Phone Number Question → Multiple-Choice Question → Thank-You Message → Test on Facebook Messenger
|
Step 1: Go to Chatbot Manager
Log in to your BotSailor dashboard and navigate to Chatbot Manager (or Connect Account).
Open Chatbot Manager in BotSailor to access the settings for your Facebook Messenger
Step 2: Open Bot Reply Settings
● Navigate to Chatbot Manager.
● Select your connected Facebook Account.
● Go to Bot Reply.
● Click Create to open the Visual Flow Builder.
Step 3: Create a Keyword Reply
Go to:
Chatbot Manager > Select Account > Keyword Replies > Create
Then create a keyword reply that will trigger the chatbot flow when a user sends a specific keyword.
Step 4: Set Up the Trigger Message
● Click the Start Bot Flow component.
● Enter your trigger keywords (e.g., hello, hi, start) that users will send to activate the bot.
● Select your keyword matching rule (e.g., String Match or Exact Keyword Match).
Configure trigger keywords in the Start Bot Flow block to activate the Facebook Messenger chatbot.
Step 5: Create the Initial Welcome Text
● Right-click or drag a Text component from the left panel onto the canvas and connect it to the starting trigger node.
● Write a brief welcome message introducing the process:
"Hello! Thanks for reaching out to us. We would love to assist you. Please answer a few quick questions so we can serve you better."
Add a welcome message to introduce the data collection process before asking users for information.
Step 6: Attach a User Input Flow Block
● Locate the User Input Flow component in the Data Collection section of the element library.
● Drag and drop the User Input Flow block onto the canvas and connect it to the initial Text block.
Connection structure: Start Bot Flow → Text Message → User Input Flow.
Connect the User Input Flow block to the welcome message to begin collecting Facebook user data.
Step 7: Create the User Input Campaign
● Double-click the User Input Flow block to open its settings panel.
● Select Add New Input Flow and assign a descriptive campaign title (e.g., Color Preference or Lead Form).
● (Optional) Configure external integrations like Webhooks or Google Sheets export if you want to stream data to external platforms.
Create and configure a User Input Flow campaign for collecting subscriber information through Messenger.
Step 8: Add the Name Question
● Click the First Question connection node on the User Input Flow block.
●Question Type: Select Free Keyboard Input.
●Question Text: Enter "What's your name?"
●Reply Validation: Select Text.
Configure the first user input question to collect a subscriber's name and save it to a custom field.
Step 9: Add the Phone Number Question
● Click Next Question from the previous node to add a second question.
●Question Type: Select Free Keyboard Input.
●Question Text: Enter "Tell us your phone number."
●Reply Validation: Select Number or Phone.
●Save Response: Create or select the custom field Phone.
Add a phone number question and save the user's response to the number custom field.
Step 10: Add a Multiple-Choice Question
● Click Next Question to add the third question block.
●Question Type: Select Multiple Choice.
●Question Text: Enter "What's your favorite color?"
●Answer Options: Add choices like "White" and "Black." In Facebook Messenger, these will present as quick-reply buttons.
Create a multiple-choice question that lets Messenger users select their preferred option using quick replies.
Step 11: Save the Selected Option in a Custom Field
● Set the Reply Type to Text.
● Under Save Response, assign or create the custom field Color.
● Click Save Changes.
Step 12: Add a Thank-You Message
● Connect the Thank You Message point from the final question node to a new Text block.
● Enter a closing message:
"Thank you! We have successfully received your information."
Add a thank-you message to confirm that the user's information has been successfully collected.
Step 13: Review and Save the Bot Flow
● Verify that all nodes are sequentially linked: Start Bot Flow → Welcome Text → User Input Flow (Name → Phone → Color) → Thank-You Text.
● Click the Save button in the top-right corner of the Flow Builder to publish your changes.
Review the complete user input flow and save the connected chatbot sequence in BotSailor.
Step 14: Test the Flow on Facebook Messenger
● Open Facebook Messenger and send a direct message to your Facebook Business Page.
● Type one of your set trigger keywords (e.g., hi).
● Follow the automated conversation sequence:
●Bot: "What's your name?"
●User: abir
●Bot: "Tell us your phone number."
●User: 01780860566
●Bot: "What's your favorite color?" [White] [Black]
●User: Black
Bot:
Abir
01780860566
Black
"Thank you! We have successfully received your information. We contact you soon
● Confirm in BotSailor Live Chat or the subscriber list that all answers have saved directly under the Name, Phone, and Color custom fields.
Test the Facebook Messenger data collection flow and verify that user responses are saved to the corresponding custom fields.
|
| Issue | Potential Cause | Solution |
| Bot doesn't trigger when sending keywords | Page disconnected or keyword match type mismatch | Re-authorize Facebook integration under Chatbot Manager. Ensure you are using String Match or Exact Match correctly. |
| User input is repeatedly rejected | Strict Validation Enabled | Check reply validation settings on the question block (e.g., if set to Phone, ensure input contains valid numeric digits). |
| Custom fields aren't saving data | Field name mismatch or unsaved settings | Ensure you clicked Save Changes inside the individual question configuration panel before saving the overall flow canvas. |
| Quick reply buttons don't show on Messenger | Messenger button limits exceeded | Facebook quick reply options are limited in text length. Keep option titles short (under 20 characters). |
|
●Sync Data to Google Sheets: Connect your User Input Flow directly to Google Sheets to automatically record incoming subscriber data in real time.
●Set Up Webhook Notifications: Forward collected field data to external platforms like CRM tools, Zapier, or Make via the User Input Flow webhook settings.
●Create Conditional Sequence Messages: Trigger automated follow-up sequences or assign user tags based on the custom field value selected by the user (e.g., tag users selecting Shirt).


