Insert record
Learn how to use the insert record operation on your table by using a lead generation flow example.
Last updated
Learn how to use the insert record operation on your table by using a lead generation flow example.
Last updated
Inserting a record on your table means that you will create a new row on your table.
This means that you'll go from this:
FullName | |
---|---|
To that:
FullName | |
---|---|
Agatha | agatha@email.com |
To insert a record on your table:
Make sure that you created a table with the appropriate structure. For this example, we will use a lead generation table that captures:
FullName: Captures the lead's full name.
Email: Stores the lead's email address.
Make sure that you capture the relevant variables in your conversation. In our example, we capture the user name and email in Collect input blocks. These are the variables that we want to add to our lead generation table, i.e. customer_name
and customer_email
.
Add a Table operation to your flow.
Select Insert Record.
Select the table that you'd like to work on. For this example, we called our table Lead generation.
To recall, our example lead generation table has 2 columns: FullName
and Email
. Under Operation Config, link the FullName field to be populated with the variable {customer_name}.
Do the same for Email and {customer_email}.
Click Save.
Test your bot in the emulator. Run through your bot flow within the emulator to simulate the user experience and trigger the Insert record action.
After testing, navigate to your table to confirm that the lead's information has been accurately recorded and stored.
Looking for a quick and easy bot template to play with Tables? The Gym bot is a representative use case.