Chat with us
Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel FlexUp to 60% OFF on Premium Upgrade & Whitelabel03:00:00:00Claim
Knowledgebase/Data Collection/Article

How to Collect Facebook User Data with BotSailor User Input Flow and Custom Fields

  • 15 Oct 2026
  • 6 min read
  • 0 views
TL;DR:

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.



Prerequisites Before You Start


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.

Complete Flow Structure


Trigger Keyword → Welcome Text → User Input Flow → Name Question → Phone Number Question → Multiple-Choice Question → Thank-You Message → Test on Facebook Messenger

Step-by-Step Guide to Setting Up User Input Flow


Step 1: Go to Chatbot Manager

Log in to your BotSailor dashboard and navigate to Chatbot Manager (or Connect Account).

Image


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).

BotSailor Flow Builder showing Start Bot Flow with Facebook Messenger trigger keywords


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."

Alt text: BotSailor Flow Builder showing a welcome Text block connected to the chatbot trigger

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.

Image

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.

Image

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.


Image


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.

Image


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.

Image

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."

Image

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.

Image

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.

Image

Test the Facebook Messenger data collection flow and verify that user responses are saved to the corresponding custom fields.


Troubleshooting Common Issues


IssuePotential CauseSolution
Bot doesn't trigger when sending keywordsPage disconnected or keyword match type mismatchRe-authorize Facebook integration under Chatbot Manager. Ensure you are using String Match or Exact Match correctly.
User input is repeatedly rejectedStrict Validation EnabledCheck reply validation settings on the question block (e.g., if set to Phone, ensure input contains valid numeric digits).
Custom fields aren't saving dataField name mismatch or unsaved settingsEnsure you clicked Save Changes inside the individual question configuration panel before saving the overall flow canvas.
Quick reply buttons don't show on MessengerMessenger button limits exceededFacebook quick reply options are limited in text length. Keep option titles short (under 20 characters).

Next Steps


●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).


Mahafuz Abir

Mahafuz Abir

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

The User Input Flow in BotSailor allows businesses to collect information from Facebook Messenger users by asking questions and saving their responses automatically. It helps create personalized chatbot experiences and gather important customer details.

With BotSailor, businesses can collect different types of user information, such as names, email addresses, phone numbers, preferences, feedback, and other details required for customer support or lead generation.

Custom Fields in BotSailor are data storage fields that allow you to save specific information collected from users. Businesses can create custom fields based on the type of data they want to collect through Facebook Messenger conversations.

The User Input Flow works by asking users questions inside Messenger conversations, collecting their responses, and storing the information in the assigned custom fields for future use.

Collecting user data helps businesses understand customers better, generate leads, personalize messages, improve customer support, and create targeted marketing campaigns.

To create a User Input Flow, open the BotSailor automation builder, add a user input step, select the type of information you want to collect, connect it with a custom field, and save the chatbot flow.