pinecallDocs
Get started / Build your first agent

Build your first agent

Forty minutes on Pinecall Cloud: an agent that answers from your documents, remembers who called, is tested, and goes live.

In about forty minutes you go from an empty folder to an agent that picks up a call, answers from documents you wrote, remembers who called, passes a test, and is reachable by your callers. You write the agent in the language your team already uses; everything else runs at cloud.pinecall.io.

Pick your language#

Each tutorial is the same walk, written for one language, with every command and what it prints:

What every tutorial walks through#

Whatever the language, the steps are the same, because the agent runs the same way:

Install the CLI and sign in#

npm i -g pinecall installs the one pinecall command, for every language. pinecall login signs this machine in through the browser, once; every project runs in the org its pinecall.json names.

Write the class#

An agent is one class. Its fields are what the agent remembers during a call, its tools are what the model may do, and its docstrings are what the model reads. A view beside it says what to do in the current turn. The class also declares what it is judged by and who it is tested with: pinecall new switches on the eight judges Pinecall recommends and two of its callers, and the console shows both locked, as the class's.

Read the prompt, then talk to it#

pinecall prompt prints the exact text the model reads, with no key and no network. pinecall start runs the agent on your machine and holds it; pinecall chat, in a second terminal, gives you a written caller against it.

Give it knowledge and memory#

A page the agent knows by heart, a folder of documents it searches on every turn, and a memory policy that says what to remember about a caller. None of it is code: they are settings, changed without a deploy.

Test it#

A unit test with no network and no model, then a golden: a conversation written down with what must be true at the end, played against a real model by pinecall test.

Call it from your phone#

pinecall line from +34600000000 says which phone is yours, once. While pinecall start holds the agent, your calls to its number reach your copy on your machine, and everyone else's reach production as before. A simulation (pinecall simulate) plays a synthetic caller instead, written and free of voice.

Ship it#

pinecall deploy runs a TypeScript project on Pinecall. A Python or a Ruby agent runs on a server of yours with pinecall start --prod, or inside the app you already have. A number for it is imported from your own Twilio account or bought here (Phone numbers).

Before you start#

  • Node 24 or later, for the pinecall CLI, whatever language the agent is written in.
  • A Pinecall account. Sign up at cloud.pinecall.io/signup; every tutorial runs in your org's sandbox, which is yours to break. A new org starts on the free trial — 30 minutes of calls, 500 evals and 10 simulations a month in the sandbox, on Pinecall's own keys for its launch models, so you bring none to begin. pinecall limits (or the Overview's Limits card) shows what is left and whose keys your calls run on; the Overview's Finish setting up lists what is still to do (Limits & provider keys).
  • For Python, Python 3.11 or later and uv. For Ruby, Ruby 3.2 or later and Bundler.

Next steps#