Skip to content

AI Agent

Per-user AI chats that call tools from the PhoenixKit API registry

v0.4.0 AI · updated 3 days ago · 379 downloads

Requires AI

mix.exs
{:phoenix_kit_agent, "~> 0.4"}

A personal assistant inside the application: each user has their own chats stored in the database, can attach files, and talks to a model that works through tools from the PhoenixKit API registry, limited to what the user can do in their session. Model calls, endpoints, credentials, budget and the request journal come from phoenix_kit_ai. The README marks it as under development.

Use it when

  • You want users to ask an in-app assistant to look up or change records they already have access to
  • You need per-user AI spending and turn limits with an admin overview

What it gives you

  • Chat panel opened from a button in the admin header, with chat list, rename and archive
  • Writes proposed by the assistant are confirmed by the user in the chat
  • File attachments kept in a hidden Storage library
  • Per-user settings: model, limits, on/off and personal instructions
  • Admin pages AI Agent > Users and AI Agent > Spending (today and this month)
  • Permissions agent and agent.manage

Install

1 Add to mix.exs

deps
{:phoenix_kit_agent, "~> 0.4"}

2 Fetch it and run its migrations

Terminal
$ mix deps.get && mix phoenix_kit.update

3 Switch it on in /admin/modules

Releases
  1. 0.4.0
  2. 0.3.0
  3. 0.2.0
Admin
/admin/agent

Related modules

What it needs, what builds on it, and its neighbours in AI.