{"id":116151,"plugin_id":"plugin_asdk_app_6aea242294048191b443e88f599ce830","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-25T18:16:02.893Z","digest":"9f73ec3371cd3cc97dc348529f0bd4589191d962dc213220a97f0bb60f762016","against":null,"payload":{"description":"When a user wants a quote, an installation, a callback or to be contacted about a home improvement project (window replacement, roof installation, concrete floor coating, flooring replacement, kitchen remodel, bathroom remodel), collect their details and send a qualified lead with their consent.","included_files":[],"name":"create-lead","skill_md_contents":"---\nname: create-lead\ndescription: When a user wants a quote, an installation, a callback or to be contacted about a home improvement project (window replacement, roof installation, concrete floor coating, flooring replacement, kitchen remodel, bathroom remodel), collect their details and send a qualified lead with their consent.\n---\n\n# Create a lead\n\n## When to use\nThe user asks for a quote, a price estimate, an installer, or to be contacted\nabout one of the supported services. Do not use for general questions\n(\"how much does flooring cost on average?\") unless the user asks to be put in\ntouch with someone.\n\n## Procedure\n1. Call `list_categories` and pick the category that matches the request.\n   If none matches, say so and stop. Do not force a lead into the wrong category.\n2. Call `get_lead_form` with that category. It returns the exact `fields` to\n   collect: each has a `key`, `type`, `required` flag and `question`.\n3. If the `ask_project_questions` tool is available, call it once, right after\n   `get_lead_form`, with `answers`: everything the user already told you\n   (project answers and any contact detail), in `submit_lead`'s format. The\n   card it shows handles the whole request: the project questions, then the\n   contact details, the consent text and \"Send my request\", which calls\n   `submit_lead` itself.\n   - Before calling it, check what the user said against `not_eligible_if`. If\n     it already matches a rule (e.g. they rent, so the ownership question is\n     \"No\"), don't call it: tell the user politely that this request can't be\n     matched with a partner, and collect nothing. If it returns \"Not eligible\",\n     do the same.\n   - Pass in `answers` what the user clearly implied too (\"I rent\" → the\n     ownership question \"No\"), but nothing they didn't say.\n   - Write nothing after the card (no intro, no \"fill in the form above\"): it\n     shows its own title and questions.\n   - Don't ask any of its questions in the chat, and never call\n     `show_contact_form` or `submit_lead` yourself for that request.\n   - The card tells you through context when the user moves on and what\n     `submit_lead` returned. If the user writes to you afterwards, use it (the\n     statuses are in step 8).\n   - If the user would rather answer in the chat, continue with step 4.\n4. Otherwise, ask the user each field's `question` in the order given, one or\n   two at a time. Ask every required field; optional ones may be skipped. Reuse\n   what they already said instead of asking again. When step 5 applies, don't\n   ask the contact fields here: the card asks for them.\n   - `choice`: show the option labels; send the matching option `value`.\n   - `multi_choice`: the user may pick several; send a list of option `value`s.\n   - `address`: ask for each part listed in `answer_format` and send an object,\n     e.g. `{\"street\": \"18 Main St\", \"city\": \"Dallas\", \"state\": \"TX\", \"zip\": \"75201\"}`.\n   - If an answer matches a rule in `not_eligible_if`, stop right away, before\n     asking for any contact details, and tell the user politely that this\n     request can't be matched with a partner.\n5. If the `show_contact_form` tool is available, call it once every field that\n   is not contact information is answered (address, name, email and phone are\n   contact information), with the category and `answers` (the answers so far,\n   in `submit_lead`'s format, plus any contact detail the user already gave).\n   Write nothing after it: the card shows the fields, the summary and the\n   consent text, and it calls `submit_lead` itself, so don't do steps 6 and 7.\n   Its result reaches you as context; never call `submit_lead` for that\n   request. If `show_contact_form` returns an error, ask only for the answers it\n   names, or stop if it says \"Not eligible\". If the user would rather answer\n   in the chat, continue with step 6.\n6. Otherwise, ask the contact fields in the chat like the others. Then show a\n   short summary of all collected details, show the `consent_text` word for word\n   and ask the user to confirm.\n7. Only if the user explicitly agrees, call `submit_lead` once with the\n   category, `fields` as an object keyed by each field's `key`, and `consent: true`.\n   Use only keys from the form; leave out skipped optional fields.\n8. Report the result:\n   - `sent`: confirm and tell them partners may contact them.\n   - `invalid`: the error names each bad field by key; ask only for those, then retry.\n   - `not_eligible`: tell the user the request can't be matched with a partner.\n   - `duplicate`: tell the user this request was already received recently and partners\n     already have it; do not submit it again.\n   - `test_mode`: tell the user the request was recorded for testing and no partner was contacted.\n   - `error`: tell the user the request was not sent.\n\n## Never\n- Never invent, guess or fill in contact details or answers.\n- Never call `submit_lead` without explicit consent in this conversation.\n- Never submit the same request twice.\n- Never collect details on behalf of someone else (another person's phone or email).\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}