I need help with a feature that I m currently working on. My desired outcome is to automatically send a twilio text to a user when something changes in my DB.
User data types are:
Buyer
Agent
Amongst all the other fields created for both data types, the “state (field type -text)” should unify both data types.
I want a custom event in my backend that trigger a twilio text message to a specific agent whenever a new buyer signups to the platform and indicates an interest in the agent’s state (e.g. Alabama).
Where the “make changes to a thing” is your buyer account db. If it’s only for signup then you would add in an “only when” conditional to determine if the user is new or now.
If it’s more complex than that, please explain in more detail.
You can use the backend workflow trigger called “Database Change Trigger”…you could want this to trigger a backend recursive workflow to cycle through a list of agents in the Users State to send a text message to each.
My suggestion may cause you to research backend workflows.
You are onto something. To elaborate, when a new user signups and indicates that they are interested in a property located in “New york” for example, I want to create an event that causes my app to search my db, locate a real estate agent in that state and sends a text using the twilio plugin.
Based on that elaborated description, my suggestion would be the approach to follow…it is similar to what I do in my Freelancer Templates to allow users to have email and text notification settings that allow when a new user signs up in their preset search radius to be notified either through email, text or in app notification.