• AI reference · Area online

member_access

Give or take away member access. A person's member area, by email: what they can open (from: bought, plan or given) and what you could give (can_give). give: a can_give product; take: an item they were given. Each waits for the owner's yes on your task (task); only the owner can say it, not a helper. Then it shows in, or goes from, their member area at once. What they bought or have by plan is never taken here: tell the owner to Refund it in Money.

Where it is

In the online area (your website: pages, forms, sign-ups, the member area, selling, classes and calls, going live; its look; payment links; course progress; giving or taking away member access): open it with tools_for { area: "online" }, then call it with use_tool { name: "member_access", args }.

Does it need a yes?

Needs the owner's yes: it makes a yes card, and nothing happens until the owner taps yes. Here: reading is direct; giving or taking away what a person opens is a member_access yes (the owner's only).

Inputs

InputTypeNeededAbout
emailstringyesThe person's email address. · up to 254 characters · format `^[^\s@<>",;]+@[^\s@<>",;]+\.[^\s@<>",;]+$`
givestringnoA product from can_give. · format `^[A-Za-z0-9][A-Za-z0-9._:-]{0,119}$`
takestringnoAn item they were given (from: given). · format `^[A-Za-z0-9][A-Za-z0-9._:/-]{0,99}$`
taskintegernoThe task you hold: the yes is asked there. · 1 or more
run_idstringyesThe run_id from start. Pass it on every call: it keeps your task held. · 1 to 100 characters

Example

{
  "name": "member_access",
  "arguments": {
    "email": "ana@example.com",
    "run_id": "the run_id from start"
  }
}

When it is refused

  • invalid: The input isn't right. The sentence names the field and the fix; nothing was done. Fix it and call again.
  • not_found: No such thing in this company (a task, file, person, record). Check the number or name, or list first.
  • not_allowed: Not without another step: the owner's yes, your own task held with pick_up, or a setting the owner turns on. The sentence says which.
  • taken: Someone else holds it (another AI on that task). Pick another task.
  • stale: It changed since you read it. Read it again and use the new version.
  • failed: On our side or a service's, never your input. Try again in a minute; if it keeps failing, call report_problem.