Set conversion goals
set_goalsSet conversion goals for a landing page. Goals define what counts as a "conversion" — the primary actions you want visitors to take. You can set multiple goals per page.
Conversion rate is calculated from unique visitors who completed at least one configured goal. Each goal is still tracked separately in analytics, and improvement suggestions adapt to goal types.
Examples:
User says "カフェの予約ページを作って" → goals: [{ goalType: "cta_click", label: "予約サイトへ" }]
User says "資料請求と LINE 登録ができるページ" → goals: [ { goalType: "form_submission", label: "資料請求フォーム" }, { goalType: "cta_click", label: "LINE登録" } ]
IMPORTANT: Always call this after create_site when the page purpose is clear. If the user mentions forms, inquiries, signups → include form_submission goal. If the user mentions external links, bookings, LINE, phone, EC store → include cta_click goal.
What it replaces: the page's whole goal list. Goals left out are deleted, including the form_submission goal create_form added, and Convika keeps no copy of them; analytics then count conversions by the new list. To keep a goal, read the list with list_goals first and send it again with the new ones. Recorded visits, clicks, and form entries stay as they are.
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": {
"siteId": "<siteId>",
"goals": "<goals>"
},
"name": "set_goals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goals | Yes | List of conversion goals (1-5) | |
| siteId | Yes | The ID of the page to set goals for |