Tensic projects do not have to wait for a user to type. Routines run a message against a project on a schedule, channels expose a project on messaging platforms, event webhooks notify your own systems when something happens, and the OpenAPI spec lets you build your own automation on top of the platform.
Create a routine to run an agent on a schedule
A routine sends a fixed message to a project at a set interval, like a scheduled job. The agent handles it with its normal prompt, tools and sandbox. Use routines for recurring work such as reports, health checks, or syncing and summarising data.
- Open the project and select the Routines tab. The Schedule board lists existing routines.
- Click New routine.
- Fill in:
- Name – for example
Daily health check. - Message – the instruction the routine sends to the project, for example
calculate report X. - Schedule – the interval. The list offers Every minute, Every 5 minutes, Every 15 minutes, Every 30 minutes, Every hour (the default), Every 6 hours, Every 12 hours, Every 24 hours and Every 7 days.
- Enabled – on by default; switch it off to create the routine without running it yet.
- Name – for example
- Click Create.
Through the API, a routine's schedule_minutes can be any whole number from 1 to 10080 (7 days).
Keep the routine's message short and define the task itself in the project's system message. For example, describe in the system message what "report X" contains and where the data comes from; the routine then only has to say calculate report X. Everything the agent runs during a routine runs in the project's sandbox.
Monitor and run a routine from the Schedule board
Each routine appears as a card on the project's Routines tab. The card shows:
- the schedule (for example every 1h), the time zone, the Message, and the Next run (for example "in 58m");
- Last 3 fires – the latest runs with time, trigger (scheduled or manual), status and duration;
- Fire result – the start of the agent's answer from the latest run (Show more expands it), with Fire now to run the routine immediately without waiting for the schedule;
- History – all earlier runs, grouped by day;
- API – the
curlcommand that fires the routine from a script:POST /projects/{id}/routines/{routine id}/firewith anAuthorization: Bearer <API key>header (replaceYOUR_API_KEYwith a project key). The call runs the routine's message and returns the project's normal response, including theanswer.
Use the pencil icon on the card to edit the routine, the bin icon to delete it, and the toggle to enable or disable it. Scheduled runs are picked up by the platform's routines cron job, so a run can start shortly after its scheduled time.
If the project has memory enabled, routine runs are stored in the agent's memory like any conversation. Routines are best suited to stateless tasks, so consider running them on a project without memory, or check that routine output does not crowd out user conversations.
Monitor routines and crons across the platform (admins)
Platform admins can see every routine configured on the platform and the scheduled system jobs that run them.
- In the sidebar, open Observability.
- The tabs include Health, Workers, Spend, Rate limits, In flight, Containers, Routines, Exporter, Inference logs, Audit Logs, Platform logs and Cron Logs. Select Routines to see all routines on the platform with project, name, interval, last run and an Enabled toggle. Disable a routine here to stop it centrally, for example if it is misused or runs too often.
- Select Cron Logs to see the platform's scheduled jobs (system crons, not operating-system crons) with the columns Job, Status, Message, Items, Duration and Date. The
routinescron is the job that fires routines (its message names each routine it fired); other crons handle tasks such as re-embedding, bulk ingest, memory indexing and knowledge-base syncs. - Expand a log entry to read its full output when a job reports an error.
Two tabs show how hard projects are being used. Rate limits lists requests served and refused per project per minute against each project's limit (default 120 requests a minute, at most 240), and In flight shows model calls running at once, calls that waited for a place and calls refused after waiting up to 10 seconds (default 64 at once, at most 256). Both have a time-range selector and a Change in Settings button. Through the API they are GET /observability/rate-limits and GET /observability/in-flight, and a project's own limit is its in_flight_limit option.
Connect a project to messaging channels
A project's Integrations tab lists the Channels the project can be reached on. Each channel stores its own credentials; saving one never touches the others.
Available channels:
- Telegram
- Slack
- WhatsApp Business Cloud
- Email · SMTP – managed on the team: SMTP is not stored per project, and the
send_emailtool uses the owning team's relay. - SMS · Twilio
- Open the project and select the Integrations tab.
- On the channel card, click Credentials and fill in the required fields (the card shows how many are set, for example "Not configured · 0 of 6 fields set"). Click Save in the dialog.
- Click Test connection to check the credentials. It is offered for Slack and WhatsApp Business Cloud and stays greyed out until the channel is configured.
The same tab also holds the project's Widgets (see the widget guide) and Event webhooks.
Receive Tensic events in your own systems with webhooks
Event webhooks send an HTTPS request to your system when something happens in a project, for example so your back end can react when a budget runs out.
- Open the project, select Integrations and scroll to Event webhooks.
- Enter the endpoint URL. It must be HTTPS; private (RFC 1918) hosts are refused at delivery time.
- Optionally set a Signing secret, or use rotate to generate one. Tensic then signs each request body with HMAC-SHA256 and sends the signature in the
X-Tensic-Signatureheader. Leave empty to skip signing. - Under Subscriptions, switch on the events you want. The header shows how many are active, for example "4 / 5 events · all (default)": until you choose events explicitly, every event except the opt-in budget_warning is delivered.
- budget_exceeded – the project hit its budget cap; fired before the caller receives the refusal.
- budget_warning – the project crossed 80 % and then 95 % of its budget; fires once per threshold per month. Opt-in.
- sync_completed – a knowledge-base sync source (URL, S3, Drive, Confluence, SharePoint) finished; one event per source per run.
- eval_completed – an eval run finished, with the score and per-metric breakdown.
- routine_failed – a scheduled routine raised an error; the body carries the exception summary.
- Use the Payload inspector to see a sample Body (with
event,project_id,project_name,fired_atand event data) and Headers for each event, ready-made signature checks (Verify · Python, Verify · Node) and a cURL command to test your endpoint. - Use Fire test event in the Test console to send a test event to your endpoint; the button is enabled once a URL is set. Delivery is fire-and-forget with a 10 second timeout, and the console does not show your endpoint's response, so check your own endpoint's log for a
2xx. - Click Save.
Always verify X-Tensic-Signature in your endpoint before acting on a webhook.
Export traces to Langfuse, LangSmith or an OpenTelemetry collector
Tensic can send traces and metrics (tokens, cost, latency, tool calls) to your own observability stack. A platform admin sets the platform-wide destination; a project can add its own.
Platform destination (admins). Open Observability → Exporter (the same settings are under Settings → Observability).
- Choose a Vendor: Generic OTLP, LangSmith or Langfuse.
- Fill in the fields for the vendor:
- Generic OTLP – OTLP endpoint, Protocol (gRPC, normally port 4317, or HTTP/protobuf, port 4318) and Headers (
k=v,k2=v2, for API keys; stored encrypted and shown masked). - Langfuse – OTLP endpoint (pick a Region chip: EU, US, JP or HIPAA, or paste your self-hosted address; a bare host gets
/api/public/oteladded), Langfuse public key and Langfuse secret key. - LangSmith – LangSmith API key, LangSmith project and Workspace ID.
- Generic OTLP – OTLP endpoint, Protocol (gRPC, normally port 4317, or HTTP/protobuf, port 4318) and Headers (
- Optionally change the Service name (default
tensic). Switch on Export prompts and completions only if prompt, completion and tool-argument content may leave your instance; projects with logging disabled stay excluded and redaction rules still apply. - Use Send a test span to check that the collector accepts data, then Save. Workers pick up the change within about 15 seconds. With no endpoint set, Export is off.
LangSmith and Langfuse exports are traces only (HTTP/protobuf, no metrics). Langfuse shows Tensic's billed cost on each model call, in the instance's currency.
Project destination. In a project's Logging tab, Trace export → Export to chooses where that project's traces go: The platform's destination only (default), The platform's and this project's own, or Only this project's own destination. The last option is available only when an admin has switched on Let projects export only to their own destination in the exporter settings. A project's own destination has the same vendor fields, Send prompts and completions to this destination and Test connection; the project's logging and redaction rules still apply.
Through the API these are the settings fields observability_vendor, observability_otlp_endpoint, observability_otlp_protocol, observability_otlp_headers, observability_langfuse_public_key, observability_langfuse_secret_key, observability_langsmith_api_key, observability_langsmith_project, observability_langsmith_workspace, observability_capture_content and observability_allow_project_replace, and the same names (plus observability_mode: platform, add or replace) in a project's options. POST /projects/{id}/observability/test sends a test span.
Build your own integration from the Tensic OpenAPI spec
Everything in Tensic is available through its API, described by an OpenAPI spec. The sidebar links to Documentation and to Swagger, the interactive API reference. Each project also has an API button in its header with ready-made calls for that project (chat, streaming chat and more) as cURL, Python, JavaScript, PHP, Go and Ruby examples.
The fastest way to build on Tensic is to let a coding agent (such as Claude Code, OpenAI Codex or OpenCode) write the code against the spec:
- Download the Tensic OpenAPI spec and place it in your project folder.
- Tell the coding agent what you want, and point it to the spec. For example: "This is the OpenAPI spec of the Tensic API. Build a simple chat app where a user can ask questions to project 48 and see the answers."
- Create an API key for the project in its Access tab and give it to the app through an environment variable, not in code.
- Run and test the result; ask the agent to fix anything that does not match the spec.
A good first exercise is a small ChatGPT-style chat app on an agent project: it exercises memory, memory search, tools and the sandbox terminal in one go.
Endpoints that are often useful in automation:
POST /projects/{id}/chat– send a message (start a conversation by omittingid, continue it by passing the returnedid). Router projects add anodestrace to the response (see the router guide). Agent responses also carry details such asturn_meta(model, tokens and latency per turn).POST /projects/{id}/routines/{routine id}/fire– run a routine now;GET /projects/{id}/routines/{routine id}/historylists its runs.GET /projects/{id}/analytics/overview,/usageand/requests.csv– the data behind the project's Analytics page, including a CSV export of requests.POST /projects/{id}/v1/classifier,/entities,/sentiment,/answer,/decideand/fill-mask– small-model task endpoints on a project: zero-shot classification with your own labels, entity extraction, sentiment, extractive question answering, multi-question decisions and masked-word prediction. They are served by the classifier models the team has been granted. (These replaced the older/tools/...paths.)POST /projects/{id}/move– move a project to another team of its owner (GET /projects/{id}/move-targetsshows which moves are possible). The move is refused when the new team lacks a model the project uses or when the project is linked to other projects of its current team (guards, knowledge search, router Call project or Classify steps).
Common questions
What is the difference between a routine and a webhook?
A routine makes Tensic do something on a schedule (send a message to a project). A webhook makes Tensic tell your system that something happened (budget, sync, eval, routine failure).
Can I trigger a routine immediately?
Yes. Click Fire now on the routine's card, or call it through the API shown in the card's API section.
How do I know when a routine fails?
Subscribe to routine_failed under Event webhooks, and check the card's Last 3 fires and History. Admins can also check Observability → Cron Logs.
Where do I define what the routine actually does?
In the project's system message. The routine's Message only needs to name the task.
Can a platform admin stop someone else's routine?
Yes. In Observability → Routines, admins see every routine on the platform and can disable each one.
How do I verify that a webhook really came from Tensic?
Set a Signing secret and check the HMAC-SHA256 signature in the X-Tensic-Signature header. The Payload inspector shows ready-made verification code for Python and Node.
Why is my webhook to an internal server not delivered?
Webhooks must use HTTPS to a public host; private (RFC 1918) addresses are refused at delivery time.
Can I change how often a routine runs?
Yes. Edit the routine (pencil icon) and pick another Schedule, or send a new schedule_minutes (1 to 10080) through the API.
Is there an SDK?
Build directly against the OpenAPI spec. Coding agents can generate a client from the spec in any language.