Help center

Edit page sections

help_center_edit_sections · Changes data · Markdown

Adds, changes, moves, copies or removes sections on one page of the draft.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Add a short FAQ to the help center home page: repair times, and whether we ship bikes out of state.

Your agent callshelp_center_edit_sections$0.001 a call

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "page": "home",
  "ops": [
    {
      "op": "add",
      "type": "faq",
      "props": {
        "title": "Before you bring your bike in",
        "items": [
          {
            "q": "How long does a repair take?",
            "a": "A tune-up takes 2 to 3 working days, a repair that needs parts 5 to 7."
          },
          {
            "q": "Do you ship bikes out of state?",
            "a": "Yes, built and tuned, free on orders over $1,000."
          }
        ]
      }
    }
  ]
}
What comes back
{
  "rev": 1,
  "warnings": [],
  "css_warnings": [],
  "dirty": true,
  "preview_url": "https://conecto.chat/help/halverson-cycle-repair/?preview=eyJ3IjoxfQ:1xHLr9:t9SGxoL56kn0HOKb7xYys9VKYy1yJkqWzo6EZQY4L8g",
  "results": [
    {
      "op": "add",
      "id": "s_8826d9c8"
    }
  ],
  "sections": [
    {
      "id": "s_70fec6dc",
      "type": "hero"
    },
    {
      "id": "s_77338133",
      "type": "collections"
    }
  ]
}

Use it when

One part of a page changes: a new FAQ, a banner, a section moved up.

What it does

Add, update, move, duplicate or remove sections on one page of the DRAFT, in order. add: {op:"add", type, props?, style?, at?}; update: {op:"update", id, props?, style?} (merged into what is there); move: {op:"move", id, to}; duplicate / remove: {op, id}. Returns the id of anything added and the page’s new order.

What comes back

rev, warnings, dirty and a preview link, the result of each change (with the id of anything added), and the page's sections in their new order. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
pageRequiredstringOne of: home,collection,article,search.
opsRequiredarray of objects1 to 30 items.
ops[].opRequiredstringOne of: add,update,move,duplicate,remove.
ops[].typestring
ops[].idstring
ops[].propsobject
ops[].styleobject
ops[].atinteger
ops[].tointeger
revintegerThe draft revision you last read (from any tool that returns `rev`). If the draft changed since, nothing is saved and you get the current revision to re-read.

The call

Over MCP, call help_center_edit_sections on https://api.conecto.chat/mcp/helpcenter. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/help_center_edit_sections \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"home","ops":[{"op":"add","type":"faq","props":{"title":"Before you bring your bike in","items":[{"q":"How long does a repair take?","a":"A tune-up takes 2 to 3 working days, a repair that needs parts 5 to 7."},{"q":"Do you ship bikes out of state?","a":"Yes, built and tuned, free on orders over $1,000."}]}}]}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
tool_error422The draft changed since the rev you sent, or nothing to change was given.Read the design again with help_center_get_design, then redo the change with its rev.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md