{"agent":"claude","input":"A new lead just submitted our quote form. Call them with the LumisReach connection, then post the outcome to Slack.\n\nRules before dialing: call only if consent_to_call below is true and the consent text says they asked to be called. Do not call if the local time for the phone number's area code is before 9:00 or after 20:00; post to Slack that the lead needs a call in the morning instead.\n\nCall with start_ai_phone_call: to_numbers [phone], goal 'Confirm what the lead needs and offer a quote visit this week; agree a day and a time window', instructions 'You call for {business}, a {trade} company in {city}. Be brief and friendly. Do not quote prices or promise dates; offer a visit and take their preferred time. If they ask not to be called, apologise and end the call.', opening_message 'Hi {name}, this is an AI assistant calling for {business} about the quote request you just sent us. Is now a good time?', retry_attempts 1, max_call_duration_seconds 300, voicemail_enabled true, voicemail_message 'Hi {name}, this is an AI assistant for {business} about your quote request. Call us back at {callback_number} when it suits you.'\n\nPoll get_quick_action_status with the job id until the target's status is no longer pending or in_progress. If the call connected, read the call record, with its transcript, using get_call on last_call_id. Post one Slack message to #sales: name, phone, status, goal_achieved, a two-line summary in the lead's own words, the time window they chose if any, and the next step for a person. If status is opted_out, say so first and tell us to remove them from follow-ups. Do not call any number other than the one below.\n\nLead: name {name}; phone {phone}; request {message}; consent_to_call {consent}; consent text '{consent_text}'; submitted {submitted_at}","connections":["lumisreach","slack"]}