create_enquiry_source
Set up a portal that sends ready-made enquiries by mail (Ofri, Renovero, local.ch, a trade directory). No code needed: the sender and/or subject pattern decide which mails belong to this source, and the target campaign decides where the leads go. At least one of from_pattern / subject_pattern is required — a source with neither would match every mail in the inbox and turn invoices into leads. Cost per enquiry: give cost_amount, or cost_pattern to read it out of the mail (the pattern wins). Left empty it stays UNKNOWN, which is not the same as free.
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": {
"name": "<name>",
"portal": "<portal>"
},
"name": "create_enquiry_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | How the tenant calls this source, e.g. 'Portal Dachsanierung'. | |
| format | No | 'etikettiert' reads 'Field: value' lines (most portals). 'schadstoffanalyse' is the existing, mail-tested reader for Schadstoffanalyse.ch. | |
| portal | Yes | ofri | renovero | localch | schadstoffanalyse | anything else. | |
| campaign_id | No | Where the leads land. Omitted: no campaign, the lead is still created. | |
| cost_amount | No | Fixed cost per enquiry. | |
| cost_pattern | No | Regex with ONE group holding the amount, e.g. "Kosten:\\s*CHF\\s*([\\d'.,]+)". | |
| from_pattern | No | Substring of the sender address, e.g. '@ofri.ch'. | |
| cost_currency | No | Default CHF. | |
| subject_pattern | No | Substring of the subject, e.g. 'Neue Anfrage'. |