AI Chat
Hub Chat is the conversational entry point to the AI layer. Open it from the left sidebar or pressCmd+K (Mac) / Ctrl+K (Windows/Linux).
Chat is workspace-aware. When you ask a question or give an instruction, the AI can see your docs, lists, and workflow state — and act on them — without you pasting in any context manually.
What you can do in Chat:
- Ask questions about docs, list records, or workflow statuses
- Instruct the AI to create, update, or move list records
- Draft documents, emails, or workflow messages
- Kick off a workflow or escalate a task to a named agent
- Get an execution plan for a goal and step through it interactively
AI Agents
Agents are autonomous AI workers you configure once and run on demand or on a schedule. Where Chat is interactive, agents are task-oriented: you define what they do, what they can access, and what skills they have — then let them run.Creating an Agent
Name and describe the agent
Give the agent a clear, role-based name (e.g.,
support-triage, invoice-processor, doc-reviewer). Write a brief description of its purpose — this is used by the handoff system when routing context between agents.Define the agent's context
Select which workspace objects the agent has access to: specific docs, lists, workflows, channels, and mail addresses. Limiting context to what’s relevant keeps the agent focused and reduces noise.
Add skills
Skills are capabilities beyond reading and writing workspace data. Add skills from the library or write custom code. See the Skills section below for details.
Set a trigger
Agents can be triggered manually, by a workflow step, by an incoming email, by a new list record, or on a cron schedule. Configure the trigger under the Trigger tab.
Custom Skills
Skills extend what an agent can do beyond reading and writing Hub data. Each skill is a function the agent can call during its execution. Built-in skills include:ocr.extract— Extract structured data from uploaded documents and imagesmail.send— Send an email from a connected mail addresswebhook.post— POST data to an external endpointlist.query— Execute a filtered query against any listworkflow.trigger— Start a named workflow with a payload
Opening the Workspace Programmatically
You can configure the Hub workspace in code — useful for custom integrations, scripted agent runs, and embedding Hub capabilities into your own applications. Thepharen.openWorkspace call assembles a named workspace context from the objects you specify:
| Key | What it loads |
|---|---|
docs | Named docs, made available to agents and the App Builder as readable context |
builder | App Builder apps to mount in this workspace session |
workflows | Workflows that can be triggered from within this session |
channels | Channels the session can post to or read from |
mail | Connected mail addresses available for sending and receiving |
agents | Named agents that can be invoked or handed off to |
The
pharen SDK is available as an npm package (npm install @pharen/sdk) and as a Python package (pip install pharen). Both expose the same openWorkspace interface.Execution Planning
Execution planning turns high-level goals into prioritized, actionable next steps. When you give an agent (or the Chat interface) a goal rather than a specific task, Hub’s planning system breaks it into a sequence of steps, estimates dependencies, and begins executing in order. Example prompt:“Process all invoices in the Pending OCR status: extract their data, validate against our vendor list, flag any that exceed €10,000 for manual review, and move the rest to Pending Approval.”The planner will produce steps like:
- Query the Invoice list for records with status
Pending OCR - For each record, call
ocr.extracton the attached document - Match the extracted vendor name against the Vendor list
- Flag records over €10,000 by setting their status to
Manual Review Required - Move all remaining records to
Pending Approval - Trigger the
review-loopworkflow for each approved batch
Agent Handoffs
Handoffs let you coordinate specialized agents. Instead of building one monolithic agent that does everything, you build focused agents for specific domains and let them pass context and ownership to each other as a task evolves.How Handoffs Work
When Agent A determines that the next phase of a task is better handled by Agent B, it initiates a handoff:- Agent A packages its current context — what it learned, what it did, what’s pending.
- Hub routes that context bundle to Agent B, which is configured for the next phase.
- Agent B picks up exactly where Agent A left off, with no loss of information.
- If Agent B needs to escalate back or hand off to a third specialist, it can do so.
Configuring Handoffs
In an agent’s configuration, open the Handoffs tab and define the conditions under which this agent should transfer to another:App Builder
The App Builder lets you create custom workflow applications inside Pharen Hub — without building and hosting a full web application. Apps are configured through a visual builder and can combine forms, list views, approval panels, and AI actions into a cohesive interface for a specific process.What You Can Build
Approval apps
A tailored interface for reviewers: the relevant doc context, the structured record, and one-click approve/reject — all in one screen.
Data entry apps
Custom forms that write directly to a List, with field validation, conditional logic, and AI pre-fill from uploaded documents.
Dashboard apps
Real-time views of list data, workflow statuses, and agent activity — configured for a specific team or stakeholder.
Process apps
Multi-step wizard interfaces that walk users through a process, triggering workflow steps at each stage.
Building an App
Choose a template or start blank
Templates for common use cases (Invoice Approval, Support Triage, Onboarding Checklist) give you a working starting point. Or start from a blank canvas.
Add screens and components
Drag components onto the canvas: forms, list views, approval panels, text blocks, AI action buttons. Each component is connected to a workspace object (a list, a doc, a workflow, or an agent).
Configure logic
Define what happens when a user submits a form, clicks a button, or completes a step. Actions include: write to list, trigger workflow, run agent, send mail, post to channel.