{"name":"site_lead_form_configure","title":"Настроить форму заявки","section":"Общение и заявки","mode":"write","url":"/tools/site_lead_form_configure","blurb":"Сохраняет поля формы, согласие и привязку к существующему этапу CRM.","aliases":"настроить форму|создать форму|обратная связь|форма обратной связи","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Подготовь форму «Заказать звонок» с именем, телефоном и согласием. Используй выбранную воронку и этап, покажи конфигурацию.","check":"Сохраняет поля формы, согласие и привязку к существующему этапу CRM."},{"label":"Подготовить запрос","prompt":"Помоги подготовить вызов site_lead_form_configure для задачи «Настроить форму заявки». Разбери expectedRevision, formId, config и покажи, откуда взять точные значения для выбранного объекта. Остановись на черновике запроса.","check":"Сверить значения со схемой до вызова."},{"label":"После сбоя","prompt":"При выполнении «Настроить форму заявки» связь прервалась после отправки. Для site_lead_form_configure проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"},"formId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"config":{"type":"object","properties":{"purpose":{"type":"string","enum":["enquiry","callback","consultation","quotation","product_question","booking_request"]},"enabled":{"type":"boolean"},"pipelineId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"stageId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"managerId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},{"type":"null"}]},"allowedFields":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["name","lastName","email","phone","message"]}},"requiredFields":{"maxItems":5,"type":"array","items":{"type":"string","enum":["name","lastName","email","phone","message"]}},"consentRequired":{"type":"boolean"},"attributionEnabled":{"default":false,"type":"boolean"},"attachmentsEnabled":{"default":false,"type":"boolean"},"customFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"required":{"default":false,"type":"boolean"}},"required":["name","required"],"additionalProperties":false}},"turnstile":{"default":null,"anyOf":[{"type":"object","properties":{"siteKey":{"type":"string","minLength":1,"maxLength":200},"secretName":{"type":"string","pattern":"^[A-Z][A-Z0-9_]+$"}},"required":["siteKey","secretName"],"additionalProperties":false},{"type":"null"}]}},"required":["purpose","enabled","pipelineId","stageId","managerId","allowedFields","requiredFields","consentRequired","attributionEnabled","attachmentsEnabled","customFields","turnstile"],"additionalProperties":false}},"required":["siteId","expectedRevision","idempotencyKey","config"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"form":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"siteRevision":{"type":"number"}},"required":["form","siteRevision"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}