Needs keys Sets a custom memory prompt for the workspace, or goes back to the default. The prompt takes effect only when an OpenAI key is set; mock mode ignores it.
Request#
| Field | Type | Required | Description |
|---|---|---|---|
memory_prompt |
string | No | New prompt, up to 2000 characters. Omitting it, or sending an empty or whitespace string, resets to the default. |
reset |
boolean | No | true resets to the default prompt, whatever memory_prompt says. |
Example request#
curl -X PUT https://api.tried.com.au/contact-memory-settings \
-H "Authorization: Bearer $TRIED_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "memory_prompt": "Track bookings, cancellations and the preferred clinic. Use short bullet points." }'const res = await fetch("https://api.tried.com.au/contact-memory-settings", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.TRIED_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
memory_prompt: "Track bookings, cancellations and the preferred clinic. Use short bullet points.",
}),
});
const settings = await res.json();import os, requests
res = requests.put(
"https://api.tried.com.au/contact-memory-settings",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
json={"memory_prompt": "Track bookings, cancellations and the preferred clinic. Use short bullet points."},
)
settings = res.json()Response#
200 OK
{
"memory_prompt": "Track bookings, cancellations and the preferred clinic. Use short bullet points.",
"is_default": false,
"default_memory_prompt": "Keep a short, factual brief about this contact for future conversations: who they are, what they asked for, decisions and commitments made, open follow-ups, and stated preferences (time, channel, language). Drop small talk. Update or remove facts that the latest conversation changed. Use short bullet points.",
"max_chars": 2000,
"price_per_conversation": 0.01
}The fields are described in Get contact memory settings.
Errors#
| Status | When |
|---|---|
400 |
Body fails validation, for example memory_prompt: String must contain at most 2000 character(s). |
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request, or the caller's dashboard role is not admin or developer (Requires role: admin or developer). This route needs the calls scope. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.