Gemma ai receptionist

Ai real estate agent that takes calls for you and books appointments

[{"id":"1a2b3c4d5e6f7g8h","type":"inject","z":"root_flow","name":"Simulate Transcribed Text","props":[{"p":"payload","vt":"str"}],"payload":"I want to book a house viewing next Friday at 3pm","payloadType":"str","repeat":"","crontab":"","once":false,"topic":"","wires":[["ai_processor"]]},{"id":"ai_processor","type":"http request","z":"root_flow","name":"Send to AI Model","method":"POST","ret":"obj","url":"http://localhost:11434/api/chat","headers":{"Content-Type":"application/json"},"payload":"{\"prompt\":\"{{payload}}\",\"history\":[]}","payloadType":"json","wires":[["tts_request","booking_logic"]]},{"id":"tts_request","type":"http request","z":"root_flow","name":"Send to TTS","method":"POST","ret":"bin","url":"http://localhost:5002/api/tts","headers":{"Content-Type":"application/json"},"payload":"{\"text\":\"{{payload.response}}\"}","payloadType":"json","wires":[["play_audio"]]},{"id":"play_audio","type":"function","z":"root_flow","name":"Prepare Audio Playback","func":"// Prepare instructions to play audio back on Asterisk\nreturn msg;","wires":[]},{"id":"booking_logic","type":"function","z":"root_flow","name":"Booking Logic","func":"const text = msg.payload;\n// Basic keyword detection, expand with NLP\nif(text.toLowerCase().includes('book') && text.toLowerCase().includes('viewing')) {\n    msg.topic = 'cal.com-booking';\n    msg.payload = {\n        date: '2025-08-15T15:00:00',\n        service: 'House Viewing'\n    };\n} else {\n    msg.topic = 'no-booking';\n}\nreturn msg;","wires":[["cal_booking_api"]]},{"id":"cal_booking_api","type":"http request","z":"root_flow","name":"Call Cal.com API","method":"POST","ret":"obj","url":"https://api.cal.com/v1/bookings","headers":{"Authorization":"Bearer YOUR_API_KEY","Content-Type":"application/json"},"payload":"","payloadType":"json","wires":[["booking_confirmation"]]},{"id":"booking_confirmation","type":"debug","z":"root_flow","name":"Booking Confirmation","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","wires":[]}]

Flow Info

Created 1 week, 5 days ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • debug (x1)
  • function (x2)
  • http request (x3)
  • inject (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option