Introduction
Thefind_orders_by_email
function is used to search for orders based on the email address provided by the customer. It is useful for creating order lookup flows in chatbot automations, for example. With this function, it is possible to retrieve order information. Please note that in this case, the system will return all orders associated with the provided email address.
Note: The find_orders_by_email
function works exclusively through Automations, Campaigns, and Advanced Campaigns.
Example of Use
Example of how to use thefind_orders_by_email
function to retrieve orders associated with a given email:
Output Example of the Code

find_orders_by_email
function. Since there are orders with this email in our sample store, the message with the order information was displayed.