Learn how to collect Instagram user information automatically using BotSailor's User Input Flow and Custom Fields. This step-by-step guide shows you how to ask users for details, capture their responses, and store the collected data for better lead management and customer engagement.
Prerequisites Before You Start
Before building your Instagram User Input Flow, make sure you have the following in place:
●Instagram Professional Account: Use an Instagram Professional account that is eligible for messaging automation.
●BotSailor Account: An active BotSailor account with access to the dashboard.
●Instagram Integration: Your Instagram account should be connected to BotSailor.
●Messaging Access: Make sure Instagram messaging is available for the connected account.
Complete Flow Structure
Instagram DM Trigger → Welcome Text → User Input Flow → Name Question → Phone Number Question → Multiple-Choice Question → Thank-You Message → Test on Instagram DM
Step-by-Step Guide to Setting Up Instagram User Input Flow
Step 1: Go to Chatbot Manager.
Log in to your BotSailor dashboard and select your connected Instagram account and open the Instagram bot management section.
Step 2: Connect Your Instagram Account
● Open the Instagram connection section in BotSailor.
● Connect your eligible Instagram Professional account.
● Grant the required permissions when prompted.
● After the connection is complete, select the Instagram account you want to automate.
Your Instagram account should now be available for creating automated DM flows.
Step 3: Open Bot Reply Settings
● Select your connected Instagram account.
● Navigate to Bot Reply.
● Click Create New Bot Flow to open the Visual Flow Builder.
● Create a new flow for collecting Instagram user information.
Step 4: Set Up the Instagram DM Trigger
● Click the Start Bot Flow component.
● Enter your trigger keywords (e.g., hello, hi, start, info) that users will send to activate the bot.
● Select your keyword matching rule (e.g., String Match or Exact Keyword Match).
When an Instagram user starts the conversation using the configured trigger, the bot can send the welcome message.
Step 5: Create the Initial Welcome Text
● Add a Text component to the Flow Builder.
● Connect it to the Instagram trigger.
● Enter a short welcome message introducing the data collection process.
Example:
Hello! 👋 Thanks for messaging us. We would love to assist you. Please answer a few quick questions so we can serve you better.
● Connect the welcome message to the User Input Flow.
Step 6: Attach a User Input Flow Block
● Locate the User Input Flow component in the available element library.
● Drag and drop the User Input Flow block onto the canvas.
● Connect the welcome Text block to the User Input Flow.
The basic connection should be:
Instagram Trigger → Welcome Text → User Input Flow
The User Input Flow will handle the questions and responses from the Instagram user.
Step 7: Create the User Input Campaign
● Open the User Input Flow block.
● Select Add New Input Flow.
● Enter a descriptive campaign name, such as:
● Instagram Lead Form
● Customer Information
● Product Inquiry Form
● Configure the required User Input Flow settings.
● If available for your account and flow, configure integrations such as Webhooks or Google Sheets.
● Click Save Changes.
Step 8: Add the Name Question
● Open the first question of the User Input Flow.
● Select Free Keyboard Input.
● Enter the question:
What's your name?
● Set the reply validation to Text.
● Under Save Response, create or select the custom field Name.
● Save the question settings.
The user's answer will then be stored in the Name custom field.
Step 9: Add the Phone Number Question
● Click Next Question.
● Select Free Keyboard Input.
● Enter:
Please enter your phone number.
● Select the appropriate phone or number validation option available in your Instagram User Input Flow.
● Under Save Response, create or select the custom field Number
● Click Save Changes.
The phone number provided by the Instagram user will be stored in the selected custom field.
Step 10: Add a Multiple-Choice Question
● Click Next Question to create another question.
● Select Multiple Choice if this option is available in the Instagram User Input Flow.
● Enter:
What are you interested in?
Add options such as:
● Product
● Service
● Pricing
The available response interface may vary depending on the Instagram messaging features supported by the current BotSailor flow.
Step 11: Save the Selected Option in a Custom Field
● Configure the response settings for the multiple-choice question.
● Set the appropriate reply type, such as Text, where available.
● Under Save Response, create or select a custom field named Interest.
● Save the settings.
The selected answer can then be stored in the user's Interest custom field.
For example:
User selects: Product
Custom Field: Interest
Saved Value: Product
Step 12: Add a Thank-You Message
● Connect the Thank You Message point from the final question to a new Text block.
● Add a confirmation message such as:
Thank you! We have successfully received your information. Our team will contact you shortly. 😊
● Save the message.
This confirms to the Instagram user that their submitted information has been received.
Step 13: Review and Save the Instagram Bot Flow
Before publishing the flow, check that all components are connected correctly.
Your final structure should look like:
Instagram DM Trigger → Welcome Text → User Input Flow → Name → Phone → Interest → Thank-You Text
● Check every connection.
● Verify that each question has the correct validation type.
● Confirm that each response is assigned to the correct Custom Field.
● Make sure the final Thank-You Message is connected.
● Click Save to save the completed Instagram automation.
Step 14: Test the Flow on Instagram Direct Messages
● Open Instagram.
● Go to the connected Instagram account.
● Send a DM using one of the configured trigger keywords.
● Follow the automated conversation.
Example:
User: Hi, hello, start, info
Bot: Hello! 👋 Thanks for messaging us. Please answer a few quick questions.
Bot: What's your name?
User: Sid
Bot: Please enter your phone number.
User: 01780860556
Bot: What are you interested in?
User: Price
Bot: Thank you! We have successfully received your information. Our team will contact you shortly. 😊
● Open the relevant BotSailor subscriber/contact information.
● Verify that the collected responses are stored under the corresponding custom fields:
Name: Sid
Phone: 01780860556
Interest: Price
Troubleshooting Common Issues
| Issue | Potential Cause | Solution |
|---|---|---|
| Instagram bot doesn't trigger | Instagram account connection or trigger configuration issue | Check the Instagram connection in BotSailor and verify that the configured trigger is correct. |
| User input is repeatedly rejected | Validation settings do not match the user's response | Check the validation type for the question and make sure it matches the expected response. |
| Custom fields aren't saving data | The response was not assigned correctly or settings were not saved | Open the question settings and confirm that the correct Custom Field is selected. Save the question and the overall flow. |
| Multiple-choice options don't appear correctly | The selected element or Instagram messaging feature may have limitations | Check the available Instagram message elements and use the supported option type for the current flow. |
| Phone number isn't accepted | Number or phone validation is too restrictive | Review the validation settings and make sure the user's phone-number format is accepted. |
| Flow stops after a question | A question or connection is incomplete | Check that every question is connected to the next question and that the final question connects to the Thank-You Message. |
| Collected information isn't visible | Custom field or subscriber mapping issue | Verify the selected Custom Field and check the subscriber/contact profile after completing a test conversation. |


