NewDevelopers

AI chats in your app that keep going, wait for your approval, and cap what each user spends

The Playcode SDK now does the hard parts of an AI agent for you. Ask the agent for a chat in your app, and it comes with these by default.

  • Conversations that keep going. Each of your users has their own conversations, saved in your app's database. An answer goes on when the page reloads or the server restarts, and picks up from its last finished step.
  • Actions wait for approval. An action your user confirms - a booking, an email in their name - waits for their Approve or Deny in the chat. An action only you allow, such as a refund, waits for you on your app's admin page.
  • A daily line per user. Set what one of your users may spend in a day. Past it, the chat says so before it calls a model.
  • What each user costs. Ask the agent what your app's AI cost, per user, per model or per day.
  • A spare model. Name a second model, and when the first one's maker is down, the chat goes on with it.
  • Long chats stay inside the model's limits. Old tool results are cleared first, then a short brief stands for the older part.
  • Agents cost less. An agent reads the part of its prompt that repeats from the cache, at the model's cache price.
  • Tested without credits. A scripted model and recorded runs let you test your agent with no network.

The chat page is plain and yours to restyle. Your app's secret key never reaches the browser.

Try it: Add a support chat to my app - each customer has their own conversation, refunds wait for my approval, and a customer can spend at most 1 credit a day.