create_form_submission
Create a CallRail form submission manually to record offline or non-CallRail leads with attribution, lead status, notes, tags, and value.
Instructions
Manually create a form submission (e.g. backfill an offline lead).
Useful when you receive a lead through a non-CallRail-tracked channel (paper form, in-person, etc.) and want it visible in CallRail with proper attribution + lead-status workflow.
CallRail's POST /form_submissions accepts exactly: company_id, form_url, form_data, and EITHER session_id OR all three of referrer / referring_url / landing_page_url. It parses phone numbers out of form_data to find or create the person, so put the customer's phone, name and email inside form_data (there are no customer_* body fields).
Args:
company_id: 'COM...' id. Required.
form_url: URL of the page the form was submitted to. Required.
form_data: Dict of form-field values, e.g.
{"name": "Kevin", "email": "k@x.com", "phone": "412-555-1234"}.
Required and non-empty.
referrer / referring_url / landing_page_url: Attribution. All three
are required unless session_id is given. Use the original web
context if known, or "(direct)" / "https://offline" placeholders
for in-person leads.
session_id: 'SES...' id of an existing web session; replaces the
three attribution fields.
note, tags, value, lead_status: Lead-management fields. The POST
endpoint does not accept them, so they are applied with a
follow-up PUT; the response reports lead_fields_applied or
lead_fields_not_applied (plus api_warnings). value is
sent as a currency string ("12.50"); lead_status is
'good_lead' or 'not_a_lead'.
account_id: Auto-resolves if omitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"form_url": "<form_url>",
"form_data": "<form_data>"
},
"name": "create_form_submission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| tags | No | ||
| value | No | ||
| form_url | Yes | ||
| referrer | No | ||
| form_data | Yes | ||
| account_id | No | ||
| company_id | Yes | ||
| session_id | No | ||
| lead_status | No | ||
| referring_url | No | ||
| landing_page_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |