Library / AI Agents & Assistants
AI Agents & Assistants
Run real estate SMS campaigns with GPT-4.1, Apify, Twilio, and Google Sheets
When an API call/webhook arrives, it runs an AI agent with OpenAI / ChatGPT using Google Sheets, Twilio, Apify.
What it does
# SMS campaign assistant for reaching local agents A chat assistant that turns a short conversation into an SMS blast. Tell it your budget, what your client is looking for and which postcodes to target, approve the draft it writes, and it finds agents in those areas and texts each one personally. Every send is logged to a Google Sheet with its delivery status. ### How it works 1. A webhook receives chat messages and an assistant collects the budget, client requirements and target postcodes one question at a time, remembering the conversation by session. 2. It drafts the SMS and shows it for approval. Nothing is sent until the owner clearly approves, and edits loop back for a fresh approval. 3. On approval the assistant calls a tool that starts the send branch with the approved message and the postcode list. 4. Comma separated postcodes are split into one item each and handled in turn. 5. For each postcode an Apify actor returns local agents with contact details. 6. Each agent is texted through Twilio with their own name inserted, and their number is normalised to international format first. 7. Twilio's response is captured and appended to your sheet, with a short pause between messages. ### Setup 1. Connect your OpenAI, Twilio and Google Sheets credentials. 2. Replace YOUR_TWILIO_PHONE_NUMBER on the Send the SMS node with your own sending number. 3. Replace YOUR_APIFY_API_TOKEN on Find agents in this area, and point YOUR_GOOGLE_SHEET_ID at your own spreadsheet with a Send SMS List tab. 4. On Find agents and send tool, select this same workflow so the assistant can trigger the send branch. 5. Open Campaign assistant and replace the bracketed placeholders with your name, title and phone number. ### Customization Swap the Apify actor for any other source that returns contacts with a phone number.
The steps
- Find agents and send tool
- Capture the delivery result
- Conversation memory
- Reply to the chat
- Receive chat message
- Start the campaign send
- Log results to sheet
- Keep the contact fields
- Find agents in this area
- Loop over postal codes
- Split the postal codes
- Chat model
- Campaign assistant
- Pause between messages
16 steps in total.
Similar automations
Monitoring, Ops & IncidentsDetect Real Estate Pain Points with Apify and OpenAI9 stepsWeb Scraping & ResearchMonitor Real Estate Listings with ScrapeGraphAI and Telegram4 stepsLead Generation & EnrichmentQualify Real Estate Leads by SMS with GPT-4o18 stepsChatbots & Messaging BotsSMS Course Assistant with Twilio, Airtable and OpenAI11 steps