Set a value

Free

Saves any string value under a named key for later retrieval. An optional TTL causes the value to expire automatically after the specified number of hours.

Cost

Free

What it accepts

Set these inside the intent when you run it.

keyrequired

The name to store the value under.

valuerequired

The value to store.

ttl_hoursoptional

Hours until the value expires automatically. Omit to store indefinitely.

What you get back

Confirmation that the value was stored.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Key-Value Store skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/kv/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"set","key":"task_status","value":"completed","ttl_hours":"24"}}'

Example requests

  • Remember that my session token is abc123
  • Store "completed" under the key "task_status"
  • Save this result and expire it after 24 hours