Skip to content
Documentation /

Capture website leads

Customize the contact form, receive lead events and prefill a booking page.

This pageView Markdown ↗Download .md
Entire libraryView llms-full.txt ↗Download all docs

Use the contact form to collect details from visitors who want follow-up. The form saves the lead before it sends a notification. Saving details does not book a call or send a customer email.

Choose your form and buttons

Open Customer messenger in your company workspace. Select an installation. Use Welcome screen and contact form to edit the headings, descriptions and button labels. Add website links or contact-form buttons. Choose whether each appears on the welcome screen, in chat, or both. Use Move up to change the button order.

Name, email and contact consent are required. You can show a phone field, require a phone number, or show a company field. The message field is optional. Keep consent clear about how your team will use the details. Add multiple links directly in Contact consent, for example: I agree to the [Terms of Service](https://example.com/terms) and acknowledge the [Privacy Policy](https://example.com/privacy). Links must use HTTPS and open in a new tab without clearing the form or checking the consent box. The same formatting works through API, CLI and MCP at settings.presentation.lead_capture.consent_text. Summer AI stores the exact text, including link labels and URLs, in the original submission and lead event. Turn on the form in Chat assistant instructions.

Open Website leads to view saved contacts and their original conversations. Open a conversation to correct contact details. Summer AI keeps the original submission and correction history.

Receive lead events

Use Summer AI's signed webhooks to connect your CRM or team notifications. Subscribe to messenger.lead.submitted with summer webhooks save or summer_webhooks_save in MCP. Webhook setup requires automation.manage. The signing secret stays in your server's secret store. See webhook setup and signature checks.

The event includes:

  • id: the event ID. Use it to avoid duplicate processing.
  • company: the Summer AI company ID that owns the lead.
  • environment: staging or production.
  • data.lead_id: the conversation ID.
  • data.submission_id: the original saved message ID.
  • data.installation_id: the widget installation ID.
  • data.name, data.email, data.phone and data.company_name: submitted contact details.
  • data.message: the visitor's optional message.
  • data.consent_text and data.consented_at: the accepted consent and its time.

Verify the signature and expected company before you process an event. Return a successful response only after your system accepts it. Summer AI retries failed deliveries. An exact form retry does not create another submission event. Human contact corrections do not trigger another submission notification.

Use summer_messenger_leads_list or the API to read your company's lead list. Reading leads requires cases.read and current company membership.

Open a prefilled booking page

Set Booking or follow-up URL and Button after submission in the installation settings. Summer AI shows the button after it saves the form. The URL receives a summer_lead code. Contact details do not appear in that URL. The code expires after 15 minutes and does not sign a visitor into an account.

Your server exchanges the code with:

sh
BASE="https://api.gosummer.ai/v1/companies/{company}/environments/{environment}"
curl -X POST "$BASE/messenger/leads/handoff" \
  -H "Authorization: Bearer YOUR_SUMMER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"code":"VALUE_FROM_SUMMER_LEAD_QUERY_PARAMETER"}'

This request requires cases.read. The code must belong to the selected company and environment. Use the returned contact fields to prefill your calendar. Keep the Summer AI access token on your server. The visitor still chooses a time and confirms the booking.

Summer AI's own website uses this handoff to open its call calendar with the submitted details. It sends lead notifications to the team's configured Slack destination.

Require registration before chat

In Customer messenger → Welcome screen and contact form, turn on Require details before visitors can chat. Allow visitors on the installation so people without an account can register. This setting also enables the form; you do not need to enable the optional contact-form button separately.

Visitors must submit their name, email, phone number and contact consent before they can send a chat message or start a voice session. Signed-in customers skip registration. Name, email and phone are the default registration fields even when the optional follow-up form hides the phone field.

Add up to 10 additional text or dropdown fields and choose which are required. Each field has a unique key, a customer-facing label, and dropdown choices when applicable. Required fields are checked by both the widget and Summer AI's server. Summer AI saves these answers and the exact consent text with the contact submission. Registration does not post the form or consent as a chat message and does not start an assistant reply. Only text entered in the optional message field is sent in chat. Company is optional unless you explicitly require it; blank optional fields are omitted from the booking contact.

Submissions use the existing messenger.lead.submitted webhook. Add an endpoint in Website leads → Lead notifications. The event also includes:

  • data.lead_profile_id: a stable contact identifier for the normalized email within your company and environment.
  • data.custom_fields: answers indexed by your configured field keys.

Summer AI saves the lead and queues the webhook in one transaction. Delivery can retry without holding up the chat; receivers should deduplicate by event ID. The visitor's recovered browser session remembers registration. The email associates lead submissions, but entering an email does not verify ownership, sign someone into a customer account, or expose another browser's conversations.

UP NEXTConnect signed-in accounts →