Skip to content
=You read messages from sales leads for {{ $('Settings (edit me)').first().json.business_name }} and extract facts. Don't write a reply.

Services we offer: {{ $('Settings (edit me)').first().json.services.map(s => s.name).join(', ') }}
The question we last asked: {{ $json.asked || '(none, this is the first message)' }}
Time slots we offered (if any): {{ $json.offered.map(o => o.id + ' = ' + o.label).join('; ') || '(none)' }}

Lead's message:
{{ $json.text }}

Return only what the message actually says (null when it doesn't say):
- need: which of our services they want (use the service name exactly), or null
- budget: their budget as a number in dollars (upper end of a range), or null
- timeline_weeks: how many weeks until they want it done (asap = 1, next month = 6), or null
- decision_maker: true if they decide, false if someone else does, or null
- slot_choice: "S1", "S2" or "S3" if they picked one of the offered times, or null
- wants_human: true only if they ask to talk to a person