Only answer the first question in Facebook Messenger
Status: Closed · Asked by Stephen Gordon on · 0 views
Hi All,
I love the new Facebook Messenger trigger that enables me to use OpenAi to answer incoming messages.
youtube.com/watch?v=5y7Br0Lc0mc
Is it possible restrict the workflow so OpenAI only answers the first query?
This would allow the page owner to carry on longer conversations without being interrupted by the answers from OpenAI.
Cheers
Stephen
Hey @Stephen Gordon
To limit the workflow after the first query, it's essential to store the reply somewhere.
Therefore, I recommend saving the response to a Google Sheet immediately after capturing it from Facebook Messenger. Subsequently, utilize the "Google Sheet: Lookup" action step, which enables you to check whether the email address, name, or phone number exists in the Google Sheet or not. Apply the filter condition based on this lookup result to halt the workflow accordingly.
I kindly request you to consult the video tutorial provided below on look-up actions and then proceed with the mentioned steps.