"
- name: sheet_title
value: "MigratedData"
- name: rows
value: "{{steps.clean_rows.result.data.rows}}"
```
The Python step skips rows without a name or email and adds a `Status` of `Active`. Create the `MigratedData` tab first, for example with `GOOGLE_SPREADSHEET_ADD_SHEET` and the headers `["Name","Email","Department","Status"]`. The written records are in `steps.write_destination.result.rows`.
`GET_ROWS` fetches the whole tab before applying filters, so use a bounded range with the [range tools](/en/pages/tools/productivity/google_sheets) when you only need part of a large sheet. Keep a copy before bulk updates, and check the result for missing or empty matches.
# HubSpot
Source: https://docs.jinba.io/en/pages/tools/productivity/hubspot
Create, update, and look up HubSpot CRM contacts; fetch and search deals; look up companies and owners; log notes and tasks on a deal
## Overview
The HubSpot tools integrate with the HubSpot CRM API to manage contacts and read deals from your workflows. The contact tools key on the email address, so you can reconcile records without going through the Search API and its rate limit. The deal tools fetch a deal by ID or search deals by name, stage, owner, close or creation date, or any other property. The company and owner tools resolve the IDs a deal carries (its associated company, its `hubspot_owner_id`) into names, domains, and email addresses, and the note and task tools attach engagements to a deal without modifying the deal itself.
## Key Features
* `HUBSPOT_UPSERT_CONTACT`
* Create a contact, or update the existing one with the same email address. Supports custom properties.
* `HUBSPOT_GET_CONTACT`
* Fetch a contact by object ID or by email address. Returns `found: false` instead of failing when no contact matches.
* `HUBSPOT_GET_DEAL`
* Fetch a deal by object ID, optionally with associated contact and company IDs. Returns `found: false` instead of failing when no deal matches.
* `HUBSPOT_SEARCH_DEALS`
* Search deals by name, stage, pipeline, owner, or close / creation date range, with free-text and custom property filters. Paged.
* `HUBSPOT_GET_COMPANY`
* Fetch a company by object ID, optionally with associated contact and deal IDs. Returns `found: false` instead of failing when no company matches.
* `HUBSPOT_GET_OWNER`
* Fetch an owner by owner ID or by email address, returning their name, email, and user ID. Returns `found: false` instead of failing when no owner matches.
* `HUBSPOT_LIST_OWNERS`
* List the owners in the account, optionally filtered by email or limited to archived owners. Paged.
* `HUBSPOT_CREATE_NOTE`
* Create a note and attach it to a deal, contact, or company, with an optional timestamp and author.
* `HUBSPOT_CREATE_TASK`
* Create a task with a due date, status, priority, and assignee, and attach it to a deal, contact, or company.
## Authentication
For setup instructions, [see the HubSpot credentials page](/en/pages/credentials/hubspot).
| Config field | Description |
| - | - |
| `access_token` | A HubSpot access token (select from workspace secrets). Needs `crm.objects.contacts.read` and `crm.objects.contacts.write` for the contact tools, `crm.objects.deals.read` for the deal tools, `crm.objects.companies.read` for `HUBSPOT_GET_COMPANY`, `crm.objects.owners.read` for the owner tools, and `crm.objects.contacts.write` for the note and task tools. |
### Example: Look Up a Contact, Then Create or Update It
```yaml theme={null}
- id: find_contact
tool: HUBSPOT_GET_CONTACT
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: email
value: "customer@example.com"
- name: properties
value: "email, firstname, lastname, company"
- id: upsert_contact
tool: HUBSPOT_UPSERT_CONTACT
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: email
value: "customer@example.com"
- name: firstname
value: "Ada"
- name: lastname
value: "Lovelace"
- name: lifecyclestage
value: "lead"
- name: properties
value: '{"hs_lead_status":"OPEN"}'
```
### Example: List Deals Closing This Month for One Owner
```yaml theme={null}
- id: search_deals
tool: HUBSPOT_SEARCH_DEALS
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: owner_id
value: "12345678"
- name: close_date_from
value: "2026-09-01T00:00:00+09:00"
- name: close_date_to
value: "2026-09-30T23:59:59+09:00"
- name: sort_by
value: "amount"
- name: sort_direction
value: "descending"
- name: properties
value: "dealname, amount, dealstage, closedate"
- id: get_deal
tool: HUBSPOT_GET_DEAL
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: deal_id
value: "{{steps.search_deals.result.deals[0].id}}"
- name: associations
value: "contacts, companies"
```
### Example: Resolve a New Deal's Owner and Company
```yaml theme={null}
- id: search_deals
tool: HUBSPOT_SEARCH_DEALS
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: create_date_from
value: "2026-09-30T09:00:00+09:00"
- name: sort_by
value: "createdate"
- name: sort_direction
value: "ascending"
- id: get_deal
tool: HUBSPOT_GET_DEAL
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: deal_id
value: "{{steps.search_deals.result.deals[0].id}}"
- name: associations
value: "contacts, companies"
- id: get_owner
tool: HUBSPOT_GET_OWNER
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: owner_id
value: "{{steps.get_deal.result.properties.hubspot_owner_id}}"
- id: get_company
tool: HUBSPOT_GET_COMPANY
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: company_id
value: "{{steps.get_deal.result.associations.companies.results[0].id}}"
- name: properties
value: "name, domain, industry, city"
```
### Example: Log a Meeting Summary and a Follow-up Task on a Deal
```yaml theme={null}
- id: create_note
tool: HUBSPOT_CREATE_NOTE
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: deal_id
value: "98765432"
- name: body
value: "Meeting 2026-10-01
Reviewed pricing. Customer will confirm budget by next week.
"
- id: create_task
tool: HUBSPOT_CREATE_TASK
config:
- name: access_token
value: "{{secrets.HUBSPOT_ACCESS_TOKEN}}"
input:
- name: deal_id
value: "98765432"
- name: subject
value: "Follow up on budget confirmation"
- name: due_date
value: "2026-10-08T09:00:00+09:00"
- name: priority
value: "HIGH"
- name: owner_id
value: "12345678"
```
## Inputs
### `HUBSPOT_UPSERT_CONTACT`
| Input | Required | Description |
| - | - | - |
| `email` | Yes | The lookup key. An existing contact with this email is updated, otherwise a new one is created. |
| `firstname`, `lastname`, `phone`, `company`, `jobtitle`, `website` | No | Standard contact properties. |
| `lifecyclestage` | No | e.g. `subscriber`, `lead`, `marketingqualifiedlead`, `customer`. |
| `properties` | No | Any other HubSpot properties as a JSON object of internal name → value, e.g. `{"hs_lead_status":"OPEN"}`. A `null` value clears the property. |
A named input left blank is skipped, not sent — HubSpot reads an empty string as "clear this property", so clearing has to be asked for explicitly through `properties` (`{"firstname": null}`). Named inputs win over the same key inside `properties`. Setting `properties.email` to something other than the `email` input is rejected. A difference in letter case alone is treated as the same address.
Returns `result.id`, `result.created`, `result.properties`, and the raw `result.contact`.
### `HUBSPOT_GET_CONTACT`
| Input | Required | Description |
| - | - | - |
| `contact_id` | One of the two | HubSpot contact object ID. |
| `email` | One of the two | Contact email address. |
| `properties` | No | Comma-separated property names, e.g. `email, firstname, company`. HubSpot returns only a minimal set when this is empty. Custom properties use their internal name, which you can find under **Settings → Properties**. |
| `associations` | No | Comma-separated object types to also fetch associated record IDs for, e.g. `companies, deals`. |
Returns `result.found`, `result.id`, `result.properties`, `result.associations`, and the raw `result.contact`.
### `HUBSPOT_GET_DEAL`
| Input | Required | Description |
| - | - | - |
| `deal_id` | Yes | HubSpot deal object ID (the number in the deal's URL, or an `id` from `HUBSPOT_SEARCH_DEALS`). |
| `properties` | No | Comma-separated property names, e.g. `dealname, amount, dealstage`. Defaults to `dealname, amount, dealstage, pipeline, closedate, hubspot_owner_id`. |
| `associations` | No | Comma-separated object types to also fetch associated record IDs for, e.g. `contacts, companies`. |
Returns `result.found`, `result.id`, `result.properties`, `result.associations`, and the raw `result.deal`.
### `HUBSPOT_SEARCH_DEALS`
All inputs are optional. Named filters are combined with AND.
| Input | Description |
| - | - |
| `query` | Free-text search, matched as a prefix against the deal name and other default searchable properties. |
| `deal_name` | Whole-word match on the deal name, e.g. `renewal` finds "Acme renewal 2026" but `renew` does not. Add `*` to match the start of a word (`renew*`). Use `query` for a quick keyword search instead. |
| `deal_stage` | Deal stage internal ID, e.g. `appointmentscheduled`, `closedwon`, or the numeric ID of a custom stage. |
| `pipeline` | Pipeline internal ID, e.g. `default`, or the numeric ID of a custom pipeline. |
| `owner_id` | HubSpot owner ID (`hubspot_owner_id`). Not the user ID shown under Settings → Users. |
| `close_date_from`, `close_date_to` | Close-date range, compared as `>=` / `<=` against the deal's `closedate` timestamp. ISO 8601 date or date-time; a date without a time is read as midnight UTC, so `close_date_to: "2026-09-30"` excludes deals closing later that day. To include the whole day, pass an explicit end time such as `2026-09-30T23:59:59+09:00`. |
| `create_date_from`, `create_date_to` | Creation-date range against the deal's `createdate`, with the same formats and end-of-day caveat as the close-date range. To pick up only deals created since a previous run, pass that run's timestamp as `create_date_from`. |
| `filters` | Additional filters as a JSON array of `{"propertyName","operator","value"}` objects, e.g. `[{"propertyName":"amount","operator":"GTE","value":"10000"}]`. Operators: `EQ`, `NEQ`, `LT`, `LTE`, `GT`, `GTE`, `BETWEEN` (`value` + `highValue`), `IN` / `NOT_IN` (`values` array), `HAS_PROPERTY`, `NOT_HAS_PROPERTY`, `CONTAINS_TOKEN`, `NOT_CONTAINS_TOKEN`. |
| `properties` | Comma-separated property names to return for each deal. Same default as `HUBSPOT_GET_DEAL`. |
| `sort_by` | Property to sort by, e.g. `createdate`, `closedate`, or `amount`. |
| `sort_direction` | `descending` (default) or `ascending`. Only used when `sort_by` is set. |
| `limit` | Deals per page, 1–200. Default 20. |
| `after` | Paging cursor from a previous result's `next_after`. |
Returns `result.deals` (each with `id` and `properties`), `result.count`, `result.total`, and `result.next_after` (`null` on the last page).
### `HUBSPOT_GET_COMPANY`
| Input | Required | Description |
| - | - | - |
| `company_id` | Yes | HubSpot company object ID (the number in the company's URL, or an ID from `HUBSPOT_GET_DEAL`'s `associations.companies`). |
| `properties` | No | Comma-separated property names, e.g. `name, domain, industry`. Defaults to `name, domain, industry, city, hubspot_owner_id`. |
| `associations` | No | Comma-separated object types to also fetch associated record IDs for, e.g. `contacts, deals`. |
Returns `result.found`, `result.id`, `result.properties`, `result.associations`, and the raw `result.company`.
### `HUBSPOT_GET_OWNER`
| Input | Required | Description |
| - | - | - |
| `owner_id` | One of the two | HubSpot owner ID — the `hubspot_owner_id` on a deal or contact. Not the user ID shown under Settings → Users. |
| `email` | One of the two | The owner's email address. |
Returns `result.found`, `result.id`, `result.email`, `result.first_name`, `result.last_name`, `result.user_id`, `result.archived`, and the raw `result.owner`.
### `HUBSPOT_LIST_OWNERS`
All inputs are optional.
| Input | Description |
| - | - |
| `email` | Only return the owner with this email address. |
| `archived` | `active` (default) or `archived`. HubSpot returns one set or the other, never both. |
| `limit` | Owners per page, 1–500. Default 100. |
| `after` | Paging cursor from a previous result's `next_after`. |
Returns `result.owners` (each with `id`, `email`, `first_name`, `last_name`, `user_id`, and `archived`), `result.count`, and `result.next_after` (`null` on the last page).
### `HUBSPOT_CREATE_NOTE`
| Input | Required | Description |
| - | - | - |
| `body` | Yes | The note text, as plain text or simple HTML. Up to 65,536 characters. |
| `deal_id`, `contact_id`, `company_id` | At least one | The record(s) to attach the note to. The note is associated with every record you pass. |
| `timestamp` | No | When the note was written, as ISO 8601 or epoch milliseconds. Defaults to now. |
| `owner_id` | No | HubSpot owner ID to record as the author. Left unset when empty (a service key or private app token has no user of its own). |
| `properties` | No | Any other engagement properties as a JSON object of internal name → value. Named inputs win over the same key inside `properties`. |
Returns `result.id`, `result.properties`, and the raw `result.note`.
### `HUBSPOT_CREATE_TASK`
| Input | Required | Description |
| - | - | - |
| `subject` | Yes | The task title. |
| `due_date` | Yes | When the task is due, as ISO 8601 or epoch milliseconds. HubSpot requires a due date on every task. |
| `deal_id`, `contact_id`, `company_id` | At least one | The record(s) to attach the task to. The task is associated with every record you pass. |
| `body` | No | Task description, as plain text or simple HTML. |
| `status` | No | `NOT_STARTED` (default), `IN_PROGRESS`, `WAITING`, `COMPLETED`, or `DEFERRED`. |
| `priority` | No | `LOW`, `MEDIUM`, or `HIGH`. Left unset unless you pass one. |
| `task_type` | No | `TODO` (default), `EMAIL`, or `CALL`. |
| `owner_id` | No | HubSpot owner ID to assign the task to. Left unset when empty, which leaves the task unassigned. |
| `properties` | No | Any other engagement properties as a JSON object of internal name → value. Named inputs win over the same key inside `properties`. |
Returns `result.id`, `result.properties`, and the raw `result.task`.
## Notes
* **Not found is not an error**: `HUBSPOT_GET_CONTACT`, `HUBSPOT_GET_DEAL`, `HUBSPOT_GET_COMPANY`, and `HUBSPOT_GET_OWNER` return `result.found = false` on a missing record, so "look up, and create it if missing" can be an ordinary condition step.
* **Notes and tasks do not edit the deal**: engagements are separate records associated with the deal, contact, or company you pass. None of the deal's own fields are written; HubSpot only refreshes its activity-derived properties (such as last activity date), which any workflow keyed on those will see. The Engagements API documents `crm.objects.contacts.write` for creating them, not `crm.objects.deals.write`.
* **Engagement timestamps**: `timestamp` and `due_date` accept ISO 8601 or epoch milliseconds. A date without a time is read as midnight UTC, so pass an explicit time with an offset (`2026-10-08T09:00:00+09:00`) when the hour matters.
* **Creates are not retried by the tool**: the HTTP call behind a note or task create is never repeated by the tool itself, whatever the failure, because a repeat could create the record twice. A step-level `retry` you configure still re-runs the step after a definitive rejection such as a 429, but the step opts out of it when the failure is ambiguous (the request timed out inside the tool, the connection dropped, or HubSpot answered 5xx). One gap remains: a step-level `timeout` that fires mid-request is raised by the runner, not the tool, so it is retried like any other error — keep `retry` off such steps, or set the step timeout well above the tool's own 30 seconds. Check HubSpot for the record before re-running the step.
* **Owner IDs vs user IDs**: `hubspot_owner_id` is not the user ID shown under Settings → Users. Use `HUBSPOT_GET_OWNER` to turn an owner ID into a name and email address, or `HUBSPOT_LIST_OWNERS` to find the owner ID for a given person.
* **Search limits**: HubSpot allows at most 6 filters per search (named fields and `filters` entries combined), returns at most 200 deals per page and 10,000 per query, and rate-limits the Search API separately at 5 requests per second per account. The search index can lag a few seconds behind writes, so a deal created moments earlier may not appear yet.
* **Date properties**: `closedate` and `createdate` are date-times in HubSpot. The range inputs are converted to epoch milliseconds for you; values in `filters` are sent as-is, so prefer epoch milliseconds there.
* **Incremental pickup**: `create_date_from` is inclusive (`>=`). If you pass the `createdate` of the newest deal from the previous run, that deal is returned again, so de-duplicate by `id` downstream.
* **Concurrent writes are last-write-wins**: HubSpot's CRM API has no optimistic locking, so overlapping updates resolve per property. Do not use `HUBSPOT_UPSERT_CONTACT` for read-modify-write accumulation (reading a score, adding to it, writing it back) across runs that may overlap — use a HubSpot calculated property instead.
* **Archived contacts**: a contact in HubSpot's recycle bin still reserves its email address, so an upsert against it cannot succeed. Restore it from the recycle bin, or use a different address.
* **Timeouts**: every request has a 30-second timeout, with automatic retries on rate limits and transient server errors (except note and task creates — see above).
# Create, Update, and Search Jira Issues in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/jira
Use JIRA_CREATE_ISSUE to create, JIRA_GET_ISSUE and JIRA_SEARCH_ISSUES to find, JIRA_UPDATE_ISSUE to edit, JIRA_TRANSITION_ISSUE to move status, JIRA_ADD_COMMENT to comment, and JIRA_LIST_PROJECTS to list projects.
The Jira tools integrate with Atlassian Jira Cloud REST API v3 to help you manage project progress from your workflows. You can create, search, update, and transition issues, add comments, and discover projects.
* `JIRA_CREATE_ISSUE`
* Create an issue (task, story, bug, or sub-task) in a Jira project.
* `JIRA_GET_ISSUE`
* Fetch a single issue by its key (e.g. `PROJ-123`) or numeric ID.
* `JIRA_SEARCH_ISSUES`
* Search issues with a JQL query using the enhanced `/search/jql` endpoint. Returns paginated results with a `nextPageToken`.
* `JIRA_UPDATE_ISSUE`
* Update fields on an existing issue: summary, description, assignee, priority, and labels.
* `JIRA_TRANSITION_ISSUE`
* Move an issue to a new status (e.g. To Do → In Progress → Done), with an optional comment.
* `JIRA_ADD_COMMENT`
* Add a comment to an issue. Accepts plain text and converts it to Atlassian Document Format (ADF) automatically.
* `JIRA_LIST_PROJECTS`
* List all accessible projects to discover project keys.
## Connect with Jira credentials
For setup instructions, [see the Jira credentials page](/en/pages/credentials/jira).
Each step requires three configuration fields:
| Config field | Description |
| - | - |
| `base_url` | Your Jira site URL, e.g. `https://your-domain.atlassian.net` |
| `email` | Your Atlassian account email |
| `api_token` | A Jira API token (select from workspace secrets) |
## Create and search issues
```yaml theme={null}
- id: create_issue
tool: JIRA_CREATE_ISSUE
config:
- name: base_url
value: "https://your-domain.atlassian.net"
- name: email
value: "you@example.com"
- name: api_token
value: "{{secrets.YOUR_JIRA_SECRET}}"
input:
- name: project_key
value: "PROJ"
- name: summary
value: "Fix login bug"
- name: issue_type
value: "Bug"
- id: search_issues
tool: JIRA_SEARCH_ISSUES
config:
- name: base_url
value: "https://your-domain.atlassian.net"
- name: email
value: "you@example.com"
- name: api_token
value: "{{secrets.YOUR_JIRA_SECRET}}"
input:
- name: jql
value: "project = PROJ AND status = 'In Progress'"
```
## Notes
* **ADF conversion**: Rich-text fields (description, comment body) accept plain text. The tool automatically converts each line into an Atlassian Document Format paragraph.
* **Assignee**: Jira identifies users by `accountId`, not name or email. Pass the `accountId` visible in the user's profile URL.
* **At-least-once side effects**: `JIRA_CREATE_ISSUE` and `JIRA_ADD_COMMENT` may create duplicates if a worker restarts after the call. De-duplicate downstream if exactly-once semantics matter.
* **Timeouts**: Every request has a 30-second timeout via `AbortSignal.timeout`.
# Manage Issues and Teams in Linear in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/linear
Use LINEAR_CREATE_ISSUE to create issues, LINEAR_GET_ISSUES to read them, LINEAR_UPDATE_ISSUE to edit, LINEAR_ADD_ISSUE_COMMENT to comment, LINEAR_LIST_TEAMS to list teams, and LINEAR_GET_PROJECT_PROGRESS for status, authenticated with a LINEAR_API_KEY.
The Linear tools connect to the Linear GraphQL API so your workflows can create and update issues, add comments, look up teams, and track project progress.
* `LINEAR_CREATE_ISSUE`
* Create a new issue in a Linear team.
* Key inputs: `team_id` (required), `title` (required), `description` (Markdown), `state_id`, `assignee_id`, `project_id`, `label_ids`, `subscriber_ids`, `priority` (integer 0–4), `estimate` (integer ≥ 0).
* `LINEAR_GET_ISSUES`
* Retrieve a list of issues with optional server-side filters.
* Key inputs: `team_id`, `state_id`, `assignee_id`, `project_id`, `label_ids` (matches issues containing any of the given labels), `updated_after` / `updated_before` (ISO 8601, e.g. `2024-01-01T00:00:00Z`), `first` (1–100, default 20).
* `LINEAR_UPDATE_ISSUE`
* Update fields on an existing issue. At least one update field must be provided.
* Key inputs: `issue_id` (required), plus any of `title`, `description`, `state_id`, `assignee_id`, `project_id`, `label_ids`, `subscriber_ids`, `priority`, `estimate`.
* `LINEAR_ADD_ISSUE_COMMENT`
* Add a comment to an issue — useful for triage context or workflow notifications.
* Key inputs: `issue_id` (required), `comment_body` (required, Markdown).
* `LINEAR_LIST_TEAMS`
* Fetch teams to look up their internal IDs, names, and keys.
* Key inputs: `first` (1–100, default 20).
* `LINEAR_GET_PROJECT_PROGRESS`
* Retrieve a project's progress and status, including scope, completed scope, health, milestones, members, and recent project updates.
* Key inputs: `project_id` (required).
## Connect with a Linear API key
All Linear tools authenticate with a **personal API key** (OAuth is not supported). Generate one in Linear under **Settings** → **Security & access** → **Personal API keys**, then store it as a `LINEAR_API_KEY` secret in your workspace.
Each step takes a single config field:
| Config field | Description |
| - | - |
| `api_key` | Your Linear API key (select from workspace secrets) |
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Create an issue
Fetch your teams once to find the internal team ID, then create an issue in that team:
```yaml theme={null}
- id: list_teams
tool: LINEAR_LIST_TEAMS
config:
- name: api_key
value: "{{secrets.YOUR_LINEAR_SECRET}}"
input:
- name: first
value: 50
- id: create_issue
tool: LINEAR_CREATE_ISSUE
config:
- name: api_key
value: "{{secrets.YOUR_LINEAR_SECRET}}"
input:
- name: team_id
value: "TEAM_UUID_FROM_LIST_TEAMS"
- name: title
value: "Investigate checkout error spike"
- name: description
value: |
## Summary
Error rate on the checkout endpoint doubled since the last deploy.
- name: priority
value: 2
```
## Read issues and project progress
Collect issues updated in the past week and the current project status, then summarize with an AI step:
```yaml theme={null}
- id: recent_issues
tool: LINEAR_GET_ISSUES
config:
- name: api_key
value: "{{secrets.YOUR_LINEAR_SECRET}}"
input:
- name: project_id
value: "PROJECT_UUID"
- name: updated_after
value: "2026-07-07T00:00:00Z"
- name: first
value: 100
- id: project_progress
tool: LINEAR_GET_PROJECT_PROGRESS
config:
- name: api_key
value: "{{secrets.YOUR_LINEAR_SECRET}}"
input:
- name: project_id
value: "PROJECT_UUID"
- id: write_digest
tool: OPENAI_INVOKE
needs: [recent_issues, project_progress]
input:
- name: prompt
value: |
Write a short weekly status update from this data.
==Recently updated issues==
{{steps.recent_issues.result.issues}}
==Project progress==
{{steps.project_progress.result.project}}
```
## Notes
* **IDs, not names**: All references (`team_id`, `state_id`, `assignee_id`, `project_id`, `label_ids`) are Linear's internal identifiers. Use `LINEAR_LIST_TEAMS` and `LINEAR_GET_ISSUES` to discover them.
* **List inputs**: `label_ids` and `subscriber_ids` accept a JSON array (e.g. `["id1", "id2"]`) or a comma-separated string (`id1, id2`).
* **Updates replace lists**: In `LINEAR_UPDATE_ISSUE`, `label_ids` and `subscriber_ids` replace the existing lists rather than appending to them.
* **Fields cannot be cleared**: Empty values are ignored on update, so you cannot blank out a title or description — only overwrite it. `LINEAR_UPDATE_ISSUE` fails if no update field is provided.
* **Pagination**: `LINEAR_GET_ISSUES` and `LINEAR_LIST_TEAMS` return at most 100 items per run. A `pageInfo` object (`hasNextPage`, `endCursor`) is returned, but there is no cursor input, so only the first page is retrievable in a single step. Narrow results with filters instead.
* **Error handling**: `LINEAR_GET_PROJECT_PROGRESS` returns an `error` object in its output instead of failing the step when the request fails.
# Look Up Microsoft 365 Users and Managers in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/microsoft_users
Use MICROSOFT_GET_USERS to look up user profiles and MICROSOFT_GET_MANAGER to find a user's manager via Microsoft Graph.
Microsoft Users tools let you resolve Microsoft 365 user emails and UPNs to full directory profiles, and look up each user's direct manager, through Microsoft Graph.
* `MICROSOFT_GET_USERS`
* Resolve a list of email addresses or UPNs to Microsoft 365 user profiles. Returns display name, mail, job title, department, company name, and office location. Unresolved identifiers are returned in `notFound`.
* `MICROSOFT_GET_MANAGER`
* Look up the direct manager of each input user. Returns a list of `{ user, manager }` pairs where `manager` is `null` if no manager is set. Unresolved identifiers are returned in `notFound`.
## Connect with Microsoft Graph
These tools require a Microsoft Graph OAuth token with delegated `User.Read.All` permission.
Go to the [Jinba secrets dashboard](https://flow.jinba.io/workspace/secrets) and connect a Microsoft account for User Directory. Use the generated token in the tool config.
> **Tenant admin consent is required.** These tools use the delegated `User.Read.All` permission (company name and department are not available with `User.ReadBasic.All`), which most tenants only let an administrator grant. Copy the User Directory consent link from the secrets dashboard and have a tenant administrator open it once; see [Organization Admin Consent](/en/pages/credentials/microsoft-oauth#organization-admin-consent).
## Look up user profiles and managers
```yaml theme={null}
- id: get_users
name: get_users
tool: MICROSOFT_GET_USERS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_USERS.access_token}}"
input:
- name: identifiers
value:
- "alice@example.com"
- "bob@example.com"
- id: get_managers
name: get_managers
tool: MICROSOFT_GET_MANAGER
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_USERS.access_token}}"
input:
- name: identifiers
value: "alice@example.com, bob@example.com"
```
## Input
### `identifiers`
A list of email addresses or User Principal Names (UPNs) to look up. Accepts:
* An array: `["alice@example.com", "bob@example.com"]`
* A comma-separated string: `"alice@example.com, bob@example.com"`
* A JSON array string: `"[\"alice@example.com\", \"bob@example.com\"]"`
## Output
### `MICROSOFT_GET_USERS`
| Field | Description |
| - | - |
| `result.users[].id` | Azure AD object ID |
| `result.users[].displayName` | Display name |
| `result.users[].mail` | Primary email address |
| `result.users[].userPrincipalName` | User Principal Name (UPN) |
| `result.users[].jobTitle` | Job title |
| `result.users[].department` | Department |
| `result.users[].companyName` | Company name |
| `result.users[].officeLocation` | Office location |
| `result.notFound[]` | Identifiers that could not be resolved |
### `MICROSOFT_GET_MANAGER`
| Field | Description |
| - | - |
| `result.managers[].user` | The input identifier for this entry |
| `result.managers[].manager` | Manager's profile (same fields as a user), or `null` if none |
| `result.notFound[]` | Identifiers that could not be resolved |
# Create Pages, Add Content, and Search in Notion in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/notion
Use NOTION_CREATE_PAGE to create pages, NOTION_APPEND_BLOCK_CHILDREN and NOTION_APPEND_IMAGE_BLOCK to add content, NOTION_CREATE_DATABASE_ITEM and NOTION_QUERY_DATA_SOURCE for databases, and NOTION_SEARCH to find content, alongside NOTION_RETRIEVE_A_PAGE, NOTION_RETRIEVE_DATABASE, NOTION_LIST_BLOCK_CHILDREN, NOTION_DUPLICATE_PAGE, and NOTION_UPDATE_PAGE_PROPERTIES.
The Notion tools allow you to automate various tasks related to Notion workspaces, including creating and managing pages, databases, and blocks. You can also extract information from Notion pages and databases.
* `NOTION_SEARCH`
* Search pages and data sources shared with the connection by title, with optional result type filtering, last-edited sorting, and pagination.
* `NOTION_CREATE_PAGE`
* Create a new page in a specified Notion workspace.
* `NOTION_CREATE_DATABASE_ITEM`
* Create a new item in a specified Notion database.
* `NOTION_RETRIEVE_A_PAGE`
* Retrieve a page from a specified Notion workspace.
* `NOTION_RETRIEVE_DATABASE`
* Retrieve a database from a specified Notion workspace.
* `NOTION_QUERY_DATA_SOURCE`
* Query a data source or legacy database with filters and sorts.
* `NOTION_LIST_BLOCK_CHILDREN`
* Retrieve page or block children, with optional recursive traversal.
* `NOTION_APPEND_BLOCK_CHILDREN`
* Append Notion block JSON to a page or block.
* `NOTION_DUPLICATE_PAGE`
* Create a new page by copying writable page properties and recursively recreating supported child blocks (paragraphs, headings, lists, quotes, to-dos, toggles, callouts, synced blocks, equations, code, tables, columns, child pages, linked database views, and more). Unsupported content — such as Notion-hosted media reupload, link previews, buttons/forms, and full standalone database duplication — is skipped and reported in `skipped_blocks`. People, relation, and multi-select properties with more than 100 values are not copied (the Notion API allows at most 100 values per request) and are reported in `skipped_properties` with the source item count (`original_count`); a property you override via `properties_json` is written as given and never listed there.
* `NOTION_UPDATE_PAGE_PROPERTIES`
* Update page properties, icon, cover, trash status, or lock state.
* `NOTION_APPEND_IMAGE_BLOCK`
* Append an image block with an external URL or the File Upload API.
## Connect with Notion credentials
Every Notion tool has an **Authentication method** selector. Choose the method first, then select its matching secret field:
* **API token** → **Token** (`NOTION_API`): paste an internal integration token, or a personal access token (PAT) issued by each user. A PAT needs no page sharing and accesses everything its creator can see; combined with personal secrets, each runner executes with their own token
* **OAuth** → **OAuth token** (`NOTION_OAUTH`): connect by logging in to Notion in the browser. Access is limited to the pages picked on the consent screen (requires an organization-registered Notion OAuth app)
Existing flows that omit `auth_type` continue to use the API token method.
See [Notion Credentials](/en/pages/credentials/notion) for setup steps and how to choose between them.
**Note**: Treat tokens as sensitive information and never commit them to public repositories.
## Create pages, add content, and search
```yaml theme={null}
- id: retrieve_page
tool: NOTION_RETRIEVE_A_PAGE
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: page_id
value: 15cf9fcee23b81e193f7cb5774043b82
- id: retrieve_database
tool: NOTION_RETRIEVE_DATABASE
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: database_id
value: 16ff9fcee23b80d38b47d754dcaffe16
- id: create_page
tool: NOTION_CREATE_PAGE
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: parent_page_id
value: 196bf44b5f624485a29f415bf4afac47
- name: title
value: Test Page
- name: content
value: This is a test page
- id: create_database_item
tool: NOTION_CREATE_DATABASE_ITEM
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: database_id
value: 16ff9fcee23b80d38b47d754dcaffe16
- name: title
value: Test Page
- name: content
value: This is a test page
- id: search_notion
tool: NOTION_SEARCH
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: query
value: Meeting Notes
- name: object_type
value: page
- name: sort_direction
value: descending
- id: query_data_source
tool: NOTION_QUERY_DATA_SOURCE
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: data_source_id
value: 1a44be1209534631b4989e5817518db8
- name: filter_json
value: '{"property":"Done","checkbox":{"equals":true}}'
- name: sorts_json
value: '[{"property":"Date","direction":"descending"}]'
- id: duplicate_page
tool: NOTION_DUPLICATE_PAGE
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: source_page_id
value: 15cf9fcee23b81e193f7cb5774043b82
- name: new_title
value: Next Meeting
- name: properties_json
value: '{"Date":{"date":{"start":"2026-06-06"}}}'
- id: append_image
tool: NOTION_APPEND_IMAGE_BLOCK
config:
- name: token
value: "{{secrets.NOTION_TOKEN}}"
input:
- name: block_id
value: 15cf9fcee23b81e193f7cb5774043b82
- name: image
value: https://example.com/graphic-recording.png
- name: caption
value: Graphic recording
```
# Create, Find, and Update Outlook Calendar Events in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/outlook_calendar
Use OUTLOOK_CALENDAR_CREATE_EVENT, OUTLOOK_CALENDAR_FIND_EVENT, OUTLOOK_CALENDAR_UPDATE_EVENT, and OUTLOOK_CALENDAR_DELETE_EVENT to manage events, plus OUTLOOK_CALENDAR_FIND_MEETING_TIMES, OUTLOOK_CALENDAR_FIND_ROOMS, OUTLOOK_CALENDAR_GET_ROOM_SCHEDULE, and OUTLOOK_CALENDAR_GET_SCHEDULE for scheduling.
The Outlook Calendar tools allow you to automate Outlook Calendar tasks such as finding events, checking attendee and room availability, suggesting meeting times, listing rooms, creating events, updating events, and deleting events using Microsoft Graph API.
* `OUTLOOK_CALENDAR_FIND_EVENT`
* Find events in Outlook Calendar within a given time range or by search query.
* `OUTLOOK_CALENDAR_GET_SCHEDULE`
* Get free/busy availability for users, distribution lists, rooms, or equipment.
* `OUTLOOK_CALENDAR_FIND_MEETING_TIMES`
* Suggest candidate meeting times and locations from attendee and room availability.
* `OUTLOOK_CALENDAR_FIND_ROOMS`
* List Outlook room resources, optionally within a room list.
* `OUTLOOK_CALENDAR_GET_ROOM_SCHEDULE`
* Get free/busy availability for room resources.
* `OUTLOOK_CALENDAR_CREATE_EVENT`
* Create a new event, including attendees, room resources, locations, and recurrence.
* `OUTLOOK_CALENDAR_UPDATE_EVENT`
* Update an existing event with new details.
* `OUTLOOK_CALENDAR_DELETE_EVENT`
* Delete an event from Outlook Calendar.
## Connect with Microsoft Graph
To use the Outlook Calendar API, you need to navigate to the [Jinba secrets dashboard](https://flow.jinba.io/workspace/secrets) and authenticate with your Microsoft account. This will create a new OAuth token for you. If the Microsoft sign-in stops at **Need admin approval**, see [Organization Admin Consent](/en/pages/credentials/microsoft-oauth#organization-admin-consent).
Meeting scheduling and room tools require the latest Outlook Calendar OAuth scopes. If your credential was created before these tools were added, reconnect the Outlook Calendar credential from the secrets dashboard.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
For further details, [click here](/en/pages/credentials/microsoft-oauth).
## Create, update, find, and delete events
```yaml theme={null}
- id: find_before
tool: OUTLOOK_CALENDAR_FIND_EVENT
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: timezone
value: "+09:00"
- name: time_min
value: 2025-01-01T00:00:00Z
- name: time_max
value: 2025-01-31T23:59:59Z
- name: query
value: Test Event
- id: find_rooms
tool: OUTLOOK_CALENDAR_FIND_ROOMS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: query
value: Tokyo
- name: top
value: 20
- id: get_schedule
tool: OUTLOOK_CALENDAR_GET_SCHEDULE
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: schedules
value: "user1@example.com, room1@example.com"
- name: timezone
value: "+09:00"
- name: start
value: 2025-01-15T09:00:00
- name: end
value: 2025-01-15T18:00:00
- id: find_meeting_times
tool: OUTLOOK_CALENDAR_FIND_MEETING_TIMES
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: attendees
value: "user1@example.com, user2@example.com"
- name: room_emails
value: "room1@example.com"
- name: timezone
value: "+09:00"
- name: time_min
value: 2025-01-15T09:00:00
- name: time_max
value: 2025-01-15T18:00:00
- name: meeting_duration_minutes
value: 60
- id: create_event
tool: OUTLOOK_CALENDAR_CREATE_EVENT
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: summary
value: Test Event
- name: description
value: This is a test event
- name: timezone
value: "+09:00"
- name: start
value: 2025-01-15T14:00:00
- name: end
value: 2025-01-15T15:00:00
- name: attendees
value: "user1@example.com, user2@example.com"
- name: room_emails
value: "room1@example.com"
- name: location
value: Room 1
- name: content_type
value: HTML
- id: update_event
tool: OUTLOOK_CALENDAR_UPDATE_EVENT
needs: [create_event]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: event_id
value: "{{steps.create_event.result.event.id}}"
- name: summary
value: Test Event (Updated)
- name: description
value: This event has been updated
- name: timezone
value: "+09:00"
- name: start
value: 2025-01-15T15:00:00
- name: end
value: 2025-01-15T16:00:00
- name: content_type
value: HTML
- id: find_after_update
tool: OUTLOOK_CALENDAR_FIND_EVENT
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: timezone
value: "+09:00"
- name: time_min
value: 2025-01-01T00:00:00Z
- name: time_max
value: 2025-01-31T23:59:59Z
- name: query
value: "Test Event (Updated)"
- id: delete_event
tool: OUTLOOK_CALENDAR_DELETE_EVENT
needs: [create_event]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
input:
- name: event_id
value: "{{steps.create_event.result.event.id}}"
```
## Tool Details
### OUTLOOK_CALENDAR_FIND_EVENT
Searches for events in Outlook Calendar within a specified date range or by search query.
**Input Parameters:**
* `query` - Search query (partial match on event subject)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `time_min` - Start time in RFC3339 format
* `time_max` - End time in RFC3339 format
* `top` - Maximum number of events to return (1-50, default: 10)
**Output:**
* `events` - Array of matching events with id, subject, start, end, organizer, location, and webLink
### OUTLOOK_CALENDAR_GET_SCHEDULE
Gets free/busy availability for users, distribution lists, rooms, or equipment.
**Input Parameters:**
* `schedules` - Email addresses to check (required; array, comma-separated, or JSON array string)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `start` - Availability window start time (required)
* `end` - Availability window end time (required)
* `availability_view_interval` - Slot size in minutes (5-1440, default: 30)
**Output:**
* `schedules` - Free/busy results with availability view and schedule items
### OUTLOOK_CALENDAR_FIND_MEETING_TIMES
Suggests candidate meeting times and locations from attendee and room availability.
**Input Parameters:**
* `attendees` - Required attendee email addresses (optional)
* `room_emails` - Room resource email addresses (optional)
* `location_names` - Location display names (optional)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `time_min` - Earliest candidate start time (required)
* `time_max` - Latest candidate end time (required)
* `meeting_duration_minutes` - Meeting duration in minutes (default: 30)
* `max_candidates` - Maximum suggestions to return (default: 10)
* `minimum_attendee_percentage` - Minimum confidence percentage (optional)
* `activity_domain` - `work`, `personal`, or `unrestricted` (default: `work`)
* `is_organizer_optional` - Whether the organizer is optional (default: false)
* `return_suggestion_reasons` - Whether to include suggestion reasons (default: true)
* `suggest_location` - Whether Graph should suggest locations (default: false)
* `location_required` - Whether a meeting location is required (default: false)
* `resolve_room_availability` - Whether Graph should resolve room availability for location constraints (default: true)
**Output:**
* `suggestions` - Candidate meeting times with confidence, reason, locations, and attendee availability
* `emptySuggestionsReason` - Reason no suggestions were returned, if applicable
### OUTLOOK_CALENDAR_FIND_ROOMS
Lists Outlook room resources using Microsoft Graph Places API.
**Input Parameters:**
* `room_list_email` - Room list email address to narrow the search (optional)
* `query` - Case-insensitive local filter for name, email, building, or floor (optional)
* `top` - Maximum rooms to return (1-500, default: 100)
**Output:**
* `rooms` - Matching room resources with display name, email, capacity, building, and device metadata
### OUTLOOK_CALENDAR_GET_ROOM_SCHEDULE
Gets free/busy availability for room resources.
**Input Parameters:**
* `room_emails` - Room resource email addresses (required; array, comma-separated, or JSON array string)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `start` - Availability window start time (required)
* `end` - Availability window end time (required)
* `availability_view_interval` - Slot size in minutes (5-1440, default: 30)
**Output:**
* `schedules` - Free/busy results for the requested rooms
### OUTLOOK_CALENDAR_CREATE_EVENT
Creates a new event in Outlook Calendar.
**Input Parameters:**
* `summary` - Event title (required)
* `description` - Event description (optional)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `start` - Event start time in RFC3339 format (required)
* `end` - Event end time in RFC3339 format (required)
* `attendees` - Required attendee email addresses (optional)
* `optional_attendees` - Optional attendee email addresses (optional)
* `resource_attendees` - Resource attendee email addresses such as equipment (optional)
* `room_emails` - Room resource email addresses to reserve (optional)
* `location` - Meeting location display name (optional)
* `recurrence` - Microsoft Graph patternedRecurrence object or JSON string (optional)
* `response_requested` - Whether responses are requested from attendees (default: true)
* `allow_new_time_proposals` - Whether attendees can propose a new time (default: true)
* `content_type` - Description content type: "HTML" or "Text" (default: "HTML")
**Output:**
* `event` - Created event with id and webLink
### OUTLOOK_CALENDAR_UPDATE_EVENT
Updates an existing event in Outlook Calendar.
**Input Parameters:**
* `event_id` - Event ID to update (required)
* `summary` - New event title (optional)
* `description` - New event description (optional)
* `timezone` - Timezone for naive datetimes (required, e.g., "Z", "UTC", "+09:00")
* `start` - New event start time in RFC3339 format (optional, requires end)
* `end` - New event end time in RFC3339 format (optional, requires start)
* `attendees` - New attendee list (optional, replaces existing)
* `content_type` - Description content type: "HTML" or "Text"
**Output:**
* `event` - Updated event with id and webLink
### OUTLOOK_CALENDAR_DELETE_EVENT
Deletes an event from Outlook Calendar.
**Input Parameters:**
* `event_id` - Event ID to delete (required)
**Output:**
* `status` - HTTP status code of the deletion request
# Manage SharePoint Files and Sites in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/sharepoint
Use SHAREPOINT_UPLOAD_FILE_V2 (recommended for new flows) and SHAREPOINT_DOWNLOAD_FILE to move files, SHAREPOINT_LIST_DOCUMENTS and SHAREPOINT_SEARCH_FILES to browse, and SHAREPOINT_LIST_SITES and SHAREPOINT_GET_SITE_INFORMATION to manage sites via Microsoft Graph.
SharePoint tools let you list sites, inspect site metadata, browse document libraries, search files, upload files, and download files through Microsoft Graph. They support both SharePoint site drives and the user's OneDrive.
* `SHAREPOINT_LIST_SITES`
* Search and list SharePoint sites.
* `SHAREPOINT_GET_SITE_INFORMATION`
* Get site metadata (id, name, URL) from a SharePoint site URL.
* `SHAREPOINT_LIST_DOCUMENTS`
* List files and folders from SharePoint document libraries or OneDrive.
* `SHAREPOINT_SEARCH_FILES`
* Search files and folders in a SharePoint document library or OneDrive by file name or keyword, with an optional files/folders filter.
* `SHAREPOINT_UPLOAD_FILE_V2`
* Upload a file to SharePoint or OneDrive (up to 30 MB). Accepts output files from previous steps, base64 strings, data URLs, or any HTTP(S) URL; files larger than 4 MB are uploaded automatically via chunked upload sessions. Supersedes `SHAREPOINT_UPLOAD_FILE` — prefer this tool for new flows.
* `SHAREPOINT_UPLOAD_FILE`
* Upload files to SharePoint or OneDrive (simple upload, up to 4MB). Kept for existing flows; use `SHAREPOINT_UPLOAD_FILE_V2` instead.
* `SHAREPOINT_DOWNLOAD_FILE`
* Download a file from SharePoint or OneDrive. Returns a pre-authenticated download URL or base64-encoded content (max 4 MB).
## Connect with Microsoft Graph
These tools require a Microsoft Graph OAuth token.
Go to the [Jinba secrets dashboard](https://flow.jinba.io/workspace/secrets) and connect a Microsoft account for SharePoint/OneDrive. Use the generated token in the tool config. If the Microsoft sign-in stops at **Need admin approval**, see [Organization Admin Consent](/en/pages/credentials/microsoft-oauth#organization-admin-consent).
## List sites and manage files
`generate_report` stands for an earlier step in your flow; its result is assumed to be the report file to upload.
```yaml theme={null}
- id: list_sites
name: list_sites
tool: SHAREPOINT_LIST_SITES
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
- name: search
value: "engineering"
- id: get_site
name: get_site
tool: SHAREPOINT_GET_SITE_INFORMATION
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
- name: site_url
value: "https://contoso.sharepoint.com/sites/Engineering"
- id: list_documents
name: list_documents
tool: SHAREPOINT_LIST_DOCUMENTS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
# If you omit drive_id, the tool lists the user's OneDrive (me/drive)
# For SharePoint document libraries, set drive_id to the library's drive ID.
- name: top
value: 10
- id: list_sharepoint_documents
name: list_sharepoint_documents
tool: SHAREPOINT_LIST_DOCUMENTS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
- name: drive_id
value: "YOUR_SHAREPOINT_DRIVE_ID"
- name: top
value: 10
- id: search_files
name: search_files
tool: SHAREPOINT_SEARCH_FILES
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
# Omit drive_id to search the user's OneDrive (me/drive)
- name: query
value: "quarterly report"
- name: top
value: 25
# "all" (default), "files", or "folders"
- name: filter
value: "files"
- id: upload_file
name: upload_file
tool: SHAREPOINT_UPLOAD_FILE_V2
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
# Omit drive_id to upload to OneDrive (me/drive)
# file accepts a previous step's output file, base64, a data URL, or an HTTP(S) URL
- name: file
value: "{{steps.generate_report.result}}"
- name: filename
value: "report.pdf"
- name: conflict_behavior
value: "rename"
- id: download_file
name: download_file
tool: SHAREPOINT_DOWNLOAD_FILE
needs: [list_documents]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_SHAREPOINT.access_token}}"
input:
# item_id is retrieved from SHAREPOINT_LIST_DOCUMENTS results
- name: item_id
value: "{{steps.list_documents.result.items[0].id}}"
# "url" (default) returns a pre-authenticated download URL
# "base64" returns file content as base64 (max 4 MB)
- name: output_format
value: "url"
```
# Manage Employees (Crews) in SmartHR in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/smarthr
Use SMARTHR_LIST_CREWS, SMARTHR_GET_CREW, SMARTHR_CREATE_CREW, SMARTHR_UPDATE_CREW, SMARTHR_DELETE_CREW, SMARTHR_INVITE_CREW, and SMARTHR_DELETE_CREW_DEPARTMENTS to manage employees in SmartHR.
SmartHR tools let you manage employees (crews) in SmartHR: list with pagination, get details, create, update, delete, invite, and remove department assignments.
* `SMARTHR_LIST_CREWS`
* Retrieve a list of employees (crews) with optional pagination and employment status filter.
* `SMARTHR_GET_CREW`
* Get detailed information for a specific employee by ID.
* `SMARTHR_CREATE_CREW`
* Create a new employee with name, email, gender, and employment details.
* `SMARTHR_UPDATE_CREW`
* Update an existing employee; only specified fields are updated.
* `SMARTHR_DELETE_CREW`
* Delete an employee by ID (some employees may not be deletable depending on status).
* `SMARTHR_INVITE_CREW`
* Send an invitation to an employee; requires the inviter's user ID.
* `SMARTHR_DELETE_CREW_DEPARTMENTS`
* Remove all department assignments from an employee.
## Connect with SmartHR credentials
For setup details, see [SmartHR Credentials](/en/pages/credentials/smarthr).
Each tool requires a **subdomain** (your SmartHR instance URL) and an **access token**. Store the access token as a SmartHR credential in workspace secrets and reference it in the tool config together with the subdomain.
**Note**: Keep API credentials secure and do not commit them to public repositories.
## List and get employees
```yaml theme={null}
- id: list_crews
tool: SMARTHR_LIST_CREWS
config:
- name: subdomain
value: "https://example.daruma.space"
- name: access_token
value: "{{secrets.SMARTHR_ACCESS_TOKEN.access_token}}"
input:
- name: page
value: 1
- name: per_page
value: 10
- id: get_crew
tool: SMARTHR_GET_CREW
needs: ["list_crews"]
config:
- name: subdomain
value: "https://example.daruma.space"
- name: access_token
value: "{{secrets.SMARTHR_ACCESS_TOKEN.access_token}}"
input:
- name: crew_id
value: "{{steps.list_crews.result[0].id}}"
```
# Manage Teams, Channels, and Messages in Microsoft Teams in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/teams
Use TEAMS_LIST_TEAMS, TEAMS_CREATE_CHANNEL, and TEAMS_LIST_CHANNELS to manage structure, TEAMS_LIST_CHATS, TEAMS_CREATE_CHAT, and TEAMS_LIST_CHAT_MESSAGES for chats, TEAMS_LIST_CHANNEL_MESSAGES, TEAMS_REPLY_TO_MESSAGE, and TEAMS_SEARCH_MESSAGES for messages, and TEAMS_ADD_TEAM_MEMBER, TEAMS_ADD_CHANNEL_MEMBER, and TEAMS_ADD_CHAT_MEMBER for membership.
Microsoft Teams tools let you list teams, channels, chats, channel messages, and chat messages, search messages, look up online meetings, add members to teams, private or shared channels, and group chats, send messages to channels or chats (DMs), reply to channel threads, create channels, and create one-on-one or group chats through Microsoft Graph.
* `TEAMS_LIST_TEAMS`
* Get a list of teams the user has joined.
* `TEAMS_LIST_CHANNELS`
* Get a list of channels in a team.
* `TEAMS_LIST_CHANNEL_MESSAGES`
* Get messages posted in a channel, optionally including thread replies.
* `TEAMS_LIST_CHATS`
* Get a list of chats the signed-in user participates in.
* `TEAMS_LIST_CHAT_MESSAGES`
* Get messages posted in a one-on-one or group chat.
* `TEAMS_SEARCH_MESSAGES`
* Search Teams chat messages with Microsoft Graph Search, with optional date-range bounds and pagination.
* `TEAMS_LIST_ONLINE_MEETINGS`
* List Teams online meetings by join URL or video teleconference ID, or scan a calendar window for Teams meetings.
* `TEAMS_GET_ONLINE_MEETING`
* Get a Teams online meeting by Graph meeting ID, join URL, or video teleconference ID.
* `TEAMS_ADD_CHANNEL_MEMBER`
* Add a user to a private or shared channel as a member or owner.
* `TEAMS_ADD_TEAM_MEMBER`
* Add a user to a team as a member or owner. Use this for standard (public) channels, which inherit team membership.
* `TEAMS_ADD_CHAT_MEMBER`
* Add a user to an existing group chat, optionally sharing prior history.
* `TEAMS_SEND_MESSAGE`
* Send messages to Teams channels (plain text or HTML format).
* `TEAMS_REPLY_TO_MESSAGE`
* Reply to a Teams channel message thread.
* `TEAMS_CREATE_CHANNEL`
* Create new channels within a team (public or private).
* `TEAMS_CREATE_CHAT`
* Create a new 1-on-1 or group chat. The signed-in user is added automatically.
* `TEAMS_SEND_CHAT_MESSAGE`
* Send a message to a Teams chat (DM). Supports plain text and HTML.
## Connect with Microsoft Graph
These tools require a Microsoft Graph OAuth token.
Go to the [Jinba secrets dashboard](https://flow.jinba.io/workspace/secrets) and connect a Microsoft account for Teams. Use the generated token in the tool config.
The Teams OAuth connection requests Microsoft Graph scopes for channel messages, chat messages, channels, channel membership, team membership, chat membership, teams, sending messages, and token refresh. Existing Teams secrets created before these scopes were added must be reconnected. Adding team members (`TeamMember.ReadWrite.All`) or chat members (`ChatMember.ReadWrite`) may require tenant admin consent. If the Microsoft sign-in stops at **Need admin approval**, send your administrator the Teams consent link from the secrets dashboard; see [Organization Admin Consent](/en/pages/credentials/microsoft-oauth#organization-admin-consent).
## List teams and channels and add members
```yaml theme={null}
- id: list_teams
name: list_teams
tool: TEAMS_LIST_TEAMS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input: []
- id: list_channels
name: list_channels
tool: TEAMS_LIST_CHANNELS
needs: ["list_teams"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: team_id
value: "{{steps.list_teams.result.teams[0].id}}"
- id: list_channel_messages
name: list_channel_messages
tool: TEAMS_LIST_CHANNEL_MESSAGES
needs: ["list_teams", "list_channels"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: team_id
value: "{{steps.list_teams.result.teams[0].id}}"
- name: channel_id
value: "{{steps.list_channels.result.channels[0].id}}"
- name: include_replies
value: true
- id: list_chats
name: list_chats
tool: TEAMS_LIST_CHATS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input: []
- id: list_chat_messages
name: list_chat_messages
tool: TEAMS_LIST_CHAT_MESSAGES
needs: ["list_chats"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: chat_id
value: "{{steps.list_chats.result.chats[0].id}}"
- id: create_channel
name: create_channel
tool: TEAMS_CREATE_CHANNEL
needs: ["list_teams"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: team_id
value: "{{steps.list_teams.result.teams[0].id}}"
- name: channel_name
value: "project-alpha-2025"
- name: description
value: "Project Alpha for FY2025"
- name: is_private
value: true
- id: add_channel_member
name: add_channel_member
tool: TEAMS_ADD_CHANNEL_MEMBER
needs: ["create_channel"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: team_id
value: "{{steps.list_teams.result.teams[0].id}}"
- name: channel_id
value: "{{steps.create_channel.result.channel_id}}"
- name: user_id
value: "alice@example.com"
- name: role
value: "member"
- id: send_message
name: send_message
tool: TEAMS_SEND_MESSAGE
needs: ["add_channel_member"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: team_id
value: "{{steps.list_teams.result.teams[0].id}}"
- name: channel_id
value: "{{steps.create_channel.result.channel_id}}"
- name: message
value: "Daily Report: Completed 15 tasks, 8 in progress"
- name: message_type
value: "text"
```
## Manage chat messages
```yaml theme={null}
- id: create_chat
name: create_chat
tool: TEAMS_CREATE_CHAT
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: chat_type
value: "oneOnOne"
- name: member_ids
value: "bob@example.com"
- id: send_chat_message
name: send_chat_message
tool: TEAMS_SEND_CHAT_MESSAGE
needs: ["create_chat"]
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: chat_id
value: "{{steps.create_chat.result.chat_id}}"
- name: message
value: "Hello! I wanted to reach out directly."
- name: message_type
value: "text"
```
## Search messages and look up an online meeting
```yaml theme={null}
- id: search_messages
name: search_messages
tool: TEAMS_SEARCH_MESSAGES
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
- name: query
value: "project alpha status"
- name: from
value: "2026-07-01T00:00:00+09:00"
- name: to
value: "2026-07-14T00:00:00+09:00"
- name: size
value: 25
- id: list_online_meetings
name: list_online_meetings
tool: TEAMS_LIST_ONLINE_MEETINGS
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
# With start_datetime/end_datetime, scans the calendar window for Teams meetings
- name: start_datetime
value: "2026-07-14T00:00:00+09:00"
- name: end_datetime
value: "2026-07-21T00:00:00+09:00"
- name: top
value: 25
- id: get_online_meeting
name: get_online_meeting
tool: TEAMS_GET_ONLINE_MEETING
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_TEAMS.access_token}}"
input:
# Specify one of meeting_id, join_web_url, or video_teleconference_id
- name: join_web_url
value: "https://teams.microsoft.com/l/meetup-join/..."
```
# Manage Meetings, Reports, and Recordings in Zoom in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/zoom
Use ZOOM_CREATE_MEETING and ZOOM_UPDATE_MEETING to schedule, ZOOM_LIST_MEETINGS and ZOOM_LIST_MEETING_PARTICIPANTS to view, ZOOM_GET_MEETING_REPORT for reports, and ZOOM_LIST_CLOUD_RECORDINGS, ZOOM_GET_CLOUD_RECORDING, and ZOOM_UPDATE_RECORDING_SETTINGS for recordings.
The Zoom tools let you automate Zoom from your flows: create and update meetings (including recurring series), list a user's meetings, retrieve meeting reports and participant lists after a meeting ends, and work with cloud recordings. Tools authenticate either with account-level Server-to-Server OAuth credentials or with a connected Zoom user account (user-level OAuth).
* `ZOOM_CREATE_MEETING`
* Create instant, scheduled, or recurring meetings for a host (`user_id`: Zoom user ID or email).
* Key inputs: `topic` (required), `type` (1: instant, 2: scheduled — default, 3: recurring without fixed time, 8: recurring with fixed time), `start_time` (ISO 8601), `duration` (minutes), `timezone`, `agenda`, `password` (max 10 characters), `recurrence` (required when `type` is 8; JSON string or object), `settings` (JSON string or object).
* `ZOOM_LIST_MEETINGS`
* List meetings for a user (`user_id`; use `me` for the admin account).
* Key inputs: `type` (`scheduled` — default, `upcoming`, `live`, `upcoming_meetings`, `previous_meetings`), `page_size` (1-300), `next_page_token`, `from` / `to` (YYYY-MM-DD, for past meetings).
* `ZOOM_UPDATE_MEETING`
* Update an existing meeting by `meeting_id` (ID or UUID). At least one field must be provided.
* Key inputs: `topic`, `type`, `start_time`, `duration`, `timezone`, `agenda`, `password`, `recurrence`, `settings` (e.g. alternative hosts), and `occurrence_id` for a single occurrence of a recurring meeting.
* `ZOOM_LIST_MEETING_PARTICIPANTS`
* List participants of a past meeting by `meeting_id`.
* Key inputs: `page_size` (1-300, default 100), `next_page_token`, `dedupe` (default `true` — collapses duplicate entries by user ID, email, or name).
* `ZOOM_GET_MEETING_REPORT`
* Two modes: pass `meeting_id` for a detailed report of one meeting, or omit it to list report summaries for a user and date range.
* Key inputs (list mode): `user_id` (default `me`), `from` / `to` (YYYY-MM-DD), `type` (`past` — default, `pastJoined`, `pastOne`, `live`), `page_size` (1-30), `next_page_token`.
* `ZOOM_LIST_CLOUD_RECORDINGS`
* List cloud recordings for a user, with optional date range and trash filters.
* Key inputs: `user_id` (default `me`), `from` / `to` (YYYY-MM-DD), `page_size` (1-300, default 30), `next_page_token`, `trash`, `trash_type` (`meeting_recordings` or `recording_file`).
* `ZOOM_GET_CLOUD_RECORDING`
* Get cloud recording details for a meeting by `meeting_id`, including `recording_files`, `share_url`, and `password`.
* Key inputs: `include_fields` (optional comma-separated value).
* `ZOOM_UPDATE_RECORDING_SETTINGS`
* Update sharing and viewing settings of a cloud recording by `meeting_id`. At least one setting must be provided.
* Key inputs: `share_recording` (`none`, `internally`, `publicly`), `viewer_download`, `password`, `on_demand`, `approval_type`, and a `settings` JSON object for advanced Zoom fields.
## Connect to Zoom
Every Zoom tool supports two authentication methods, selected with the `auth_type` config field:
### Server-to-Server OAuth (`auth_type: server_to_server`, default)
Create a Server-to-Server OAuth app in the [Zoom App Marketplace](https://marketplace.zoom.us/) and register the following values as a `ZOOM_SERVER_TO_SERVER_OAUTH` secret:
* **Account ID**: Your Zoom account ID.
* **Client ID**: The OAuth client ID of the app.
* **Client Secret**: The OAuth client secret of the app.
Access tokens are issued automatically with the `account_credentials` grant, so no user login or token refresh handling is required on your side. These are account-level admin credentials: they can act on **any** user in the Zoom account.
### Connected Zoom account (`auth_type: oauth`)
Connect a Zoom account from the secrets screen and reference its `ZOOM_OAUTH` secret in the `token` config field. The tools then act **as that user** with Zoom's granular user-level scopes — they can only reach meetings and recordings the connected user owns, which is the recommended method when flows should not have account-wide admin access.
Connecting Zoom requires an organization-registered Zoom OAuth app (Organization settings → OAuth apps, organization OWNER only): register your own Zoom OAuth app's client ID/secret and set the per-organization callback URL shown there in the Zoom app's redirect allow list. Tokens are refreshed automatically before flow runs.
With a connected account, use `me` as the `user_id` (the tools operate on the connected user), and note that `ZOOM_GET_MEETING_REPORT` only supports single-meeting details (`meeting_id` mode, served from the past-meetings API); the date-range report listing is admin-only in Zoom's API and needs Server-to-Server credentials.
**Note**: Treat credentials as sensitive information and never commit them to public repositories.
## Create meetings
```yaml theme={null}
- id: create_meeting
tool: ZOOM_CREATE_MEETING
config:
- name: client_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_id}}"
- name: client_secret
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_secret}}"
- name: account_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.account_id}}"
input:
- name: user_id
value: host@example.com
- name: topic
value: Weekly Sync
- name: type
value: "2"
- name: start_time
value: 2026-07-20T09:00:00Z
- name: duration
value: "30"
- name: timezone
value: Asia/Tokyo
- name: agenda
value: Review progress and blockers for the week.
```
## Create a meeting as the connected user
```yaml theme={null}
- id: create_meeting
tool: ZOOM_CREATE_MEETING
config:
- name: auth_type
value: oauth
- name: token
value: "{{secrets.ZOOM_OAUTH.access_token}}"
input:
- name: user_id
value: me
- name: topic
value: Weekly Sync
- name: type
value: "2"
- name: start_time
value: 2026-07-20T09:00:00Z
```
## Get meeting reports and participants
```yaml theme={null}
- id: get_report
tool: ZOOM_GET_MEETING_REPORT
config:
- name: client_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_id}}"
- name: client_secret
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_secret}}"
- name: account_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.account_id}}"
input:
- name: meeting_id
value: "123456789"
- id: list_participants
tool: ZOOM_LIST_MEETING_PARTICIPANTS
config:
- name: client_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_id}}"
- name: client_secret
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.client_secret}}"
- name: account_id
value: "{{secrets.ZOOM_SERVER_TO_SERVER_OAUTH.account_id}}"
input:
- name: meeting_id
value: "123456789"
- name: dedupe
value: true
- id: summarize
tool: OPENAI_INVOKE
needs: [get_report, list_participants]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Summarize the following Zoom meeting for the team.
==Meeting Report==
{{steps.get_report.result.report}}
==Participants==
{{steps.list_participants.result.participants}}
==Instructions==
1. Summarize the meeting (topic, duration, attendance)
2. List the participants and their time in the meeting
3. Keep it concise and suitable for a Slack post
```
## Notes
* With Server-to-Server OAuth, the host specified in `user_id` must belong to the same Zoom account as the app, and `me` refers to the admin account. With a connected account (user OAuth), use `me` — the tools act as the connected user and Zoom rejects operations on other users' resources.
* To create a recurring meeting series, set `type` to `8` and supply a `recurrence` object (e.g. `{ "type": 2, "repeat_interval": 1, "weekly_days": "2,4", "end_times": 10 }`); `recurrence` is ignored for other meeting types.
* `recurrence` and `settings` inputs accept either a JSON string or a structured object matching Zoom's API objects.
* `ZOOM_LIST_MEETING_PARTICIPANTS` and `ZOOM_GET_MEETING_REPORT` work on **past** meetings; run them after the meeting has ended.
* List-style tools are paginated: pass the returned `next_page_token` back in to fetch the next page. `page_size` is capped at 300 (30 for the meeting report list mode).
* `ZOOM_UPDATE_MEETING` and `ZOOM_UPDATE_RECORDING_SETTINGS` fail if no field to update is provided.
* Access tokens issued via the `account_credentials` grant expire after 1 hour; the tools cache and refresh them automatically.
# Run Python Code in a Jinba Flow Sandbox
Source: https://docs.jinba.io/en/pages/tools/sandbox/python_sandbox_run
Use PYTHON_SANDBOX_RUN to compute a STRING, NUMBER, or OBJECT result from Python code in a workflow.
Use `PYTHON_SANDBOX_RUN` for a step that needs Python code. The required `code` input runs in a sandbox. The value of the last expression is the result, with text printed to stdout as the fallback; `data_type` controls whether it is parsed as `STRING` (default), `NUMBER`, or `OBJECT`. For `OBJECT`, end the code with `json.dumps(...)` as the last expression (or print it with `print(json.dumps(...))`): a bare dict or list comes back as a Python repr, which is not valid JSON.
## Calculate a number from earlier steps
```yaml theme={null}
- id: first
tool: INPUT_TEXT
input:
- name: value
value: "1"
- id: second
tool: INPUT_TEXT
input:
- name: value
value: "2"
- id: sum
tool: PYTHON_SANDBOX_RUN
needs:
- first
- second
input:
- name: code
value: 'int("{{steps.first.result}}") + int("{{steps.second.result}}")'
- name: data_type
value: NUMBER
```
The result is `result.data`, which should be `3` in this example. Inspect `logs` and `error` if the step fails. A `NUMBER` result must parse as a number; use `STRING` for ordinary text or `OBJECT` for JSON-compatible data.
## Install packages and return an object
Add Python packages in the step's `config` when the code needs a library. This example totals sales rows from an earlier step with pandas and returns a JSON object.
```yaml theme={null}
- id: rows
tool: INPUT_TEXT
input:
- name: value
value: '[{"region": "east", "sales": 120}, {"region": "west", "sales": 80}, {"region": "east", "sales": 50}]'
- id: summarize
tool: PYTHON_SANDBOX_RUN
needs: [rows]
config:
- name: packages
value: '["pandas"]'
input:
- name: code
value: |
import json
import pandas as pd
rows = json.loads(r'''{{steps.rows.result}}''')
df = pd.DataFrame(rows)
totals = {region: int(total) for region, total in df.groupby("region")["sales"].sum().items()}
print(json.dumps({"totals": totals, "grand_total": int(df["sales"].sum())}))
- name: data_type
value: OBJECT
```
With `OBJECT`, the JSON printed to stdout is parsed, so later steps read `{{steps.summarize.result.data.grand_total}}` (`250`) or `{{steps.summarize.result.data.totals.east}}` (`170`). Wrap step output in `json.loads(r'''...''')` as shown: pasting JSON directly into Python code breaks on `null`, `true` and `false`.
| Config | Default | Description |
| - | - | - |
| `packages` | `[]` | Python packages installed with pip before the code runs, as a JSON array or comma-separated list |
| `dependencies` | `[]` | System (apt) packages to install |
| `timeout` | `900000` | Sandbox timeout in milliseconds (15 minutes) |
## In an organization with an egress policy
In an organization with an egress policy (a restriction on which external hosts sandboxes may reach), the sandbox is locked down before your code runs, and the code runs without administrator rights:
* There is no `sudo`, `/usr/local` is read-only and `/root` is not accessible. Install system packages with the `dependencies` config, which runs before your code with the rights it needs.
* `packages` install before the lockdown, so they need no allowed host. A `pip install` in your code runs after it and needs the package index (`pypi.org`, `files.pythonhosted.org`) on the allowed hosts. Both install into the user's own site directory (`~/.local`) and import as usual; for pip inside a virtual environment you create yourself, set `PIP_USER=0`.
* Every external hostname resolves to the placeholder address `198.18.0.1` inside the sandbox. HTTP and HTTPS requests to allowed hosts still work, because the sandbox routes them by hostname; code that needs a host's real IP address does not, and a request to an IP address instead of a hostname is refused.
* Only HTTP and HTTPS (ports 80 and 443) to allowed hosts get out. Other protocols, and plain DNS queries, are blocked.
## Read step data and secrets
* Previous step data is available as `steps.{step_name}.result.{key}`; secrets as `secrets.{secret_name}.{key}` (e.g. `secrets.OAUTH.access_token`). For single-key secrets, `str(secrets.{secret_name})` returns the value directly.
* Only the secrets your code names are sent to the sandbox. Reference each one by a literal name — `secrets.NAME`, `secrets["NAME"]` or `secrets.get("NAME")` (f-string fields such as `f"Bearer {secrets.NAME}"` count). A computed key (`secrets[name]`) or a whole-map read such as `secrets.items()` or `json.dumps(secrets)` is rejected before the sandbox starts.
## Large tables: `tables`
A step output travels between steps as JSON. A DataFrame with hundreds of
thousands of rows does not survive that: serializing it exhausts the sandbox's
memory before the step can return.
Every Python step is given a `tables` helper for this. `tables.write(df)`
publishes the frame to storage and returns a small marker — a few hundred
bytes naming the stored table — which becomes the step's result. The next step
calls `tables.read(...)` on that marker and gets the DataFrame back. The rows
never become JSON.
```yaml theme={null}
- id: csv_file
tool: INPUT_FILE
input:
- name: description
value: "Sales CSV to pivot"
- name: file_extension
value: csv
- id: load
tool: PYTHON_SANDBOX_RUN
needs: [csv_file]
config:
- name: packages
value: '["pandas"]'
input:
- name: code
value: |
import json
import pandas as pd
df = pd.read_csv(steps.csv_file.result)
json.dumps(tables.write(df))
- name: data_type
value: OBJECT
- id: pivot
tool: PYTHON_SANDBOX_RUN
needs: [load]
config:
- name: packages
value: '["pandas"]'
input:
- name: code
value: |
import json
df = tables.read(steps.load.result.data)
pv = df.pivot_table(index=["rep_month", "branch_cd"],
columns="product_cd", values="amt_00",
aggfunc="sum")
json.dumps(tables.write(pv, name="pivot"))
- name: data_type
value: OBJECT
```
`INPUT_FILE` returns the file URL as a string, so `steps.csv_file.result` is
the URL itself and `pd.read_csv` reads it directly.
The marker is a dict, so the step has to return it the way it returns any
other structured result: `json.dumps(...)` as the last expression, with
`data_type: OBJECT`. Without that the step's `data_type` defaults to `STRING`
and the next step receives the dict's Python text, which `tables.read` cannot
open.
**`tables.write(df, name="result", fmt="csv", index=None)`** publishes a frame
and returns its marker.
* `name` — the stored object's name, so one step can publish several tables.
Letters, digits, `.`, `_` and `-` only, with no `..` and no leading or
trailing dot.
* `fmt` — `"csv"` (the default) or `"parquet"`. Parquet needs `pyarrow`, which
is not installed in every sandbox image; `tables.write` says so if it is
missing.
* `index` — whether to write the frame's index as columns. The default, `None`,
writes it when it carries data: the grouping keys of `groupby(...).agg(...)`
or `pivot_table`, a `DatetimeIndex` from `resample`. A plain positional index
is dropped, so a filtered frame does not gain a stray column. Pass `True` or
`False` to decide it yourself.
Columns must be single-level. Flatten a pivot with several `values` first:
`df.columns = ["_".join(str(part) for part in column) for column in
df.columns.to_flat_index()]`.
`df` must be a DataFrame, not a Series. `df.groupby([...])["amt"].sum()` returns
a Series — call `.to_frame()` on it first; its grouping keys are a named index
and are written as columns.
**`tables.read(marker)`** returns the DataFrame. The frame comes back flat:
everything `tables.write` serialized is a column, including levels that were
an index on the way out. `marker["__jinbatable"]["columns"]` lists them, along
with `rows` and `sizeBytes`, so a later step can see the shape without
fetching the table. `rows` is also checked against the frame that actually
parsed: an object cut short mid-upload is refused here rather than handed on
as a quietly shorter table.
**`tables.is_table(value)`** reports whether a value is a marker, for a step
that accepts either a table or inline rows.
**Size limit.** One `tables.write` call is bounded by what the deployment
accepts in a single upload, and that bound belongs to the deployment rather
than to the tool: on the managed service the platform ingress rejects a request
body over **32 MiB**, while a self-hosted deployment may have a different
ceiling, or none, and may instead cut a slow upload on a request timeout.
`tables.write` reports whichever happened — a frame refused for its size, or a
connection closed before any status came back — and names the limit when the
deployment has declared one. Either way: aggregate or filter before writing, or
publish several smaller tables with different `name`s. Reading is not bounded
this way: a table already in storage can be read back whole, subject only to
the sandbox's memory — which for a very large frame is the binding constraint,
because `tables.read` materializes the whole table at once.
Notes:
* A table is readable by later steps of the same flow, including `reused`
steps replaying an earlier run's output. It is not readable from another
flow.
* Inside a `forEach`, each iteration gets its own storage slot, so every
iteration can call `tables.write(df)` with the default name without
overwriting its siblings.
* `tables.read` also accepts a marker arriving as the `item` of a `forEach`.
* Small results need none of this: a step that returns rows still returns rows.
# Ask About an arXiv Paper in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/arxiv
Use ARXIV_INVOKE_AGENT with a query to retrieve an answer about an arXiv paper.
Ask a question about a paper using `ARXIV_INVOKE_AGENT`. Supply the question in `query`; the answer is returned in `result.content`.
## Use the tool
The Arxiv Agent tool allows you to search and retrieve papers from the arXiv repository. It provides a simple interface to query the database and fetch relevant research papers based on your input.
## Key Features
* `ARXIV_INVOKE_AGENT`
* Search for papers on arXiv using a query string.
* Retrieve metadata and content of the papers.
### Example: Search for Papers
```yaml theme={null}
- id: invoke_arxiv_agent
tool: ARXIV_INVOKE_AGENT
input:
- name: query
value: What's the paper 1605.08386 about?
```
## Check the paper answer
After running the example, inspect `result.content`. If the step fails, check that the arXiv identifier or search terms in `query` are correct and that the service is available.
# Run RAG and Sync Documents with AWS Bedrock Knowledge Bases in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/aws_bedrock_knowledge_base
Use AWS_BEDROCK_KNOWLEDGE_BASE for retrieval-augmented generation queries and AWS_BEDROCK_KNOWLEDGE_BASE_PDF_SYNC to sync PDFs, authenticated with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
The AWS Bedrock Knowledge Base tools let you query an existing AWS Bedrock Knowledge Base — either retrieving raw documents or generating a RAG answer — and sync new PDF documents into its S3 data source.
* `AWS_BEDROCK_KNOWLEDGE_BASE`
* Query an AWS Bedrock Knowledge Base with a natural language `query`.
* Two modes (set via the `mode` config): `retrieve` returns raw retrieval results (content, source location, score, metadata), while `retrieveAndGenerate` (default) returns an LLM-generated response with source citations.
* `numberOfResults` controls how many documents are retrieved (1–100, default 5).
* In `retrieve` mode, the output also reports `guardrailAction` (`INTERVENED` or `NONE`) when guardrails are configured.
* `AWS_BEDROCK_KNOWLEDGE_BASE_PDF_SYNC`
* Upload a PDF to the S3 data source of an existing Bedrock Knowledge Base and start an ingestion job.
* `pdf` input accepts a base64 string, a data URL (`data:application/pdf;base64,...`), or a public HTTPS URL.
* Deduplicates by content: the object key is derived from the SHA-256 hash of the PDF, and if the same content already exists in S3, the upload and ingestion are skipped (`skipped: true`).
* Optionally waits for the ingestion job to finish (`waitForIngestion`, default `true`) with a configurable timeout (`ingestionTimeoutSeconds`, 30–1800, default 300) and polling interval (`ingestionPollIntervalSeconds`, 1–60, default 5).
* Output includes the S3 `bucket` and `objectKey`, the `contentHash`, and the `ingestionJobId` / `ingestionStatus`.
## Connect with AWS credentials
Both tools authenticate with AWS access keys, configured per step:
* **accessKeyId**: An `AWS_ACCESS_KEY_ID` value, or the name of the Flow secret that contains it.
* **secretAccessKey**: An `AWS_SECRET_ACCESS_KEY` value, or the name of the Flow secret that contains it.
Each builder should register their own AWS credential secrets. In addition to credentials, the config requires:
* **region**: AWS region of the Bedrock Knowledge Base.
* **knowledgeBaseId**: The Bedrock Knowledge Base ID.
* **dataSourceId** (PDF sync only): The target S3 data source ID of the knowledge base.
* **s3KeyPrefix** (PDF sync only, optional): Additional folder appended after the data source prefix. The uploaded object path becomes `{S3_bucket_name}{dataSourcePrefix}{s3KeyPrefix}/...` — omit any leading `/` and never include the bucket name itself.
**Note**: Treat AWS credentials as sensitive information and never commit them to public repositories.
## Run a RAG query
```yaml theme={null}
- id: ask_kb
tool: AWS_BEDROCK_KNOWLEDGE_BASE
config:
- name: region
value: us-east-1
- name: knowledgeBaseId
value: "YOUR_KB_ID"
- name: mode
value: retrieveAndGenerate
- name: accessKeyId
value: "{{secrets.AWS_ACCESS_KEY_ID}}"
- name: secretAccessKey
value: "{{secrets.AWS_SECRET_ACCESS_KEY}}"
input:
- name: query
value: "What is our refund policy for annual contracts?"
- name: numberOfResults
value: 5
```
## Sync PDF documents
```yaml theme={null}
- id: sync_pdf
tool: AWS_BEDROCK_KNOWLEDGE_BASE_PDF_SYNC
config:
- name: region
value: us-east-1
- name: knowledgeBaseId
value: "YOUR_KB_ID"
- name: dataSourceId
value: "YOUR_DATA_SOURCE_ID"
- name: accessKeyId
value: "{{secrets.AWS_ACCESS_KEY_ID}}"
- name: secretAccessKey
value: "{{secrets.AWS_SECRET_ACCESS_KEY}}"
input:
- name: pdf
value: "https://example.com/reports/q3-report.pdf"
- name: filename
value: "q3-report.pdf"
- name: waitForIngestion
value: true
- id: query_kb
tool: AWS_BEDROCK_KNOWLEDGE_BASE
config:
- name: region
value: us-east-1
- name: knowledgeBaseId
value: "YOUR_KB_ID"
- name: mode
value: retrieve
- name: accessKeyId
value: "{{secrets.AWS_ACCESS_KEY_ID}}"
- name: secretAccessKey
value: "{{secrets.AWS_SECRET_ACCESS_KEY}}"
input:
- name: query
value: "Key revenue drivers in the Q3 report"
- name: numberOfResults
value: 10
```
## Notes
* **PDF size limit**: PDFs larger than 100 MB are rejected.
* **PDF validation**: The file must start with a `%PDF` header; other file types are rejected.
* **HTTPS only**: Insecure `http://` URLs are rejected for the `pdf` input — use HTTPS.
* **Deduplication**: The uploaded object is named `{sha256}.pdf`. If an object with the same content hash already exists, the tool skips both upload and ingestion and returns `skipped: true`.
* **Filename**: `filename` is used for logging only; it is sanitized (special characters replaced) and truncated to 100 characters. Defaults to `document.pdf`.
* **Ingestion wait**: When `waitForIngestion` is `true`, the step fails if the ingestion job ends with `FAILED`, `STOPPING`, or `STOPPED`, or if it does not complete within `ingestionTimeoutSeconds`.
* **numberOfResults** for querying is capped at 100.
# Run Text, Vector, and Hybrid Search with Azure AI Search in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/azure_ai_search
Use AZURE_AI_SEARCH to query Azure AI Search knowledge bases with text, vector, or hybrid search.
The Azure AI Search tool lets you search external knowledge bases backed by Azure AI Search that are registered in your Jinba Flow workspace. It supports text (keyword), vector (semantic), and hybrid search.
* `AZURE_AI_SEARCH`
* Search an Azure AI Search external knowledge base registered in your workspace.
* Key inputs: `query` (search query string), `externalKbId` (the external knowledge base to search, selectable from your workspace), and `indexName` (the index within that knowledge base).
* Choose the search method with `searchType`: `text` (keyword search), `vector` (semantic search), or `hybrid` (text + vector, the default).
* Control result volume with `answerTotal` (number of documents to reference for answers, default 5, max 1000), `vectorRetrievalCount` (number of vector search results for hybrid search, default 5, max 1000), and `skip` (pagination offset).
* Narrow results with `filter` (an OData filter expression) and `select` (fields to return).
* Results include `id`, `score`, `content`, `filename`, a direct `downloadUrl` for the source file, and `metadata`, plus `count` and `totalResults`.
## Connect with a Jinba Flow workspace API token
The tool calls the Jinba Flow API on your behalf, so it is configured with a **Jinba Flow Workspace API Token** (`token` config) rather than an Azure credential. The Azure AI Search connection itself is managed on the external knowledge base registered in your workspace.
**Note**: Treat API tokens as sensitive information and never commit them to public repositories.
## Run a hybrid search
```yaml theme={null}
- id: search_kb
tool: AZURE_AI_SEARCH
config:
- name: token
value: "{{secrets.JINBA_WORKSPACE_TOKEN}}"
input:
- name: externalKbId
value: "YOUR_EXTERNAL_KB_ID"
- name: indexName
value: "product-manuals"
- name: query
value: "How do I reset the device to factory settings?"
- name: searchType
value: hybrid
- name: answerTotal
value: 5
```
## Run a text search
```yaml theme={null}
- id: search_docs
tool: AZURE_AI_SEARCH
config:
- name: token
value: "{{secrets.JINBA_WORKSPACE_TOKEN}}"
input:
- name: externalKbId
value: "YOUR_EXTERNAL_KB_ID"
- name: indexName
value: "support-articles"
- name: query
value: "warranty policy for enterprise plans"
- name: searchType
value: text
- name: filter
value: "category eq 'policy'"
- id: generate_answer
tool: OPENAI_INVOKE
needs: [search_docs]
input:
- name: prompt
value: |
Answer the question using only the context below.
Context:
{{steps.search_docs.results[0].content}}
Question: What is the warranty policy for enterprise plans?
```
## Notes
* The external knowledge base and its indexes must be registered in your workspace beforehand; `externalKbId` and `indexName` are selected from those registrations.
* `answerTotal` and `vectorRetrievalCount` are capped at 1000.
* When passing `select` as a string, it must be a JSON array (e.g., `'["title", "content"]'`).
* The tool runs in the context of a workspace; execution fails with an error if no workspace context is available.
# Browser Use (Cloud)
Source: https://docs.jinba.io/en/pages/tools/search/browser_use
AI-powered browser automation through the Browser Use cloud API
## Overview
The Browser Use tool runs a browser automation task through the hosted [Browser Use](https://browser-use.com) cloud API. Describe what the agent should do in plain language, and it navigates the web, fills forms, and extracts data for you. For the self-hosted variant that runs inside an E2B sandbox (with session reuse and screenshots), see [Browser Use (Sandbox)](/en/pages/tools/sandbox/browser_use_sandbox).
## Key Features
* `BROWSER_USE_RUN_TASK`
* Create a Browser Use task from a natural-language `task` description and, by default, wait for it to finish
* `max_steps` caps the number of agent steps (default: 100)
* `wait_for_completion` (default: `true`) polls the task until it finishes; set it to `false` to return right after the task is created
* `timeout_seconds` (default: 300) bounds how long the step waits for completion
## Authentication
Set the `api_key` config to a Browser Use API key (secret type `BROWSER_USE`). Leave it at its default, `{{ secrets.JINBA_CREDIT_KEY }}`, to run on Jinba Credit instead: the step then reserves credits according to `max_steps` (a fixed initialization fee plus a per-step fee, so a larger `max_steps` reserves more). The step is charged for its full `max_steps`, even when the task finishes in fewer steps. Its badge reads "Dynamic pricing"; the usage page shows what each run was charged ([How tools are priced](/en/pages/basics/credit-costs#how-tools-are-priced)).
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Usage Examples
### Example: Extract Data from a Website
```yaml theme={null}
- id: browse
name: browse
tool: BROWSER_USE_RUN_TASK
config:
- name: api_key
value: "{{secrets.BROWSER_USE}}"
input:
- name: task
value: Open https://news.ycombinator.com and return the titles and URLs of the top 5 stories as a JSON array.
- name: max_steps
value: 30
- name: timeout_seconds
value: 300
- id: summarize
name: summarize
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Summarize these stories in one paragraph:
{{steps.browse.result.output}}
```
### Example: Start a Task Without Waiting
```yaml theme={null}
- id: start_task
name: start_task
tool: BROWSER_USE_RUN_TASK
input:
- name: task
value: Visit https://example.com and report the page title.
- name: wait_for_completion
value: false
```
## Notes
* `result` contains `task_id`, `status`, `output` (the agent's final answer as text), and `steps` — one entry per agent step with `number`, `memory`, `evaluationPreviousGoal`, `nextGoal`, `url`, `screenshotUrl`, and `actions`. With `wait_for_completion: false`, only `task_id` and `status: created` are returned.
* Completion is polled every 3 seconds. A finished task reports `status: finished` or `status: failed`; if `timeout_seconds` elapses first, the step returns `status: timeout` together with an error, so the task keeps running on the Browser Use side.
* The `task` text is masked for personal information according to your organization's settings before it is sent to Browser Use.
# Search Company Information with Carnot Search in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/carnot_search
Use CARNOT_SEARCH_CORP and CARNOT_SEARCH_CORP_PRO to search for company information in a Jinba Flow workflow.
Carnot Search provides powerful company search capabilities to find detailed business information. With both standard and Pro versions, you can access comprehensive company databases for market research, lead generation, and business intelligence.
## Tools
### CARNOT_SEARCH_CORP
* Basic company search functionality
* Find company information by name or criteria
* Retrieve company URLs and addresses
* Configurable result count
* Inputs: `query` (search text), `num` (number of results, default 10) — Output: `result.items`, an array of `{ name, url, address }`
### CARNOT_SEARCH_CORP_PRO
* Triggers a Carnot Search Corp Pro job on Carnot's external server; the job itself runs outside the flow
* Inputs: `spreadsheets_key` (required; the key of the target spreadsheet), and optional `mail_runner_flow_url`, `mail_runner_flow_secret`, and `slack_channel_id`
* Output: `result.content` is `Job triggered successfully` or `Failed to trigger job`
## Authentication
`CARNOT_SEARCH_CORP` requires API keys from both Perplexity and OpenAI (`perplexity_api_key` and `openai_api_key` config). `CARNOT_SEARCH_CORP_PRO` requires a Carnot API key (`carnot_api_key` config).
**Required credentials:**
* Perplexity API Key and OpenAI API Key (`CARNOT_SEARCH_CORP`)
* Carnot API Key (`CARNOT_SEARCH_CORP_PRO`)
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Run a basic company search
```yaml theme={null}
- id: search_companies
name: search_companies
tool: CARNOT_SEARCH_CORP
config:
- name: perplexity_api_key
value: "{{secrets.PERPLEXITY_API_KEY}}"
- name: openai_api_key
value: "{{secrets.OPENAI_API_KEY}}"
input:
- name: query
value: "software companies in San Francisco"
- name: num
value: 10
- id: process_search_results
name: process_search_results
tool: PYTHON_SANDBOX_RUN
needs: [search_companies]
input:
- name: code
value: |
import json
# Process search results
results = steps.search_companies.result["items"]
print("Company Search Results:")
print("=" * 50)
for i, company in enumerate(results, 1):
print(f"{i}. {company.get('name', 'Unknown')}")
print(f" URL: {company.get('url', 'N/A')}")
print(f" Address: {company.get('address', 'N/A')}")
print()
print(f"Total companies found: {len(results)}")
```
## Trigger a Pro job
```yaml theme={null}
- id: trigger_pro_job
name: trigger_pro_job
tool: CARNOT_SEARCH_CORP_PRO
config:
- name: carnot_api_key
value: "{{secrets.CARNOT_API_KEY}}"
input:
- name: spreadsheets_key
value: "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789"
- name: slack_channel_id
value: "C0123456789"
# steps.trigger_pro_job.result.content is "Job triggered successfully" or "Failed to trigger job"
```
## Analyze and export search results
```yaml theme={null}
- id: advanced_company_search
name: advanced_company_search
tool: CARNOT_SEARCH_CORP
config:
- name: perplexity_api_key
value: "{{secrets.PERPLEXITY_API_KEY}}"
- name: openai_api_key
value: "{{secrets.OPENAI_API_KEY}}"
input:
- name: query
value: "fintech startups with Series A funding in New York"
- name: num
value: 20
- id: analyze_competitive_landscape
name: analyze_competitive_landscape
tool: OPENAI_INVOKE
needs: [advanced_company_search]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Analyze the following company search results and provide insights:
{{steps.advanced_company_search.result.items | json}}
Please provide:
1. Market trends analysis
2. Geographic distribution
3. Company size patterns
4. Key players identification
5. Competitive landscape overview
- id: export_company_data
name: export_company_data
tool: CONVERTER_ARRAY_TO_CSV
needs: [advanced_company_search]
input:
- name: input
value: |
[
["Company Name", "Website", "Address", "Search Score"],
{% for company in steps.advanced_company_search.result.items %}
["{{company.name}}", "{{company.url}}", "{{company.address}}", "High"]{% if not loop.last %},{% endif %}
{% endfor %}
]
```
## Example: Market Research Workflow
```yaml theme={null}
- id: search_competitors
name: search_competitors
tool: CARNOT_SEARCH_CORP
config:
- name: perplexity_api_key
value: "{{secrets.PERPLEXITY_API_KEY}}"
- name: openai_api_key
value: "{{secrets.OPENAI_API_KEY}}"
input:
- name: query
value: "{{input.industry}} companies in {{input.target_region}}"
- name: num
value: 50
- id: enrich_company_data
name: enrich_company_data
tool: PYTHON_SANDBOX_RUN
needs: [search_competitors]
input:
- name: code
value: |
import json
import re
from urllib.parse import urlparse
companies = json.loads(r'''{{steps.search_competitors.result.items}}''')
enriched_data = []
for company in companies:
# Extract domain from URL
domain = ""
if company.get('url'):
try:
domain = urlparse(company['url']).netloc
except:
domain = company['url']
# Analyze company size based on address/description
size_indicator = "Unknown"
address = company.get('address', '').lower()
if any(term in address for term in ['suite', 'floor', 'building']):
size_indicator = "Medium-Large"
elif any(term in address for term in ['street', 'ave', 'road']):
size_indicator = "Small-Medium"
enriched = {
"name": company.get('name', ''),
"url": company.get('url', ''),
"domain": domain,
"address": company.get('address', ''),
"estimated_size": size_indicator
}
enriched_data.append(enriched)
print(json.dumps(enriched_data, indent=2))
- id: create_market_report
name: create_market_report
tool: OPENAI_INVOKE
needs: [enrich_company_data]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Create a comprehensive market research report based on this company data:
{{steps.enrich_company_data.result.data}}
Include:
1. Executive Summary
2. Market Size Assessment
3. Key Players Analysis
4. Geographic Distribution
5. Competitive Landscape
6. Market Opportunities
7. Recommendations
Format as a professional business report.
- id: save_market_report
name: save_market_report
tool: OUTPUT_FILE
needs: [create_market_report]
input:
- name: content
value: "{{steps.create_market_report.result.content}}"
- name: filename
value: "market_research_report.txt"
- name: fileType
value: "txt"
```
## Build a lead generation pipeline
```yaml theme={null}
- id: find_potential_leads
name: find_potential_leads
tool: CARNOT_SEARCH_CORP
config:
- name: perplexity_api_key
value: "{{secrets.PERPLEXITY_API_KEY}}"
- name: openai_api_key
value: "{{secrets.OPENAI_API_KEY}}"
input:
- name: query
value: "{{input.target_industry}} companies with 10-100 employees"
- name: num
value: 25
- id: qualify_leads
name: qualify_leads
tool: OPENAI_INVOKE
needs: [find_potential_leads]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Analyze these potential leads and score them for sales qualification:
{{steps.find_potential_leads.result.items | json}}
Scoring criteria:
- Company size and growth potential (1-10)
- Industry fit (1-10)
- Geographic accessibility (1-10)
- Technology alignment (1-10)
Return a scored list with recommendations for follow-up.
- id: export_qualified_leads
name: export_qualified_leads
tool: CONVERTER_ARRAY_TO_CSV
needs: [find_potential_leads]
input:
- name: input
value: |
[
["Company", "Website", "Address", "Qualification Score", "Priority", "Notes"],
{% for company in steps.find_potential_leads.result.items %}
["{{company.name}}", "{{company.url}}", "{{company.address}}", "TBD", "Medium", "Follow up required"]{% if not loop.last %},{% endif %}
{% endfor %}
]
```
## Search Parameters
### Query Optimization
* Use specific industry terms
* Include geographic qualifiers
* Specify company size when relevant
* Use boolean operators for complex searches
### Result Management
* Start with smaller result sets (10-20)
* Increase for comprehensive research (50+)
* Consider API rate limits
* Balance accuracy vs coverage
## Use Cases
* **Market Research**: Identify competitors and market players
* **Lead Generation**: Find potential customers and partners
* **Investment Research**: Analyze market sectors and opportunities
* **Competitive Intelligence**: Monitor competitor landscape
* **Partnership Development**: Discover potential business partners
* **Sales Prospecting**: Build targeted prospect lists
* **Due Diligence**: Research companies for business decisions
## Data Structure
`CARNOT_SEARCH_CORP` returns `result.items`; each item includes:
```json theme={null}
{
"name": "Company Name",
"url": "https://company-website.com",
"address": "123 Business St, City, State, ZIP"
}
```
## Best Practices
* **Query Design**: Use specific, targeted search terms
* **Result Processing**: Always validate and enrich search results
* **Rate Limiting**: Respect API limits and implement delays
* **Data Quality**: Clean and verify company information
* **Privacy**: Handle company data responsibly and legally
# Search the Web with Exa AI in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/exaai
Run EXAAI_SEARCH with a query and optional search type, result limit, or filters.
Use `EXAAI_SEARCH` with a `query`. The default search `type` is `auto`, and `numResults` defaults to 10 (allowed range 1–100). The tool accepts optional date and domain filters. Set `token` only when using your own Exa API key; Jinba credits are also supported.
## Run an Exa search
The Exa AI tool allows you to search the web using Exa AI's capabilities. It provides a simple interface to query the web and retrieve relevant information based on your input.
## Key Features
* `EXAAI_SEARCH`
* Search for information on the web using a query string.
* Retrieve relevant results based on your input.
## Authentication
If you do not have an Exa AI API key, you can still run Exa AI tools by using Jinba API credit. If you'd like to use your own API key, you can obtain one from the [official Exa AI website](https://exa.ai/).
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
### Example: Run Exa AI Search
```yaml theme={null}
- id: search
tool: EXAAI_SEARCH
config:
- name: token
value: "{{secrets.EXAAI_API_KEY}}"
input:
- name: query
value: find blog posts about AGI
```
## Inspect Exa results
Results appear in `result.results`; each item includes a title and URL, with optional text or highlights. If the step fails, check `token` and any filters. The configuration field is `token`, not `exaApiKey`.
# Get a Web Answer with Perplexity in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/perplexity
Run PERPLEXITY_SEARCH with a query and inspect its answer, citations, and token usage.
Use `PERPLEXITY_SEARCH` with a required `query`. The optional `model` defaults to `sonar`. Set `api_key` for your own Perplexity key, or use the Jinba credit option.
## Ask Perplexity a question
The Perplexity tool allows you to search the web for information. It is designed to provide quick and accurate answers to your queries by leveraging the power of AI and web search capabilities.
## Key Features
* `PERPLEXITY_SEARCH`
* Search for information on the web using a query string.
* Retrieve relevant results based on your input.
* Get answers to questions, summaries, and more.
## Authentication
If you do not have a Perplexity API key, you can still run Perplexity tools by using Jinba API credit. If you'd like to use your own API key, you can obtain one from the [official Perplexity website](https://www.perplexity.ai/).
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
### Example: Run Perplexity Search
```yaml theme={null}
- id: perplexity_search
tool: PERPLEXITY_SEARCH
config:
- name: api_key
value: "{{secrets.PERPLEXITY_API_KEY}}"
input:
- name: query
value: What is the capital of France?
```
## Inspect the answer and citations
The response includes `result.choices`, `result.citations`, `result.model`, and `result.usage`. Read the answer from a choice's `message.content` and review its citations before using it downstream. If the call fails, check the key or credit option and model.
# Run Semantic Search and RAG with Pinecone in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/pinecone
Use PINECONE_CREATE_INDEX, PINECONE_UPSERT, and PINECONE_QUERY to build and query a vector index, with OPENAI_INVOKE to generate answers from query matches (RAG).
Pinecone is a fully managed vector database that enables semantic search and RAG (Retrieval-Augmented Generation) applications. The Pinecone tool allows you to query vector indexes for similar vectors using semantic similarity.
* `PINECONE_CREATE_INDEX`
* Create new serverless vector indexes
* Configure vector dimension and distance metric
* Select cloud provider and deployment region
* Optional integrated inference: set an embedding model and Pinecone embeds your text
* Wait-until-ready option for immediate use
* `PINECONE_QUERY`
* Search for similar vectors using semantic similarity
* **Dual-mode operation**: Vector query OR text query with integrated inference
* Support for top-K results retrieval
* Metadata filtering with Pinecone filter syntax
* Namespace isolation for data partitioning
* Similarity threshold filtering (minScore)
* Optional inclusion of metadata and vector values
* `PINECONE_UPSERT`
* Insert or update vectors in Pinecone index
* **Dual-mode operation**: Vector upsert OR document upsert with integrated inference
* Batch operations (up to 100 vectors/documents per request)
* Metadata support for rich vector annotations
* Namespace isolation for data organization
## Connect with Pinecone credentials
You need a Pinecone API key to use this tool. You can obtain one from the [Pinecone Console](https://app.pinecone.io/).
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Create an index and upsert documents
Setting `embeddingModel` creates an index with integrated inference, so Pinecone embeds the text of each document and query for you. No `dimension` is needed; the model sets it.
```yaml theme={null}
# Step 1: Create a serverless index
- id: create_index
name: create_index
tool: PINECONE_CREATE_INDEX
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: knowledge-base
- name: embeddingModel
value: multilingual-e5-large
- name: cloud
value: aws
- name: region
value: us-east-1
- name: waitUntilReady
value: true
# Step 2: Upload documents with automatic embedding
- id: upload_docs
name: upload_docs
tool: PINECONE_UPSERT
needs: [create_index]
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: knowledge-base
- name: documents
value: |
[
{
"id": "doc1",
"text": "Pinecone is a vector database optimized for AI applications.",
"metadata": {"category": "intro", "source": "docs"}
},
{
"id": "doc2",
"text": "Integrated inference automatically generates embeddings from your text.",
"metadata": {"category": "features", "source": "docs"}
}
]
# Step 3: Query with text (automatic embedding)
- id: search
name: search
tool: PINECONE_QUERY
needs: [upload_docs]
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: knowledge-base
- name: query
value: "How does Pinecone handle embeddings?"
- name: topK
value: 3
- name: includeMetadata
value: true
```
The upsert returns the number of records written at `steps.upload_docs.result.upsertedCount`. The search results are at `steps.search.result.matches`; each match has `id`, `score` and `metadata` (the record's stored fields, such as `text` and `category`).
## Query an index
### Example: Query with Reranking for Improved Relevance
Reranking re-scores initial results to improve relevance. This is especially useful for complex queries.
```yaml theme={null}
- id: search_with_rerank
name: search_with_rerank
tool: PINECONE_QUERY
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: knowledge-base
- name: query
value: "How does Pinecone handle embeddings?"
- name: topK
value: 10
- name: includeMetadata
value: true
- name: rerankModel
value: bge-reranker-v2-m3 # Options: cohere-rerank-3.5, bge-reranker-v2-m3, pinecone-rerank-v0
- name: rerankTopN
value: 3
- name: rerankRankFields
value: '["text"]'
- name: fields
value: '["category", "text"]'
```
Reranking works with text queries (`query`). `rerankRankFields` is required when `rerankModel` is set, and every field in it must also be listed in `fields`. `rerankTopN` must not exceed `topK`.
### Example: Search with Metadata Filtering
```yaml theme={null}
- id: filtered_search
name: filtered_search
tool: PINECONE_QUERY
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: my-docs-index
- name: query
value: "How does Pinecone handle embeddings?"
- name: topK
value: 10
- name: filter
value: '{"category": {"$eq": "technology"}, "year": {"$gte": 2020}}'
- name: namespace
value: production
```
`query` only works on an index created with integrated inference. For an index without it, pass `vector` instead: a JSON array of numbers from the same embedding model the index was built with, with a length that matches the index dimension. Jinba Flow has no built-in embedding step, so a vector must come from an external source.
### Example: Answer a Question with Retrieved Context (RAG)
Search the index with the user's question, then pass the matches to an LLM as context.
```yaml theme={null}
- id: search
name: search
tool: PINECONE_QUERY
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: knowledge-base
- name: query
value: "What is integrated inference?"
- name: topK
value: 5
- name: minScore
value: 0.5
- id: generate_answer
name: generate_answer
tool: OPENAI_INVOKE
needs: [search]
input:
- name: prompt
value: |
Answer the question using only the context below.
Context (JSON):
{{steps.search.result.matches}}
Question: What is integrated inference?
```
`{{steps.search.result.matches}}` is inserted as JSON text, so the LLM sees each match's `metadata.text`. The answer is at `steps.generate_answer.result.content`.
## Parameters
### PINECONE_CREATE_INDEX
| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `indexName` | string | Yes | - | Name of the index (lowercase alphanumeric and hyphens, max 45 chars) |
| `dimension` | number | No\* | - | Vector dimension (e.g., 1536 for OpenAI ada-002). Required for a standard index |
| `metric` | string | No | cosine | Distance metric: cosine, euclidean, or dotproduct. Standard index only |
| `cloud` | string | No | aws | Cloud provider: aws, gcp, or azure |
| `region` | string | Yes | - | Deployment region (e.g., us-east-1) |
| `waitUntilReady` | boolean | No | true | Wait until index is ready before returning |
| `embeddingModel` | string | No\* | - | Creates an index with integrated inference: multilingual-e5-large, llama-text-embed-v2, or pinecone-sparse-english-v0 |
| `textField` | string | No | text | Document field to embed. Only used with `embeddingModel` |
\*Provide either `dimension` (standard index) or `embeddingModel` (integrated inference).
### PINECONE_QUERY
| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `indexName` | string | Yes | - | The name of the Pinecone index to query |
| `vector` | number\[] | No\* | - | Query vector as array of numbers |
| `query` | string | No\* | - | Text query for integrated inference (automatic embedding) |
| `topK` | number | No | 10 | Number of results to return (1-100) |
| `namespace` | string | No | - | Namespace to query within the index |
| `filter` | object | No | - | Metadata filter using Pinecone filter syntax |
| `minScore` | number | No | - | Minimum similarity score threshold (0-1) |
| `includeMetadata` | boolean | No | true | Include metadata in results |
| `includeValues` | boolean | No | false | Include vector values in results |
| `fields` | string\[] | No | - | Record fields to return (text queries). Must include every `rerankRankFields` entry |
| `rerankModel` | string | No | - | Reranking model: cohere-rerank-3.5, bge-reranker-v2-m3, or pinecone-rerank-v0 |
| `rerankTopN` | number | No | - | Results to keep after reranking (must be ≤ `topK`) |
| `rerankRankFields` | string\[] | No | - | Fields the reranker scores, e.g. `["text"]`. Required with `rerankModel` |
| `rerankQuery` | string | No | - | Text to rerank against. Defaults to `query` |
\*Either `vector` or `query` must be provided, but not both.
### PINECONE_UPSERT
| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `indexName` | string | Yes | - | The name of the Pinecone index |
| `vectors` | array | No\* | - | Array of vector objects (id, values, metadata) |
| `documents` | array | No\* | - | Array of document objects for integrated inference (id, text, metadata) |
| `namespace` | string | No | - | Namespace for data organization |
\*Either `vectors` or `documents` must be provided, but not both.
### Output
`PINECONE_QUERY` returns the following under `result` (`steps..result.matches`, and so on). `PINECONE_UPSERT` returns `result.upsertedCount`.
```json theme={null}
{
"matches": [
{
"id": "vec1",
"score": 0.95,
"metadata": {
"title": "Document Title",
"text": "Document content...",
"category": "technology"
}
}
],
"namespace": "production",
"usage": {
"readUnits": 5
}
}
```
## Use Cases
### RAG (Retrieval-Augmented Generation)
Combine Pinecone with an LLM tool such as `OPENAI_INVOKE` (see the RAG example above):
1. Search Pinecone with the user's question as a text `query` (integrated inference), or with a `vector` generated outside Jinba Flow that matches the index dimension
2. Take the relevant documents from `result.matches`
3. Pass them as context in the LLM prompt
### Semantic Search
Search documents by meaning rather than keywords:
* Find similar articles
* Recommend related content
* Discover relevant information
### Question Answering
Build Q\&A systems with context retrieval:
* Technical documentation search
* Customer support knowledge base
* Research paper discovery
## Resources
* [Pinecone Documentation](https://docs.pinecone.io/)
* [Pinecone Console](https://app.pinecone.io/)
* [Vector Embeddings Guide](https://www.pinecone.io/learn/vector-embeddings/)
* [RAG Best Practices](https://www.pinecone.io/learn/retrieval-augmented-generation/)
# Get Pokémon, Type, and Ability Data in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/pokeapi
Use PokeAPI tools to retrieve Pokémon, type, or ability data by ID or name.
Choose the PokeAPI tool by the object you need. Each tool takes an `id` string containing a numeric ID or name; no authentication configuration is required.
## Use the tool
The PokeAPI tools allow you to search for Pokemon data, including information about specific Pokemon, their abilities, types, and more. These tools are designed to provide quick access to a wide range of Pokemon-related data.
## Key Features
* `POKEAPI_GET_POKEMON`
* Retrieve detailed information about a specific Pokemon by its ID or name.
* Returns `id`, `name`, `weight`, `types`, and `stats`.
* `POKEAPI_GET_TYPE`
* Get information about a specific Pokemon type.
* Access details such as damage relations and effectiveness against other types.
* `POKEAPI_GET_ABILITY`
* Retrieve information about a specific Pokemon ability.
* Access details such as effects and which Pokemon can have the ability.
### Example: Run PokeAPI
```yaml theme={null}
- id: get_pokemon
tool: POKEAPI_GET_POKEMON
input:
- name: id
value: "1"
- id: get_type
tool: POKEAPI_GET_TYPE
input:
- name: id
value: "1"
- id: get_ability
tool: POKEAPI_GET_ABILITY
input:
- name: id
value: "65"
```
## Check the returned object
Inspect each step’s `result` for the requested object. `POKEAPI_GET_POKEMON` returns fields such as `id`, `name`, `weight`, `types`, and `stats`. If an ID or name produces an error, check that the requested object exists and matches the chosen tool.
# Search with SerpAPI in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/serpapi
Run SERPAPI_SEARCH with a query and optional search engine, then inspect the results.
Use `SERPAPI_SEARCH` with a `query`. The optional `engine` defaults to `google`. Set `token` for your own SerpAPI key, or use the Jinba credit option.
## Run a SerpAPI search
The SerpAPI tool allows you to search the web using SerpAPI's capabilities. It provides a simple interface to query the web and retrieve relevant information based on your input.
## Key Features
* `SERPAPI_SEARCH`
* Search for information on the web using a query string.
* Retrieve relevant results based on your input.
* Get answers to questions, summaries, and more.
## Authentication
If you do not have a SerpAPI API key, you can still run SerpAPI tools by using Jinba API credit. If you'd like to use your own API key, you can obtain one from the [official SerpAPI website](https://serpapi.com/).
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
### Example: Run SerpAPI Search
```yaml theme={null}
- id: serpapi_search
tool: SERPAPI_SEARCH
config:
- name: token
value: "{{secrets.SERPAPI_API_KEY}}"
input:
- name: query
value: What is the capital of France?
- name: engine
value: google
```
## Inspect SerpAPI results
The response is under `result.search_results`. Its fields vary by engine, so inspect the actual result before referencing a nested field. If the step fails, check the key or credit option, query, and engine value.
# Run Queries and Vector Search on Teradata in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/teradata
Use TERADATA_RUN_QUERY to run queries, and VANTAGE_CLOUD_VECTOR_STORE_CREATE, VANTAGE_CLOUD_VECTOR_STORE_ADD_DOCUMENT, and VANTAGE_CLOUD_VECTOR_SEARCH for vector operations.
The Teradata tools allow you to run SQL queries on a Teradata database and to build and search vector stores on Teradata Vantage Cloud for RAG-style workflows.
* `TERADATA_RUN_QUERY`
* Execute SQL queries on a Teradata database.
* Retrieve results in a structured format.
* `VANTAGE_CLOUD_VECTOR_STORE_CREATE`
* Create a VectorStore on Vantage Cloud from files in Jinba storage, with document ingestion and chunking.
* `VANTAGE_CLOUD_VECTOR_STORE_ADD_DOCUMENT`
* Add documents from files in Jinba storage to an existing VectorStore on Vantage Cloud.
* `VANTAGE_CLOUD_VECTOR_SEARCH`
* Perform semantic similarity search on a Vantage Cloud VectorStore.
## Connect with Teradata credentials
For `TERADATA_RUN_QUERY`, you will need your Teradata database credentials: `host`, `user`, and `password`.
The three `VANTAGE_CLOUD_*` tools share the same config parameters:
| Parameter | Required | Description |
| - | - | - |
| `host` | No | Vantage Cloud host address (default: `host.docker.internal`, keep the default when using an SSH tunnel on the host machine) |
| `dbs_port` | No | Database port number (default: `1025`) |
| `username` | Yes | Database username |
| `password` | Yes | Database password |
| `base_url` | Yes | UES URI (the URL without the trailing `/open-analytics`) |
| `pat_token` | Yes | Personal Access Token (for CCP authentication) |
| `pem_content` | Yes | Contents of the PEM private key (paste the text starting with `-----BEGIN PRIVATE KEY-----` as-is) |
| `pem_kid` | No | Key ID of the PEM key (defaults to `username`; must match the key name registered on the Teradata side) |
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Vantage Cloud Vector Tools
### VANTAGE_CLOUD_VECTOR_STORE_CREATE
Create a VectorStore on Vantage Cloud from files in Jinba storage.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `vector_store_name` | string | Yes | Name of the VectorStore to create |
| `file_urls` | string | Yes | Comma-separated (or newline-separated) HTTPS URLs of files to ingest as documents (maximum 10 files) |
| `embeddings_model` | string | No | Embeddings model to use for vectorization (default: `amazon.titan-embed-text-v1`) |
| `search_algorithm` | string | No | Search algorithm: `VECTORDISTANCE` or `HNSW` (default: `VECTORDISTANCE`) |
| `top_k` | number | No | Number of top results for search (default: 5) |
| `object_names` | string | No | Object name for data storage (defaults to `vector_store_name` + `_data`) |
| `data_columns` | string | No | Data column name for text content (default: `chunks`) |
| `vector_column` | string | No | Column name for vector embeddings (default: `Embedding`) |
| `chunk_size` | number | No | Chunk size for document splitting (default: 500) |
**Output**: `result` with `name` (created VectorStore), `status`, and `message`.
### VANTAGE_CLOUD_VECTOR_STORE_ADD_DOCUMENT
Add documents to an existing VectorStore on Vantage Cloud.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `vector_store_name` | string | Yes | Name of the existing VectorStore to add documents to |
| `file_urls` | string | Yes | Comma-separated (or newline-separated) HTTPS URLs of files to add as documents (maximum 10 files) |
**Output**: `result` with `name`, `status`, and `message`.
### VANTAGE_CLOUD_VECTOR_SEARCH
Perform semantic similarity search on a Vantage Cloud VectorStore.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `vector_store_name` | string | Yes | Name of the VectorStore to search |
| `query` | string | Yes | Natural language query for similarity search |
| `top_k` | number | No | Number of similar results to return (default: 5) |
**Output**: `result` with `similar_objects` (each containing `score` and, when available, `DataBaseName`, `TableName`, `TD_ID`, `TD_FILENAME`, `chunks`, `index_label`) and `total_count`.
## Create and search a vector store
```yaml theme={null}
- id: upload_manual
tool: INPUT_FILE
input:
- name: description
value: "Product manual to ingest"
- id: create_vector_store
tool: VANTAGE_CLOUD_VECTOR_STORE_CREATE
needs: [upload_manual]
config:
- name: username
value: "{{secrets.VANTAGE_USERNAME}}"
- name: password
value: "{{secrets.VANTAGE_PASSWORD}}"
- name: base_url
value: "{{secrets.VANTAGE_BASE_URL}}"
- name: pat_token
value: "{{secrets.VANTAGE_PAT_TOKEN}}"
- name: pem_content
value: "{{secrets.VANTAGE_PEM_CONTENT}}"
input:
- name: vector_store_name
value: "product_docs"
- name: file_urls
value: "{{steps.upload_manual.result}}"
- id: vector_search
tool: VANTAGE_CLOUD_VECTOR_SEARCH
config:
- name: username
value: "{{secrets.VANTAGE_USERNAME}}"
- name: password
value: "{{secrets.VANTAGE_PASSWORD}}"
- name: base_url
value: "{{secrets.VANTAGE_BASE_URL}}"
- name: pat_token
value: "{{secrets.VANTAGE_PAT_TOKEN}}"
- name: pem_content
value: "{{secrets.VANTAGE_PEM_CONTENT}}"
input:
- name: vector_store_name
value: "product_docs"
- name: query
value: "How do I reset my password?"
- name: top_k
value: 5
```
## Run a query
```yaml theme={null}
- id: run_query
tool: TERADATA_RUN_QUERY
config:
- name: host
value: 100.21.165.28
- name: user
value: carnot
- name: password
value: carnot#123
input:
- name: query
value: "
\ with examples as (
\ select 1 as id, 'jon' as name
\ union all
\ select 2 as id, 'jane' as name
\ )
\ select * from examples;
\ "
```
# Search, Fetch, and Browse the Web with TinyFish in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/tinyfish
Use TINYFISH_SEARCH to search, TINYFISH_FETCH to fetch pages, and TINYFISH_AGENT to run web agents, authenticated with a TINYFISH_API_KEY.
TinyFish tools provide web infrastructure for AI agents: structured web search, full-browser page fetching, and a natural-language browser agent that navigates real websites and extracts structured data.
* `TINYFISH_SEARCH`
* Search the web with a query string and get structured JSON results (title, URL, description, snippet)
* Control the number of results (`num_results`, 1–50, default 10) and geo-target results with a two-letter country code (`country`, e.g. `us`, `jp`)
* `TINYFISH_FETCH`
* Render and extract clean content from one or more URLs using a full browser — works on JavaScript-heavy pages
* Pass a single URL string or a JSON array of URLs (`urls`), and choose the output format (`format`: `markdown` (default), `html`, `json`, or `text`)
* `TINYFISH_AGENT`
* Run a browser automation agent: give it a starting URL (`url`) and a natural-language goal (`goal`), and it navigates the site and extracts structured data
* Configure the maximum run time with `timeout_seconds` (default 300)
* Returns the stream of agent events plus the final result
## Connect with a TinyFish API key
All TinyFish tools authenticate with a TinyFish API key, set via the `api_key` config (stored as a secret). If the config is not provided, the tools fall back to the `TINYFISH_API_KEY` environment variable.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Search the web and fetch pages
```yaml theme={null}
- id: search_news
name: search_news
tool: TINYFISH_SEARCH
config:
- name: api_key
value: "{{secrets.TINYFISH_API_KEY}}"
input:
- name: query
value: latest AI workflow automation trends
- name: num_results
value: 5
- name: country
value: us
- id: fetch_pages
name: fetch_pages
tool: TINYFISH_FETCH
config:
- name: api_key
value: "{{secrets.TINYFISH_API_KEY}}"
input:
- name: urls
value: '["https://example.com/article-1","https://example.com/article-2"]'
- name: format
value: markdown
```
## Run a web agent
```yaml theme={null}
- id: check_pricing
name: check_pricing
tool: TINYFISH_AGENT
config:
- name: api_key
value: "{{secrets.TINYFISH_API_KEY}}"
input:
- name: url
value: https://example.com/pricing
- name: goal
value: Find all subscription plans and prices. Return JSON.
- name: timeout_seconds
value: 300
```
## Notes
* `TINYFISH_AGENT` is an at-least-once operation: if a worker dies mid-run, the runner may resubmit the job. Avoid using it for irreversible side effects (form submissions, purchases, etc.) without an external idempotency guard.
* `TINYFISH_FETCH` accepts `urls` as a single URL string, a comma-separated list, or a JSON array.
* `TINYFISH_SEARCH` returns at most 50 results per call.
# Get a YouTube Video Transcript in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/search/youtube
Use YOUTUBE_GET_TRANSCRIPT with a video ID and language to return spoken text, optionally with timestamps.
Use `YOUTUBE_GET_TRANSCRIPT` with the video ID from a YouTube URL. `lang` defaults to `en`; `timestamps` defaults to `false`. The text is returned in `result.transcript`.
## Use the tool
The YouTube Transcript tool allows you to retrieve transcripts for YouTube videos. This can be useful for extracting spoken content from videos, making it easier to analyze or reference later.
## Key Features
* `YOUTUBE_GET_TRANSCRIPT`
* Retrieve transcripts for YouTube videos.
* Supports multiple languages and options for timestamps.
### Example: Get YouTube Transcript
```yaml theme={null}
- id: get_transcript
name: get_transcript
tool: YOUTUBE_GET_TRANSCRIPT
config: []
input:
- name: video_id
value: Rzlr2tNSl0U
- name: lang
value: en
- name: timestamps
value: false
```
## Check the transcript result
Inspect `result.transcript` after the run. If it is unavailable, check the video ID, requested language, and whether captions exist for that video. To include timestamps, set `timestamps` to `true`.
# Validate and Check Data Quality in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/validation/checker_tools
Use CHECKER_CHECK_BY_JSON, CHECKLIST, and JINBA_MODULES_CHECKER_V2 to validate documents and data for quality assurance in a Jinba Flow workflow.
Checker Tools provide comprehensive data validation and quality assurance capabilities. These tools help ensure data integrity, compliance with business rules, and automated quality control in your workflows.
## Tools
### CHECKER_CHECK_BY_JSON
* Uses an LLM to check text against rules defined as a JSON array
* Each rule can include a `name`, `description`, optional `references`, and optional few-shot `examples`
* Detailed validation results with reasons
* Inputs: `text` (text to check), `task` (task name), `description` (optional task description), `rules` (JSON array of rules)
### CHECKLIST
* Uses an LLM to evaluate whether the input text complies with each rule defined in a CSV file
* CSV columns: `name`, `description`, optional `references` (semicolon-separated), optional `examples` (JSON)
* Structured validation reporting
* Inputs: `text` (text to check), `task` (task name), `description` (optional task description), `rules` (URL of the CSV rules file)
### JINBA_MODULES_CHECKER_V2
* Advanced validation using JSON rule files
* Enhanced rule processing
* Improved performance and accuracy
* Version 2 with additional features
## Authentication
No authentication required for checker tools.
## Validate a document
`extract_document` stands for an earlier step in your flow; its result is assumed to contain the document text in `content`.
```yaml theme={null}
- id: validate_document
name: validate_document
tool: CHECKER_CHECK_BY_JSON
input:
- name: text
value: "{{steps.extract_document.result.content}}"
- name: task
value: "Contract Compliance Check"
- name: description
value: "Validate contract document against legal requirements"
- name: rules
value: |
[
{
"name": "Must contain signature section",
"description": "The document must contain a signature section (e.g. 'signature', 'sign here', 'executed by')."
},
{
"name": "Must include termination clause",
"description": "The document must include a termination clause describing how the agreement ends or expires."
},
{
"name": "Should specify payment terms",
"description": "The document should specify payment terms such as invoicing, billing, or due dates."
}
]
```
## Validate data quality
```yaml theme={null}
- id: input_file
name: input_file
tool: INPUT_FILE
input:
- name: description
value: "Excel file with customer data"
- id: extract_data
name: extract_data
tool: EXCEL_GET_ROWS
needs: [input_file]
input:
- name: url
value: "{{steps.input_file.result}}"
- name: range
value: "A1:E100"
- id: validate_data_quality
name: validate_data_quality
tool: CHECKER_CHECK_BY_JSON
needs: [extract_data]
input:
- name: text
value: "{{steps.extract_data.result | join('\n')}}"
- name: task
value: "Customer Data Validation"
- name: rules
value: |
[
{
"name": "Email format validation",
"description": "Every email address must follow a valid email format (e.g. user@example.com)."
},
{
"name": "Phone number format",
"description": "Every phone number must be a valid international phone number."
},
{
"name": "Complete address information",
"description": "Each record should contain complete address information (street, city, etc.)."
}
]
- id: process_validation_results
name: process_validation_results
tool: PYTHON_SANDBOX_RUN
needs: [validate_data_quality]
input:
- name: code
value: |
import json
validation_results = {{steps.validate_data_quality.result}}
# Count validation status
accepted = sum(1 for r in validation_results if r['status'] == 'accepted')
rejected = sum(1 for r in validation_results if r['status'] == 'rejected')
pending = sum(1 for r in validation_results if r['status'] == 'pending')
print(f"Validation Summary:")
print(f"✅ Accepted: {accepted}")
print(f"❌ Rejected: {rejected}")
print(f"⏳ Pending: {pending}")
# List rejected items with reasons
if rejected > 0:
print("\nRejected Items:")
for result in validation_results:
if result['status'] == 'rejected':
print(f"- {result['rule']}: {result['reason']}")
```
## Example: Advanced File Validation
```yaml theme={null}
- id: input_data
name: input_data
tool: INPUT_FILE
input:
- name: description
value: "Data file to validate"
- id: upload_rules_file
name: upload_rules_file
tool: INPUT_FILE
input:
- name: description
value: "Upload validation rules CSV file"
- id: validate_with_checklist
name: validate_with_checklist
tool: CHECKLIST
needs: [upload_rules_file, input_data]
input:
- name: text
value: "{{steps.input_data.result}}"
- name: task
value: "Batch Data Validation"
- name: rules
value: "{{steps.upload_rules_file.result}}"
- id: advanced_validation
name: advanced_validation
tool: JINBA_MODULES_CHECKER_V2
needs: [input_data]
input:
- name: target_file
value: "{{steps.input_data.result}}"
- name: task
value: "Advanced Data Validation"
- name: description
value: "Comprehensive validation using enhanced checker v2"
- name: rules
value: |
[
{
"uniqueId": "email_check",
"name": "Email format validation",
"description": "Every email address must follow a valid email format (e.g. user@example.com)."
},
{
"uniqueId": "age_check",
"name": "Age range validation",
"description": "Every age value must be a number between 18 and 120."
},
{
"uniqueId": "country_check",
"name": "Country code validation",
"description": "Every country code must be one of US, UK, CA, AU, or JP."
}
]
- name: additionalDataSchema
value: |
{
"extractedData": {
"type": "object",
"properties": {
"email": {"type": "string"},
"age": {"type": "number"},
"country": {"type": "string"}
}
}
}
```
## Choose a validation rule type
### Pattern-based Rules
* **Regex patterns**: Use regular expressions for complex validation
* **Text matching**: Simple text presence or absence checks
* **Format validation**: Email, phone, URL, date formats
### Structural Rules
* **Required fields**: Ensure mandatory data is present
* **Data types**: Validate numeric, date, boolean data
* **Range validation**: Min/max values, length constraints
### Business Rules
* **Custom logic**: Complex business rule validation
* **Cross-field validation**: Rules that depend on multiple fields
* **Conditional rules**: Rules that apply under certain conditions
## Validation Results
Each validation returns an array of structured results:
```json theme={null}
{
"rule": "Email format validation",
"status": "accepted|rejected|pending",
"range": [0, 120],
"reason": "Detailed explanation of validation result"
}
```
`range` is an array of numbers indicating the character range the result applies to.
## Use Cases
* **Data Quality Assurance**: Validate imported data quality
* **Compliance Checking**: Ensure documents meet regulatory requirements
* **Form Validation**: Validate user-submitted forms and applications
* **Content Moderation**: Check content against community guidelines
* **Business Rule Enforcement**: Ensure data meets business criteria
* **Import Validation**: Validate data before importing into systems
* **Document Review**: Automated document compliance checking
# Convert Data Between Formats in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/validation/data_conversion
Use CONVERTER_ARRAY_TO_CSV, CONVERTER_HTML_TO_PDF, CONVERTER_HTML_TO_DOCX, and CONVERTER_IMAGE_TO_PDF to convert data between different formats and structures, such as CSV export, HTML to PDF or DOCX, and image to PDF, in a Jinba Flow workflow.
Data Conversion Tools provide essential functionality for transforming data between different formats. These tools handle array-to-CSV conversion, image-to-PDF conversion, HTML-to-PDF/DOCX conversion, and other data transformation needs in your workflows.
## Tools
### CONVERTER_ARRAY_TO_CSV
* Convert 2D arrays to CSV format with automatic escaping
* Handles special characters (quotes, commas, newlines)
* Text cells that start with `=`, `+`, `-`, `@`, tab or carriage return are prefixed with an apostrophe (`'`) so spreadsheet applications show them as text instead of evaluating them as formulas; numeric values (e.g. `-5`, `+1.5e3`) are written as-is
* Input: `input` (2D array) — Output: `result` (CSV string)
* Compatible with spreadsheet applications
### CONVERTER_IMAGE_TO_PDF
* Convert images to PDF format
* Support for TIFF, PNG, JPEG, GIF, and more
* Input: `file_link` (array of image URLs, max 10 files)
* Output: `result` (URL of the generated PDF)
### CONVERTER_HTML_TO_PDF
* Convert HTML content to a PDF file
* Input: `html_content` (HTML string), `filename` (optional, without extension)
* Output: `result` (signed URL to the created PDF file)
### CONVERTER_HTML_TO_DOCX
* Convert HTML content to a DOCX (Word) file
* Input: `html_content` (HTML string), `filename` (optional, without extension)
* Output: `result` (signed URL to the created DOCX file)
## Authentication
No authentication required for conversion tools.
## Export data to CSV
```yaml theme={null}
- id: fetch_data
name: fetch_data
tool: PYTHON_SANDBOX_RUN
input:
- name: data_type
value: OBJECT
- name: code
value: |
# Sample data processing
import json
# Simulate fetching data from API or database
raw_data = [
{"name": "John Doe", "email": "john@example.com", "age": 30, "city": "New York"},
{"name": "Jane Smith", "email": "jane@example.com", "age": 25, "city": "Los Angeles"},
{"name": "Bob Johnson", "email": "bob@example.com", "age": 35, "city": "Chicago"}
]
# Convert to 2D array format
headers = ["Name", "Email", "Age", "City"]
data_rows = []
data_rows.append(headers)
for item in raw_data:
row = [item["name"], item["email"], str(item["age"]), item["city"]]
data_rows.append(row)
print(json.dumps({"rows": data_rows}))
- id: convert_to_csv
name: convert_to_csv
tool: CONVERTER_ARRAY_TO_CSV
needs: [fetch_data]
input:
- name: input
value: "{{steps.fetch_data.result.data.rows}}"
- id: save_csv_file
name: save_csv_file
tool: OUTPUT_FILE
needs: [convert_to_csv]
input:
- name: content
value: "{{steps.convert_to_csv.result}}"
- name: filename
value: "user_data_export.csv"
- name: fileType
value: "csv"
```
## Example: Sales Report Generation
```yaml theme={null}
- id: calculate_sales_metrics
name: calculate_sales_metrics
tool: PYTHON_SANDBOX_RUN
input:
- name: data_type
value: OBJECT
- name: code
value: |
import json
from datetime import datetime, timedelta
# Sample sales data
sales_data = [
{"product": "Widget A", "sales": 1500, "region": "North", "month": "Jan"},
{"product": "Widget B", "sales": 2300, "region": "South", "month": "Jan"},
{"product": "Widget A", "sales": 1800, "region": "North", "month": "Feb"},
{"product": "Widget B", "sales": 2100, "region": "South", "month": "Feb"}
]
# Create summary table
summary = [["Product", "Region", "Month", "Sales", "Growth"]]
for i, item in enumerate(sales_data):
growth = "N/A"
if i >= 2: # Calculate growth for Feb data
prev_sales = sales_data[i-2]["sales"]
growth = f"{((item['sales'] - prev_sales) / prev_sales * 100):.1f}%"
summary.append([
item["product"],
item["region"],
item["month"],
f"${item['sales']:,}",
growth
])
print(json.dumps({"rows": summary}))
- id: export_sales_csv
name: export_sales_csv
tool: CONVERTER_ARRAY_TO_CSV
needs: [calculate_sales_metrics]
input:
- name: input
value: "{{steps.calculate_sales_metrics.result.data.rows}}"
- id: create_downloadable_report
name: create_downloadable_report
tool: OUTPUT_FILE
needs: [export_sales_csv]
input:
- name: content
value: "{{steps.export_sales_csv.result}}"
- name: filename
value: "sales_report.csv"
- name: fileType
value: "csv"
```
## Convert an image to PDF
```yaml theme={null}
- id: input_images
name: input_images
tool: INPUT_IMAGE_FILE
input:
- name: value
value: "https://example.com/chart1.png"
- name: description
value: "Sales chart image"
- id: convert_chart_to_pdf
name: convert_chart_to_pdf
tool: CONVERTER_IMAGE_TO_PDF
input:
- name: file_link
value:
- "https://example.com/chart1.png"
- id: convert_multiple_charts
name: convert_multiple_charts
tool: CONVERTER_IMAGE_TO_PDF
input:
- name: file_link
value:
- "https://example.com/chart1.png"
- "https://example.com/chart2.png"
- "https://example.com/chart3.png"
```
## Convert HTML to PDF or DOCX
```yaml theme={null}
- id: generate_html_report
name: generate_html_report
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Generate an HTML report summarizing this month's sales results.
Return only the HTML content.
- id: convert_report_to_pdf
name: convert_report_to_pdf
tool: CONVERTER_HTML_TO_PDF
needs: [generate_html_report]
input:
- name: html_content
value: "{{steps.generate_html_report.result.content}}"
- name: filename
value: "monthly_sales_report"
- id: convert_report_to_docx
name: convert_report_to_docx
tool: CONVERTER_HTML_TO_DOCX
needs: [generate_html_report]
input:
- name: html_content
value: "{{steps.generate_html_report.result.content}}"
- name: filename
value: "monthly_sales_report"
# steps.convert_report_to_pdf.result is a signed URL to the PDF file
# steps.convert_report_to_docx.result is a signed URL to the DOCX file
```
## Example: Complex Data Transformation
```yaml theme={null}
- id: input_excel
name: input_excel
tool: INPUT_FILE
input:
- name: description
value: "Excel file to transform"
- id: extract_complex_data
name: extract_complex_data
tool: EXCEL_GET_ROWS
needs: [input_excel]
input:
- name: url
value: "{{steps.input_excel.result}}"
- name: range
value: "A1:F1000"
- id: transform_and_clean_data
name: transform_and_clean_data
tool: PYTHON_SANDBOX_RUN
needs: [extract_complex_data]
input:
- name: data_type
value: OBJECT
- name: code
value: |
import json
import re
# Parse the Excel data
excel_data = json.loads(r'''{{steps.extract_complex_data.result}}''')
# Clean and transform data
cleaned_data = []
headers = ["ID", "Name", "Email", "Phone", "Status", "Notes"]
cleaned_data.append(headers)
for row in excel_data[1:]: # Skip header row
if len(row) >= 6:
# Clean email
email = row[2].strip().lower() if row[2] else ""
# Format phone number
phone = re.sub(r'[^\d+]', '', row[3]) if row[3] else ""
# Clean and escape notes (may contain commas, quotes)
notes = str(row[5]).replace('"', '""') if row[5] else ""
cleaned_row = [
str(row[0]) if row[0] else "",
str(row[1]).title() if row[1] else "",
email,
phone,
str(row[4]).upper() if row[4] else "PENDING",
notes
]
cleaned_data.append(cleaned_row)
print(json.dumps(cleaned_data))
- id: convert_cleaned_data
name: convert_cleaned_data
tool: CONVERTER_ARRAY_TO_CSV
needs: [transform_and_clean_data]
input:
- name: input
value: "{{steps.transform_and_clean_data.result.data}}"
- id: save_cleaned_export
name: save_cleaned_export
tool: OUTPUT_FILE
needs: [convert_cleaned_data]
input:
- name: content
value: "{{steps.convert_cleaned_data.result}}"
- name: filename
value: "cleaned_data_export.csv"
- name: fileType
value: "csv"
```
## Data Format Support
### CSV Conversion
* **Input**: 2D arrays, JSON arrays, structured data
* **Output**: RFC 4180 compliant CSV
* **Features**: Automatic escaping, encoding handling
### Image to PDF
* **Supported formats**: TIFF, PNG, JPEG, GIF, and more
* **Input**: Up to 10 image URLs per conversion
* **Output**: PDF document URL
### HTML to PDF / DOCX
* **Input**: HTML content string and optional filename (without extension)
* **Output**: Signed URL to the generated PDF or DOCX file
* **Features**: Useful for turning LLM-generated HTML into downloadable documents
## Best Practices
### CSV Handling
* Always include headers in your data arrays
* Handle special characters (commas, quotes, newlines)
* Use consistent data types within columns
* Validate data before conversion
### Image Conversion
* Ensure images are accessible via public URLs
* Consider file size limitations
* Optimize images before conversion for better performance
* Use appropriate filenames for organization
## Use Cases
* **Data Export**: Export database queries to CSV for Excel
* **Report Generation**: Convert processed data to spreadsheet format
* **Document Creation**: Convert charts and images to PDF
* **Data Migration**: Transform data between different systems
* **Analytics Export**: Export analysis results for stakeholders
* **Backup and Archive**: Convert data to portable formats
* **Integration**: Prepare data for external system import
# Validate JSON Input to a Jinba Flow Workflow
Source: https://docs.jinba.io/en/pages/tools/validation/input
Use INPUT_JSON_WITH_VALIDATION to parse incoming JSON and optionally check it against a JSON Schema.
Use `INPUT_JSON_WITH_VALIDATION` when a published workflow accepts a JSON value. Supply a JSON string in `value`; add a JSON Schema string in the optional `schema` configuration to require particular fields and types. A valid object is returned in `result` for downstream steps.
## Require fields in the incoming JSON
```yaml theme={null}
- id: customer_input
tool: INPUT_JSON_WITH_VALIDATION
config:
- name: schema
value: '{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}'
input:
- name: value
value: '{"name":"Ada","age":30}'
```
The example returns an object with `result.name` equal to `Ada`. If `age` is missing or the JSON is malformed, the step fails with an `Invalid JSON` error and `result` is `null`. If `value` is empty and `optional` is `false`, the step fails with `JSON value is required`. Without a `schema`, the tool parses JSON but does not check the extra field requirements. `use_as_input` defaults to `true`; `optional` defaults to `false`. Set `optional` to `true` only if downstream steps can handle a `null` result.
For validating a JSON value returned at the end of a workflow, use [Output JSON with Validation](/en/pages/tools/validation/output).
# Validate Documents with Jinba Modules Checker V2
Source: https://docs.jinba.io/en/pages/tools/validation/jinba_modules_checker_v2
Advanced rule-based document and data validation with enhanced checking capabilities
Jinba Modules Checker V2 is an advanced validation tool that checks files and data against custom rules defined in JSON format. This tool is designed for comprehensive document validation, compliance checking, and data quality assurance with enhanced capabilities over the original checker.
## Validation capabilities
* **Rule-Based Validation**: Define custom validation rules in JSON format
* **Multi-Format Support**: Check PDF, text, JSON, XML, CSV, and DOCX files
* **Reference Integration**: Include company regulations, legal documents, and other reference materials
* **Detailed Results**: Get structured results with status, ranges, and detailed explanations
* **Custom Data Schema**: Define additional data schemas for specialized validation
## Configuration
This tool requires no configuration parameters.
### Example: Document Compliance Checking
```yaml theme={null}
- id: prepare_compliance_rules
name: prepare_compliance_rules
tool: INPUT_JSON
input:
- name: value
value: [
{
"uniqueId": "financial_disclosure_001",
"name": "Currency labeling for financial figures",
"description": "All financial figures must be clearly labeled with a currency denomination. Check that monetary values include proper currency symbols or abbreviations."
},
{
"uniqueId": "date_format_002",
"name": "Consistent date formatting",
"description": "All dates must follow ISO 8601 format (YYYY-MM-DD) or a clearly stated format, applied consistently throughout the document."
},
{
"uniqueId": "signature_requirement_003",
"name": "Authorized signature present",
"description": "The document must contain an authorized signature or digital signature verification."
},
{
"uniqueId": "contact_information_004",
"name": "Valid contact information",
"description": "Contact information must include a valid email format and phone number format."
}
]
- id: check_financial_report
name: check_financial_report
tool: JINBA_MODULES_CHECKER_V2
needs: [prepare_compliance_rules]
input:
- name: target_file
value: "https://example.com/financial_report.pdf"
- name: task
value: "Financial Report Compliance Review"
- name: description
value: "Comprehensive compliance check for quarterly financial report including regulatory requirements, data formatting standards, and authorization requirements."
- name: rules
value: "{{steps.prepare_compliance_rules.result}}"
- name: references
value: [
"https://example.com/company_financial_policies.pdf",
"https://example.com/regulatory_guidelines.pdf",
"https://example.com/previous_approved_reports.pdf"
]
- name: additionalDataSchema
value: {
"financial_metrics": {
"revenue": "number",
"expenses": "number",
"net_income": "number",
"currency": "string"
},
"reporting_period": {
"start_date": "date",
"end_date": "date",
"quarter": "string",
"fiscal_year": "number"
}
}
- id: process_check_results
name: process_check_results
tool: PYTHON_SANDBOX_RUN
needs: [check_financial_report]
input:
- name: code
value: |
import json
from collections import defaultdict
# Get check results
check_results = {{steps.check_financial_report.result}}
# Analyze results by status and category
status_summary = defaultdict(int)
category_summary = defaultdict(list)
critical_issues = []
for result in check_results:
status = result.get("status", "unknown")
status_summary[status] += 1
# Extract category from rule if possible
rule_text = result.get("rule", "")
category = "general"
if "financial" in rule_text.lower():
category = "financial"
elif "date" in rule_text.lower():
category = "formatting"
elif "signature" in rule_text.lower():
category = "authorization"
elif "contact" in rule_text.lower():
category = "contact"
category_summary[category].append({
"rule_id": result.get("uniqueId"),
"status": status,
"reason": result.get("reason"),
"range": result.get("range", [])
})
# Track critical issues (rejected items)
if status == "rejected":
critical_issues.append({
"rule_id": result.get("uniqueId"),
"rule": result.get("rule"),
"reason": result.get("reason"),
"location": result.get("range", []),
"additional_data": result.get("additionalData", {})
})
# Generate comprehensive report
report = {
"validation_summary": {
"total_rules_checked": len(check_results),
"accepted": status_summary.get("accepted", 0),
"rejected": status_summary.get("rejected", 0),
"pending": status_summary.get("pending", 0),
"compliance_score": round((status_summary.get("accepted", 0) / len(check_results)) * 100, 2) if check_results else 0
},
"category_breakdown": dict(category_summary),
"critical_issues": critical_issues,
"recommendations": [],
"detailed_results": check_results
}
# Generate recommendations based on critical issues
if critical_issues:
report["recommendations"].extend([
"Review and address all rejected validation rules",
"Implement document review process for critical compliance items",
"Consider template updates to prevent recurring issues"
])
else:
report["recommendations"].append("Document passes all validation checks")
print(json.dumps(report, indent=2))
```
### Example: Multi-Document Quality Assurance
```yaml theme={null}
- id: setup_qa_workflow
name: setup_qa_workflow
tool: INPUT_JSON_WITH_VALIDATION
input:
- name: value
value: {
"documents": [
{
"file": "https://example.com/contract_draft.docx",
"type": "legal_contract",
"priority": "high"
},
{
"file": "https://example.com/technical_spec.pdf",
"type": "technical_documentation",
"priority": "medium"
},
{
"file": "https://example.com/user_manual.pdf",
"type": "user_documentation",
"priority": "low"
}
],
"universal_rules": [
{
"uniqueId": "spelling_grammar_001",
"name": "Spelling and grammar",
"description": "The document must be free of spelling and grammatical errors."
},
{
"uniqueId": "formatting_consistency_002",
"name": "Formatting consistency",
"description": "Headers, fonts, and formatting must be consistent throughout the document."
}
],
"legal_specific_rules": [
{
"uniqueId": "legal_terminology_001",
"name": "Precise legal terminology",
"description": "Legal terminology must be precise and properly defined."
},
{
"uniqueId": "clause_numbering_002",
"name": "Clause numbering and references",
"description": "Contract clauses must be properly numbered and referenced."
}
]
}
- id: check_legal_contract
name: check_legal_contract
tool: JINBA_MODULES_CHECKER_V2
needs: [setup_qa_workflow]
input:
- name: target_file
value: "{{steps.setup_qa_workflow.result.documents[0].file}}"
- name: task
value: "Legal Contract Quality Assurance"
- name: description
value: "Comprehensive quality check for legal contract including terminology, structure, and compliance requirements."
- name: rules
value: "{{steps.setup_qa_workflow.result.legal_specific_rules}}"
- name: references
value: [
"https://example.com/legal_style_guide.pdf",
"https://example.com/contract_templates.pdf",
"https://example.com/legal_terminology_reference.pdf"
]
- name: additionalDataSchema
value: {
"contract_parties": {
"party_a": "string",
"party_b": "string",
"party_roles": "array"
},
"key_terms": {
"effective_date": "date",
"termination_date": "date",
"renewal_terms": "string",
"payment_terms": "object"
}
}
- id: check_technical_spec
name: check_technical_spec
tool: JINBA_MODULES_CHECKER_V2
needs: [setup_qa_workflow]
input:
- name: target_file
value: "{{steps.setup_qa_workflow.result.documents[1].file}}"
- name: task
value: "Technical Documentation Review"
- name: description
value: "Quality assurance check for technical specifications focusing on clarity, completeness, and technical accuracy."
- name: rules
value: "{{steps.setup_qa_workflow.result.universal_rules}}"
- name: references
value: [
"https://example.com/technical_writing_standards.pdf",
"https://example.com/industry_specifications.pdf"
]
- id: generate_qa_dashboard
name: generate_qa_dashboard
tool: PYTHON_SANDBOX_RUN
needs: [check_legal_contract, check_technical_spec]
input:
- name: code
value: |
import json
from datetime import datetime
# Get results from both checks
legal_results = {{steps.check_legal_contract.result}}
technical_results = {{steps.check_technical_spec.result}}
def analyze_document_results(results, doc_type, priority):
total_checks = len(results)
passed = len([r for r in results if r.get("status") == "accepted"])
failed = len([r for r in results if r.get("status") == "rejected"])
pending = len([r for r in results if r.get("status") == "pending"])
return {
"document_type": doc_type,
"priority": priority,
"total_checks": total_checks,
"passed": passed,
"failed": failed,
"pending": pending,
"success_rate": round((passed / total_checks * 100), 2) if total_checks > 0 else 0,
"critical_issues": [r for r in results if r.get("status") == "rejected"]
}
# Analyze each document
legal_analysis = analyze_document_results(legal_results, "Legal Contract", "high")
technical_analysis = analyze_document_results(technical_results, "Technical Specification", "medium")
# Create QA dashboard
dashboard = {
"qa_report_generated": datetime.now().isoformat(),
"overall_summary": {
"documents_reviewed": 2,
"high_priority_issues": len(legal_analysis["critical_issues"]),
"medium_priority_issues": len(technical_analysis["critical_issues"]),
"average_success_rate": round((legal_analysis["success_rate"] + technical_analysis["success_rate"]) / 2, 2)
},
"document_analysis": [legal_analysis, technical_analysis],
"next_actions": [],
"quality_recommendations": [
"Prioritize resolution of high-priority document issues",
"Implement automated pre-checks for common formatting issues",
"Create document templates incorporating identified best practices",
"Schedule regular QA reviews for critical documents"
]
}
# Generate next actions based on results
if legal_analysis["failed"] > 0:
dashboard["next_actions"].append("Review and revise legal contract based on failed checks")
if technical_analysis["failed"] > 0:
dashboard["next_actions"].append("Update technical specification to address quality issues")
if not dashboard["next_actions"]:
dashboard["next_actions"].append("All documents passed quality checks - proceed with approval process")
print(json.dumps(dashboard, indent=2))
```
### Example: Data Quality Validation Pipeline
```yaml theme={null}
- id: prepare_data_validation_rules
name: prepare_data_validation_rules
tool: INPUT_JSON
input:
- name: value
value: [
{
"uniqueId": "data_completeness_001",
"name": "Data completeness",
"description": "All required fields must contain non-empty values. Check for missing or empty required data fields."
},
{
"uniqueId": "data_format_002",
"name": "Email format",
"description": "Email addresses must follow a valid email format (e.g. user@example.com)."
},
{
"uniqueId": "date_range_003",
"name": "Date range",
"description": "Dates must be within a reasonable range (no future dates where inappropriate) and logically consistent."
},
{
"uniqueId": "numeric_bounds_004",
"name": "Numeric bounds",
"description": "Numeric values must be within expected ranges and contain no invalid characters."
}
]
- id: validate_customer_data
name: validate_customer_data
tool: JINBA_MODULES_CHECKER_V2
needs: [prepare_data_validation_rules]
input:
- name: target_file
value: "https://example.com/customer_data.csv"
- name: task
value: "Customer Data Quality Validation"
- name: description
value: "Validate customer data export for completeness, format compliance, and logical consistency before processing."
- name: rules
value: "{{steps.prepare_data_validation_rules.result}}"
- name: references
value: [
"https://example.com/data_quality_standards.pdf",
"https://example.com/customer_data_schema.json"
]
- name: additionalDataSchema
value: {
"customer_record": {
"customer_id": "string",
"first_name": "string",
"last_name": "string",
"email": "email",
"phone": "phone",
"registration_date": "date",
"last_activity": "date",
"account_status": "enum"
},
"validation_metrics": {
"total_records": "number",
"valid_records": "number",
"invalid_records": "number",
"completion_percentage": "number"
}
}
- id: generate_data_quality_report
name: generate_data_quality_report
tool: PYTHON_SANDBOX_RUN
needs: [validate_customer_data]
input:
- name: code
value: |
import json
from collections import Counter, defaultdict
# Get validation results
validation_results = {{steps.validate_customer_data.result}}
# Analyze data quality metrics
total_rules = len(validation_results)
status_counts = Counter(result.get("status", "unknown") for result in validation_results)
# Group issues by category and severity
issues_by_category = defaultdict(list)
critical_issues = []
for result in validation_results:
rule_text = result.get("rule", "")
status = result.get("status")
# Categorize based on rule content
category = "general"
if "completeness" in rule_text.lower():
category = "data_completeness"
elif "format" in rule_text.lower():
category = "format_validation"
elif "range" in rule_text.lower() or "date" in rule_text.lower():
category = "logical_validation"
elif "numeric" in rule_text.lower():
category = "numeric_validation"
issue_info = {
"rule_id": result.get("uniqueId"),
"status": status,
"reason": result.get("reason"),
"location": result.get("range", []),
"additional_data": result.get("additionalData", {})
}
issues_by_category[category].append(issue_info)
if status == "rejected":
critical_issues.append({
"category": category,
"rule": result.get("rule"),
"reason": result.get("reason"),
"impact": "high" if "high" in rule_text.lower() else "medium"
})
# Calculate data quality score
quality_score = round((status_counts.get("accepted", 0) / total_rules * 100), 2) if total_rules > 0 else 0
# Generate comprehensive data quality report
report = {
"data_quality_summary": {
"overall_quality_score": quality_score,
"total_validation_rules": total_rules,
"passed_validations": status_counts.get("accepted", 0),
"failed_validations": status_counts.get("rejected", 0),
"pending_validations": status_counts.get("pending", 0),
"quality_grade": "A" if quality_score >= 90 else "B" if quality_score >= 80 else "C" if quality_score >= 70 else "F"
},
"category_breakdown": dict(issues_by_category),
"critical_issues": critical_issues,
"data_readiness": "READY" if quality_score >= 85 else "NEEDS_REVIEW" if quality_score >= 70 else "NOT_READY",
"recommendations": [
f"Data quality score: {quality_score}% - {'Excellent' if quality_score >= 90 else 'Good' if quality_score >= 80 else 'Needs Improvement'}",
f"Address {len(critical_issues)} critical data quality issues before proceeding",
"Implement data validation at source to prevent future quality issues",
"Consider automated data cleaning for common format issues"
],
"detailed_validation_results": validation_results
}
print(json.dumps(report, indent=2))
```
## Tips and Best Practices
* **Rule Definition**: Create clear, specific rules with well-defined success criteria
* **Reference Materials**: Include relevant reference documents to improve validation accuracy
* **Structured Results**: Always process results for actionable insights and reporting
* **Incremental Validation**: Start with basic rules and gradually add complexity
* **Rule Organization**: Use consistent `uniqueId` prefixes to group related rules for better result analysis
* **Custom Schemas**: Define additional data schemas for specialized validation needs
* **Error Handling**: Implement proper handling for validation failures and edge cases
* **Performance Optimization**: Consider file size and complexity when setting up validation workflows
* **Documentation**: Maintain clear documentation of validation rules and their purposes
* **Continuous Improvement**: Regularly review and update validation rules based on results
# Convert a Document URL to Markdown in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/validation/markitdown_convert
Pass a reachable document URL to MARKITDOWN_CONVERT and use the Markdown text returned by the step.
Use `MARKITDOWN_CONVERT` when a later flow step needs Markdown text from a URL that MarkItDown can read. The tool requires a `url` input, has no configuration fields, and returns the converted text in `result.markdown`.
## Convert a URL
```yaml theme={null}
- id: convert_document
tool: MARKITDOWN_CONVERT
input:
- name: url
value: "https://example.com/document.pdf"
```
Replace the sample URL with a reachable document URL. After running the step, inspect `result.markdown` before passing it to another tool. If conversion fails, check that the URL is accessible to the flow runner and that MarkItDown supports the returned document format.
# Validate JSON Output from a Jinba Flow Workflow
Source: https://docs.jinba.io/en/pages/tools/validation/output
Use OUTPUT_JSON_WITH_VALIDATION to check a JSON string against a schema before returning it from a flow.
Use `OUTPUT_JSON_WITH_VALIDATION` when a workflow must return a JSON object with a known shape. The required `value` is a JSON string. The optional `schema` configuration is a JSON Schema string that checks the parsed object before it is returned in `result`.
## Check the output shape
```yaml theme={null}
- id: customer_output
tool: OUTPUT_JSON_WITH_VALIDATION
config:
- name: schema
value: '{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}'
input:
- name: value
value: '{"name":"Ada","age":30}'
```
The example returns the parsed object in `result`. If the JSON is malformed or does not match the schema, the step fails with an `Invalid JSON` error whose details list the problems, and `result` is `null`. Without `schema`, the tool parses the JSON but does not apply those field requirements.
For validating JSON supplied to a published workflow, use [Input JSON with Validation](/en/pages/tools/validation/input).
# Privacy Policy
Source: https://docs.jinba.io/en/privacy-policy
Jinba Privacy Policy
For the full Privacy Policy, please refer to the document below:
> [card] [Privacy Policy](https://jinba.io/privacy)
>
> View the full Privacy Policy
# Terms of Use
Source: https://docs.jinba.io/en/terms-of-use
Jinba Terms of Use
For the full Terms of Use, please refer to the document below:
> [card] [Terms of Use](https://jinba.io/terms)
>
> View the full Terms of Use
# Anthropic Credentials
Source: https://docs.jinba.io/en/pages/credentials/anthropic
Create an Anthropic API key and save it as a Jinba Flow secret for Claude tools.
Configure your Anthropic API key to use Claude models in your Jinba Flow workflows.
## Prerequisites
* An Anthropic account
* Access to the Anthropic API
## Getting Your API Key
1. Visit the [Anthropic Console](https://console.anthropic.com/)
2. Sign in to your account or create a new one
3. Navigate to the "API Keys" section
4. Click "Create Key" to generate a new API key
5. Copy the generated key (it starts with `sk-ant-`)
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Anthropic" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your API key in the designated field
6. Click "Save" to store your credentials
## Usage
Once configured, select the saved secret in the **Anthropic API Key** field (`token` config) of `ANTHROPIC_INVOKE` and the other Anthropic tools. If you leave the field at its default, `{{ secrets.JINBA_CREDIT_KEY }}`, the step runs on Jinba Credits instead of your own key.
Current model IDs for the `version` config include:
* `claude-sonnet-5-5` (default)
* `claude-opus-5-5`
* `claude-haiku-5-5`
See the [Anthropic tools](/en/pages/tools/ai/anthropic) page for the full list and the tool inputs.
# Chatwork Credentials
Source: https://docs.jinba.io/en/pages/credentials/chatwork
Create a Chatwork API token and add it to Jinba Flow for message and task tools.
Configure your Chatwork API credentials to send messages, manage rooms, and interact with Chatwork from your Jinba Flow workflows.
## Prerequisites
* A Chatwork account
* API access enabled for your account
## Getting Your API Key
1. Sign in to your [Chatwork account](https://www.chatwork.com/)
2. Go to your account settings
3. Navigate to the "API" section
4. Click "Generate API Key" or "Create new API key"
5. Give your API key a descriptive name
6. Copy the generated API key (you'll only see it once)
## API Key Permissions
When creating your API key, you can specify permissions:
### Read Permissions
* **Read room information** - Access room details and member lists
* **Read messages** - Access message history
* **Read tasks** - Access task information
### Write Permissions
* **Send messages** - Send messages to rooms
* **Create tasks** - Create and manage tasks
* **Manage room members** - Add/remove room members
* **Manage room settings** - Update room information
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Chatwork" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your Chatwork API key in the designated field
6. Click "Save" to store your credentials
## Usage
Once configured, you can use Chatwork in your flows to:
* Send messages to rooms
* Read message history
* Create and manage tasks
* Get room information and member lists
* Upload files to rooms
* Manage room members and settings
## API Endpoints
### Messages
* Send text messages to rooms
* Send messages with file attachments
* Read message history
* Get message details
### Rooms
* Get room information
* Get room member lists
* Create new rooms
* Update room settings
### Tasks
* Create tasks in rooms
* Update task status
* Get task information
* Assign tasks to members
### Files
* Upload files to rooms
* Get file information
* Download files
# Communication Platforms
Source: https://docs.jinba.io/en/pages/credentials/communication-platforms
Choose the credential guide for Slack, Discord, LINE, Chatwork, Twilio, or Intercom.
Configure credentials for various communication platforms to enable messaging and collaboration in your Jinba Flow workflows.
## Available Communication Platforms
### [Slack](/en/pages/credentials/slack)
Set up Slack workspace integration to send messages and manage channels.
### [Discord](/en/pages/credentials/discord)
Configure Discord bot integration for server communication and management.
### [LINE](/en/pages/credentials/line)
Set up LINE messaging platform integration for user communication.
### [Chatwork](/en/pages/credentials/chatwork)
Configure Chatwork API integration for team collaboration and messaging.
## Getting Started
1. Choose the communication platform you want to integrate
2. Follow the platform-specific setup instructions
3. Configure the necessary permissions and webhooks
4. Test your integration to ensure proper functionality
# Discord Credentials
Source: https://docs.jinba.io/en/pages/credentials/discord
Create a Discord bot, configure its token and permissions, and connect it to Jinba Flow.
Configure your Discord bot to send messages, manage channels, and interact with Discord servers from your Jinba Flow workflows.
## Prerequisites
* A Discord account
* Administrator permissions on a Discord server (for bot setup)
## Creating a Discord Bot
1. Visit the [Discord Developer Portal](https://discord.com/developers/applications)
2. Click "New Application"
3. Enter a name for your bot application
4. Click "Create"
## Configuring Your Discord Bot
### Bot Configuration
1. In your application, go to the "Bot" section in the sidebar
2. Click "Add Bot" if you haven't already
3. Give your bot a username
4. Upload an avatar image (optional)
5. Note your **Bot Token** (you'll need this later)
### Bot Permissions
1. In the Bot section, scroll down to "Privileged Gateway Intents"
2. Enable the following intents:
* **Message Content Intent** - Required to read message content
* **Server Members Intent** - Required to access member information
* **Presence Intent** - Optional, for presence updates
### OAuth2 Configuration
1. Go to the "OAuth2" section in the sidebar
2. Click on "URL Generator"
3. Select the following scopes:
* `bot` - Bot permissions
* `applications.commands` - Slash commands (if needed)
4. Select the following bot permissions:
* **Send Messages** - Send messages in channels
* **Send Messages in Threads** - Send messages in threads
* **Read Message History** - Read previous messages
* **Use Slash Commands** - Use slash commands (if needed)
* **Manage Messages** - Delete and manage messages
* **Embed Links** - Send embedded messages
* **Attach Files** - Send file attachments
* **Read Message History** - Access message history
* **Add Reactions** - Add reactions to messages
* **Use External Emojis** - Use emojis from other servers
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Discord" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your Discord bot credentials:
* **Bot Token**: From your Discord application's Bot section (the `DISCORD_API` secret type has only this field)
6. Click "Save" to store your credentials
## Inviting Your Bot to a Server
1. Go to the "OAuth2" > "URL Generator" in your Discord application
2. Select the scopes and permissions mentioned above
3. Copy the generated URL
4. Open the URL in a browser
5. Select the server where you want to add the bot
6. Review the permissions and click "Authorize"
## Usage
Once configured, you can use Discord in your flows to:
* Send messages to channels, direct messages, or threads
* Read messages and user information
* Manage channels and roles
* Upload files and attachments
* Respond to events and interactions
* Use slash commands (if configured)
# E-commerce Platforms
Source: https://docs.jinba.io/en/pages/credentials/ecommerce-platforms
Find credential setup guides for Shopify and Netsea integrations in Jinba Flow.
Configure credentials for e-commerce platforms to automate your online business operations and manage products, orders, and customers.
## Available E-commerce Platforms
### [Netsea](/en/pages/credentials/netsea)
Set up Netsea marketplace integration for product and order management.
### [Shopify](/en/pages/credentials/shopify)
Configure Shopify store integration for comprehensive e-commerce automation.
## Getting Started
1. Choose the e-commerce platform you want to integrate
2. Follow the platform-specific setup instructions
3. Configure the necessary API permissions
4. Test your integration to ensure proper functionality
# Gemini Credentials
Source: https://docs.jinba.io/en/pages/credentials/gemini
Create a Gemini API key and configure it as a Jinba Flow secret for Gemini tools.
Configure your Google Gemini integration to access advanced AI capabilities from your Jinba Flow workflows.
## Prerequisites
* A Google Cloud account
* Access to Google AI Studio or Google Cloud Console
## Getting Started with Gemini
### Option 1: Google AI Studio (Recommended for beginners)
1. Visit [Google AI Studio](https://aistudio.google.com/)
2. Sign in with your Google account
3. Navigate to the "Get API key" section
4. Click "Create API key"
5. Copy your API key (starts with `AIza`)
### Option 2: Google Cloud Console (For advanced users)
1. Go to [Google Cloud Console](https://console.cloud.google.com/)
2. Create a new project or select an existing one
3. Enable the Gemini API:
* Go to "APIs & Services" > "Library"
* Search for "Gemini API"
* Click "Enable"
4. Create credentials:
* Go to "APIs & Services" > "Credentials"
* Click "Create Credentials" > "API Key"
* Copy your API key
## API Key Security
* **Never share your API key publicly**
* **Store it securely in environment variables**
* **Use the key only in trusted applications**
* **Monitor your usage in Google Cloud Console**
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Click "Create Secret" and choose the generic type `OTHER` (there is no Gemini-specific secret type)
4. Enter a name and paste your Google AI Studio or Cloud Console API key
5. Click "Save" to store your credentials
## Available Models
Once configured, select the saved secret in the **Google API Key** field (`token` config) of `GEMINI_INVOKE` and the other Gemini tools. If you leave the field at its default, `{{ secrets.JINBA_CREDIT_KEY }}`, the step runs on Jinba Credits instead of your own key.
Current model IDs for the `version` config include:
* `gemini-flash-latest` (default)
* `gemini-3.8-flash`
* `gemini-3.1-pro-preview`
* `gemini-2.5-pro`
The Gemini tools are `GEMINI_INVOKE`, `GEMINI_INVOKE_WITH_FILE`, `GEMINI_INVOKE_WITH_IMAGE` and `GEMINI_GENERATE_IMAGE`. See the [Gemini tools](/en/pages/tools/ai/gemini) page for the full model list and the tool inputs.
## Usage Examples
Once configured, you can use Gemini in your flows to:
* Generate creative content and text
* Analyze and summarize documents
* Answer questions based on context
* Process and understand images
* Create structured data from unstructured text
* Translate content between languages
# GitHub Credentials
Source: https://docs.jinba.io/en/pages/credentials/github
Create a GitHub access token, choose permissions, and store it in Jinba Flow.
Configure your GitHub integration to manage repositories, issues, pull requests, and other GitHub resources from your Jinba Flow workflows.
## Prerequisites
* A GitHub account
* Access to the repositories you want to manage
## Creating a Personal Access Token
1. Visit [GitHub.com](https://github.com) and sign in to your account
2. Click on your profile picture in the top right corner
3. Select "Settings" from the dropdown menu
4. In the left sidebar, click "Developer settings"
5. Click "Personal access tokens"
6. Select "Tokens (classic)" or "Fine-grained tokens"
## Choosing the Right Token Type
### Personal Access Token (Classic)
* **Use for**: Full repository access and legacy integrations
* **Scopes needed**:
* `repo` - Full control of private repositories
* `public_repo` - Access public repositories only
* `workflow` - Update GitHub Action workflows
* `admin:org` - Full control of organizations (if needed)
### Fine-grained Personal Access Token
* **Use for**: More secure, granular permissions
* **Repository access**: Select specific repositories or all repositories
* **Permissions needed**:
* Repository permissions:
* `Issues`: Read and write
* `Pull requests`: Read and write
* `Contents`: Read and write
* `Metadata`: Read-only
## Generating Your Token
### For Classic Tokens:
1. Click "Generate new token (classic)"
2. Give your token a descriptive name (e.g., "Jinba Flow Integration")
3. Set an expiration date (recommended: 90 days or less)
4. Select the required scopes:
* ✅ `repo` (Full control of private repositories)
* ✅ `workflow` (Update GitHub Action workflows)
5. Click "Generate token"
6. **Important**: Copy the token immediately - you won't be able to see it again!
### For Fine-grained Tokens:
1. Click "Generate new token"
2. Give your token a descriptive name
3. Set an expiration date
4. Select "All repositories" or specific repositories
5. Under "Repository permissions", set:
* Issues: Read and write
* Pull requests: Read and write
* Contents: Read and write
* Metadata: Read-only
6. Click "Generate token"
7. **Important**: Copy the token immediately - you won't be able to see it again!
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "GitHub" in the list of available credentials
4. Click "Configure" or "Add New"
5. Choose the secret type `GITHUB_PAT` and enter your GitHub credentials:
* **Token**: Your personal access token (starts with `ghp_` for classic tokens or `github_pat_` for fine-grained tokens). No username is needed
6. Click "Save" to store your credentials
The GitHub tools also accept a GitHub App installation instead of a personal token: create a secret of type `GITHUB_APP` with the app's **App ID**, **Private Key** and **Installation ID**.
## Usage
Once configured, you can use GitHub in your flows to:
* List and create issues
* Manage pull requests
* Read repository contents
* Update files and create commits
* Manage workflows and actions
* Interact with GitHub's API
# Google OAuth Credentials
Source: https://docs.jinba.io/en/pages/credentials/google-oauth
Connect a Google account to Jinba Flow with OAuth for Gmail, Sheets, and Calendar tools.
Configure Google OAuth to access Google services like Gmail, Google Drive, Google Calendar, and other Google APIs from your Jinba Flow workflows.
## Prerequisites
* A Google account
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Google OAuth" in the list of available credentials
4. Click "Configure" or "Add New"
5. Follow the authentication flow:
* Click "Connect with Google"
* Sign in with your Google account
* Review and accept the requested permissions
* You'll be redirected back to Jinba Flow
* Your OAuth tokens will be securely stored
## OAuth Flow
When you first use Google services in your flows:
1. Jinba Flow will redirect you to Google's OAuth consent screen
2. Sign in with your Google account
3. Review and accept the requested permissions
4. You'll be redirected back to Jinba Flow
5. Your OAuth tokens will be securely stored
## Available Google Services
### Gmail
* Send emails
* Read email messages
* Search emails
* Manage labels and folders
* Handle email attachments
### Google Drive
* Upload and download files
* Create and manage folders
* Share files and folders
* Get file metadata
* Search for files
### Google Calendar
* Create and update events
* Read calendar events
* Manage calendar settings
* Handle recurring events
* Send calendar invitations
### Google Sheets
* Read and write spreadsheet data
* Create new spreadsheets
* Update cell values
* Format cells and ranges
* Manage sheets and tabs
### Google Docs
* Create and update documents
* Read document content
* Format text and paragraphs
* Add comments and suggestions
* Export documents
# Grok Credentials
Source: https://docs.jinba.io/en/pages/credentials/grok
Create an xAI API key and configure it in Jinba Flow for Grok tools.
Configure your xAI Grok integration to access advanced AI capabilities from your Jinba Flow workflows.
## Prerequisites
* An xAI account
* Access to the Grok API (currently in limited access)
## Getting Started with Grok
### Access Requirements
Grok API is currently in limited access. To get access:
1. Visit the [xAI website](https://x.ai/)
2. Sign up for an account if you don't have one
3. Apply for API access through the developer portal
4. Wait for approval from xAI team
5. Once approved, you'll receive your API credentials
### API Key Setup
1. After receiving approval, log into your xAI developer account
2. Navigate to the API section
3. Generate a new API key
4. Copy your API key for use in Jinba Flow
## API Key Security
* **Never share your API key publicly**
* **Store it securely in environment variables**
* **Use the key only in trusted applications**
* **Monitor your usage in the xAI dashboard**
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Click "Create Secret" and choose the generic type `OTHER` (there is no Grok-specific secret type)
4. Enter a name and paste your xAI API key
5. Click "Save" to store your credentials
## Available Models
Once configured, select the saved secret in the **Grok API key** field (`api_key` config) of `GROK_CHAT`. If you leave the field at its default, `{{ secrets.JINBA_CREDIT_KEY }}`, the step runs on Jinba Credits instead of your own key.
Current model IDs include:
* `grok-4.3` (default)
* `grok-4.5`
* `grok-4.6`
* `grok-4.7`
See the [Grok tool](/en/pages/tools/ai/grok) page for the full model list and the tool inputs.
## Usage Examples
Once configured, you can use Grok in your flows to:
* Generate creative content and text
* Analyze complex documents and data
* Answer questions with real-time information
* Perform advanced reasoning tasks
* Create structured data from unstructured text
* Generate code and technical solutions
# HubSpot Credentials
Source: https://docs.jinba.io/en/pages/credentials/hubspot
Set up a HubSpot access token for CRM contact, company, deal, and owner access, and for logging notes and tasks
Configure a HubSpot access token to manage CRM contacts, read deals, companies, and owners, and log notes and tasks from your Jinba Flow workflows.
## Prerequisites
* A HubSpot account with access to the CRM
* Permission to create a service key or a private app in that account
## Creating a HubSpot Access Token
HubSpot issues two kinds of static token that both work here. They produce the same `Bearer` token, so pick whichever your account offers.
> [!NOTE]
>
> **Private apps have moved.** HubSpot reorganised its developer platform and
> private apps now live under **Legacy apps**. Existing private app tokens keep
> working — no sunset has been announced — but new integrations are steered
> towards **service keys**, which are purpose-built for REST API access.
### Option A: Service key (recommended)
1. Sign in to HubSpot
2. Navigate to **Development** → **Keys** → **Service keys** (or **Settings** → **Integrations** → **Service Keys**)
3. Click **Create service key** and give it a name (e.g. `Jinba Flow`)
4. Click **Add new scope** and select `crm.objects.contacts.read`, `crm.objects.contacts.write`, `crm.objects.deals.read`, `crm.objects.companies.read`, and `crm.objects.owners.read`
5. Click **Create**, then copy the generated token
> [!WARNING]
>
> Service keys are currently in public beta. They cannot be used for webhooks or
> UI extensions — REST API requests only, which is all these tools need.
### Option B: Legacy private app
1. Sign in to HubSpot
2. Navigate to **Development** → **Legacy apps** (this is where **Integrations → Private Apps** used to be)
3. Create a legacy app of type **Private**, or open an existing one
4. On the **Scopes** tab, select `crm.objects.contacts.read`, `crm.objects.contacts.write`, `crm.objects.deals.read`, `crm.objects.companies.read`, and `crm.objects.owners.read`
5. Open the **Auth** tab, click **Show token**, and copy it
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the **Secrets** section
3. Click **Add secret** and choose **HUBSPOT_ACCESS_TOKEN** as the type
4. Enter a name and paste the token into **access_token**
5. Click **Save**
The saved secret then appears in the **Access Token** dropdown on any HubSpot step.
## Required Scopes
| Scope | Needed for |
| - | - |
| `crm.objects.contacts.read` | `HUBSPOT_GET_CONTACT`, and the lookup half of `HUBSPOT_UPSERT_CONTACT` |
| `crm.objects.contacts.write` | `HUBSPOT_UPSERT_CONTACT`, `HUBSPOT_CREATE_NOTE`, `HUBSPOT_CREATE_TASK` |
| `crm.objects.deals.read` | `HUBSPOT_GET_DEAL`, `HUBSPOT_SEARCH_DEALS` |
| `crm.objects.companies.read` | `HUBSPOT_GET_COMPANY` |
| `crm.objects.owners.read` | `HUBSPOT_GET_OWNER`, `HUBSPOT_LIST_OWNERS` |
> [!NOTE]
>
> HubSpot's Engagements API documents `crm.objects.contacts.write` as the scope
> for creating notes and tasks. If the scope picker in your account offers
> object-specific engagement scopes instead, grant those. We do not grant
> `crm.objects.deals.write`: the note and task tools only associate records with
> a deal and never edit the deal itself, so leaving it off keeps the token unable
> to modify deals. If a note or task create fails with `HTTP 403` even so, check
> which scope the error message names before adding anything.
A step that fails with `HTTP 401` or `HTTP 403` almost always means one of these scopes is missing rather than the token being wrong.
## Related Docs
* [HubSpot Tools](/en/pages/tools/productivity/hubspot)
* [HubSpot: legacy private apps](https://developers.hubspot.com/docs/apps/legacy-apps/private-apps/overview)
* [HubSpot: service keys](https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys)
# Choose and Configure Credentials for Jinba Flow
Source: https://docs.jinba.io/en/pages/credentials/index
Find the right API key or OAuth setup guide for each service connected to Jinba Flow.
Choose the service your flow uses, then follow its credential guide to connect it to Jinba Flow. Each guide covers the key or OAuth setup needed before running that service's tools.

The secrets screen. Store API keys and tokens securely and reference them from flows
## Choose a credential guide by service
### AI Services
Configure credentials for AI and language model services:
* [Anthropic](/en/pages/credentials/anthropic) - Claude API integration for advanced AI capabilities
* [OpenAI](/en/pages/credentials/openai) - GPT models and OpenAI services integration
* [Llama](/en/pages/credentials/llama) - Local and cloud Llama models integration
* [Gemini](/en/pages/credentials/gemini) - Google Gemini AI integration
* [Grok](/en/pages/credentials/grok) - xAI Grok integration
### Communication Platforms
Set up integrations with messaging and collaboration platforms:
* [Slack](/en/pages/credentials/slack) - Slack workspace integration for team communication
* [Discord](/en/pages/credentials/discord) - Discord bot integration for community engagement
* [LINE](/en/pages/credentials/line) - LINE messaging platform integration
* [Intercom](/en/pages/credentials/intercom) - Intercom access token for messaging and customer events
* [Chatwork](/en/pages/credentials/chatwork) - Chatwork collaboration tool integration
* [Twilio](/en/pages/credentials/twilio) - Twilio credentials for SMS/WhatsApp messaging
### Productivity Tools
Connect with productivity and workflow management tools:
* [Jira](/en/pages/credentials/jira) - Jira Cloud API token for issue and project management
* [Notion](/en/pages/credentials/notion) - Notion workspace integration for knowledge management
* [Google OAuth](/en/pages/credentials/google-oauth) - Google services integration (Gmail, Sheets, Calendar, etc.)
* [Microsoft OAuth](/en/pages/credentials/microsoft-oauth) - Microsoft services integration (Outlook Mail, Calendar, etc.)
* [GitHub](/en/pages/credentials/github) - GitHub integration for repository management and automation
* [SmartHR](/en/pages/credentials/smarthr) - SmartHR API credentials for employee (crew) management
* [HubSpot](/en/pages/credentials/hubspot) - HubSpot access token for CRM contact management
### E-commerce Platforms
Integrate with e-commerce and marketplace platforms:
* [Netsea](/en/pages/credentials/netsea) - Netsea marketplace integration
* [Shopify](/en/pages/credentials/shopify) - Shopify store integration
### AI/ML Services
Configure credentials for specialized AI and ML services:
* [Luma](/en/pages/credentials/luma) - Luma AI services integration
* [Kling](/en/pages/credentials/kling) - Kling AI platform integration
## Configure and test a credential
Follow these general steps to configure credentials for any service:
1. Navigate to your workspace settings in Jinba Flow
2. Go to the "Credentials" or "Secrets" section
3. Select the service you want to configure from the list
4. Follow the specific instructions provided in each service's documentation page
5. Enter your API key, OAuth credentials, or other required information
6. Test the connection to ensure it's working properly
7. Save your credentials securely
## Security Best Practices
* **Never share your API keys** - Keep your credentials private and secure
* **Use environment variables** - For production deployments, consider using secure environment variable storage
* **Rotate keys regularly** - Periodically update your API keys for enhanced security
* **Review access permissions** - Regularly audit which services have access to your credentials
* **Use OAuth when available** - OAuth provides more secure authentication than API keys for supported services
## Need Help?
If you encounter issues setting up credentials:
* Check the specific service's documentation page for detailed instructions
* Verify that your API keys are valid and have the correct permissions
* Ensure your workspace has the necessary permissions to access external services
* Contact support if you need additional assistance
# Intercom Credentials
Source: https://docs.jinba.io/en/pages/credentials/intercom
Set up Intercom credentials for messaging and customer events
Configure Intercom credentials to send messages, create contacts, and track events from Jinba Flow.
## Required Credentials
* **Access Token**
You can create and manage access tokens in the [Intercom Developer Hub](https://developers.intercom.com/).
## Setup
1. Sign in to your Intercom workspace
2. Open the [Intercom Developer Hub](https://developers.intercom.com/)
3. Create or select an app for your workspace
4. Generate an access token with the scopes required by your workflow
5. In Jinba Flow, open your workspace secrets settings
6. Add an Intercom credential and save the access token
## Notes
* Some example flows also use an Intercom admin ID for reply operations
* Keep access tokens private and rotate them when needed
## Related Docs
* [Intercom Tool](/en/pages/tools/communication/intercom)
* [Communication Platforms](/en/pages/credentials/communication-platforms)
# Jira Credentials
Source: https://docs.jinba.io/en/pages/credentials/jira
Create a Jira API token and configure your site URL and credentials in Jinba Flow.
Configure your Atlassian Jira API token to manage issues and project progress from your Jinba Flow workflows.
## Prerequisites
* An Atlassian account with access to a Jira Cloud site
* Permission to create API tokens (available to all Atlassian accounts)
## Creating a Jira API Token
> [!WARNING]
>
> **Create a *personal* API token, not an *organization* API key.** These are two
> different things and only one works with Jira:
>
> * ✅ **Personal API token** — created at
> [id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens).
> Can access Jira data.
> * ❌ **Organization API key** — created in the admin console
> (`admin.atlassian.com/o//api-keys`). These only carry org-admin scopes
> (`manage:org`, `*:admin`) and **cannot create or read Jira issues** — using
> one results in a `401 Unauthorized` no matter how many scopes you check.
1. Sign in to your Atlassian account at [id.atlassian.com](https://id.atlassian.com)
2. Navigate to **Security** → **API tokens**
3. Click **Create API token**
4. Enter a label (e.g. `Jinba Flow`) and click **Create**
5. Copy the generated token — it will only be shown once
Direct link: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
> [!NOTE]
>
> A **classic** token (prefix `ATATT…`) is recommended — it has full account
> access and needs no scope configuration. Scoped tokens (`ATCTT…`) also work and
> are auto-routed through the `api.atlassian.com` gateway, but you must grant the
> right scopes yourself. Keep `base_url` set to your site
> (`https://your-domain.atlassian.net`) either way.
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the **Secrets** section
3. Find **Jira** in the list and click **Add**
4. Enter your API token:
* **API Token**: The token you copied from Atlassian
5. Click **Save**
## Configuring Your Jira Steps
Each Jira tool step requires the following config fields in addition to the secret:
| Field | Description | Example |
| - | - | - |
| `base_url` | Your Jira site URL | `https://your-domain.atlassian.net` |
| `email` | Your Atlassian account email | `you@example.com` |
| `api_token` | Select your saved Jira secret | — |
## Finding Your Jira Site URL
Your Jira Cloud base URL follows the pattern `https://.atlassian.net`. You can find it in the browser address bar when viewing your Jira board.
## Finding a User's Account ID
Jira identifies users by `accountId`, not by name or email. To find an account ID:
1. Open the user's Jira profile
2. The account ID appears in the URL: `.../jira/people/`
Alternatively, use `JIRA_SEARCH_ISSUES` or the Jira user search API to look up account IDs programmatically.
# Kling Credentials
Source: https://docs.jinba.io/en/pages/credentials/kling
Create Kling API credentials and store them in Jinba Flow for video generation.
Configure your Kling AI API credentials to use Kling's AI services and models from your Jinba Flow workflows.
## Prerequisites
* A Kling AI account
* Access to Kling AI API
## Getting Your API Key
1. Visit the [Kling AI website](https://kling.ai/)
2. Sign in to your account or create a new one
3. Navigate to your account settings or API section
4. Click "Generate API Key" or "Create new API key"
5. Give your API key a descriptive name
6. Copy the generated API key (you'll only see it once)
## API Features
Jinba Flow uses Kling AI for video generation through the `KLING_TEXT_TO_VIDEO` tool, which turns a text prompt into a video. Its inputs are `prompt`, `duration`, `aspect_ratio`, `negative_prompt`, `cfg_scale` and `model`.
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Kling" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your Kling AI API key in the designated field
6. Click "Save" to store your credentials
## Usage
Select the saved secret (type `KLING_API_KEY`) in the **Kling AI API Key** field (`api_key` config) of `KLING_TEXT_TO_VIDEO`. See the [video generation tools](/en/pages/tools/media/video_generation) page for the tool inputs and output.
# LINE Credentials
Source: https://docs.jinba.io/en/pages/credentials/line
Create a LINE channel and configure its token and optional webhook in Jinba Flow.
Configure your LINE channel to send messages, manage webhooks, and interact with LINE users from your Jinba Flow workflows.
## Prerequisites
* A LINE account
* Access to LINE Developers Console
## Creating a LINE Channel
1. Visit the [LINE Developers Console](https://developers.line.biz/)
2. Sign in with your LINE account
3. Click "Create a new channel"
4. Choose "Messaging API" as the channel type
5. Fill in the required information:
* **Channel name**: A name for your channel
* **Channel description**: Brief description of your bot
* **Category**: Select an appropriate category
* **Subcategory**: Choose a relevant subcategory
6. Click "Create"
## Configuring Your LINE Channel
### Basic Settings
1. In your channel settings, go to the "Basic" tab
2. Note your **Channel ID** and **Channel Secret** (you'll need these later)
3. Upload a channel icon (optional)
4. Add a channel description
### Messaging API Settings
1. Go to the "Messaging API" tab
2. Note your **Channel Access Token** (you'll need this later)
3. Set up your webhook URL (if needed for receiving messages)
4. Enable "Use webhook" if you want to receive messages
### QR Code and Add Friends
1. In the "Messaging API" tab, find the QR code
2. Users can scan this QR code to add your bot as a friend
3. Alternatively, you can create a "Add friends" URL
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "LINE" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your LINE channel credentials:
* **Channel Access Token**: From your LINE channel's Messaging API settings (the `LINE_API` secret type has only this field; the Channel ID and Channel Secret are not stored in Jinba Flow)
6. Click "Save" to store your credentials
## Webhook Configuration (Optional)
If you want to receive messages from LINE users:
1. In your LINE channel's "Messaging API" settings
2. Enable "Use webhook"
3. Set the webhook URL to your Jinba Flow webhook endpoint
4. Verify the webhook URL is accessible from LINE's servers
## Usage
Once configured, you can use LINE in your flows to:
* Send text messages to users
* Send rich messages (images, videos, audio, files)
* Send location messages
* Send sticker messages
* Send template messages (buttons, carousel, etc.)
* Get user profile information
* Respond to user messages via webhook
## Message Types
### Text Messages
* Simple text messages
* Support for emoji and Unicode characters
### Rich Messages
* **Image messages**: Send images with preview text
* **Video messages**: Send videos with preview text
* **Audio messages**: Send audio files
* **File messages**: Send any file type
### Template Messages
* **Button template**: Text with action buttons
* **Confirm template**: Yes/No confirmation
* **Carousel template**: Multiple items with images and buttons
* **Image carousel template**: Multiple images with buttons
# Llama Credentials
Source: https://docs.jinba.io/en/pages/credentials/llama
Create a Llama Cloud API key and save it as a Jinba Flow secret for the Llama Cloud tools.
Configure a Llama Cloud (LlamaIndex) API key to parse documents and query a Llama Cloud index from your Jinba Flow workflows. The Llama tools in Jinba Flow are `LLAMA_CLOUD_PARSE` and `LLAMA_CLOUD_QUERY`; they call the hosted Llama Cloud API, not a locally running Llama model.
## Prerequisites
* A Llama Cloud account
* For `LLAMA_CLOUD_QUERY`, an index created in Llama Cloud
## Getting Your API Key
1. Sign in to [Llama Cloud](https://cloud.llamaindex.ai/)
2. Open the API keys section and generate a new API key
3. Copy the generated key
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secrets" section
3. Click "Create Secret" and choose the type `LLAMA_CLOUD_API_KEY`
4. Enter a name and paste the key into the **api_key** field
5. Click "Save" to store your credentials
## Usage
Select the saved secret in the **Llama Cloud API key** field (`apiKey` config) of `LLAMA_CLOUD_PARSE` or `LLAMA_CLOUD_QUERY`. See the [Llama Cloud tools](/en/pages/tools/ai/llama_cloud) page for the tool inputs.
# Luma Credentials
Source: https://docs.jinba.io/en/pages/credentials/luma
Create Luma API credentials and save them in Jinba Flow for video tools.
Configure your Luma AI API credentials to generate videos, images, and use other Luma AI services from your Jinba Flow workflows.
## Prerequisites
* A Luma AI account
* Access to Luma AI API
## Getting Your API Key
1. Visit the [Luma AI website](https://lumalabs.ai/)
2. Sign in to your account or create a new one
3. Navigate to your account settings or API section
4. Click "Generate API Key" or "Create new API key"
5. Give your API key a descriptive name
6. Copy the generated API key (you'll only see it once)
## API Features
Jinba Flow uses Luma AI through two tools: `LUMA_TEXT_TO_VIDEO` generates a video from a text prompt (inputs `prompt`, `model`, `aspect_ratio`, `resolution`, `loop`, `duration`), and `LUMA_TEXT_TO_IMAGE` generates an image (inputs `prompt`, `model`, `aspect_ratio`).
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Luma" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your Luma AI API key in the designated field
6. Click "Save" to store your credentials
## Usage
Select the saved secret (type `LUMA_API_KEY`) in the **Luma Labs API Key** field (`api_key` config) of `LUMA_TEXT_TO_VIDEO` or `LUMA_TEXT_TO_IMAGE`. See the [video generation tools](/en/pages/tools/media/video_generation) page for the tool inputs and output.
# Microsoft OAuth Credentials
Source: https://docs.jinba.io/en/pages/credentials/microsoft-oauth
Connect a Microsoft account to Jinba Flow with OAuth for Outlook and other Microsoft tools.
Configure Microsoft OAuth to access Microsoft services such as Outlook Calendar from your Jinba Flow workflows.
## Prerequisites
* A Microsoft account
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find the Microsoft OAuth credential in the list of available credentials
4. Click "Configure" or "Add New"
5. Follow the authentication flow:
* Sign in with your Microsoft account
* Review and accept the requested permissions
* You'll be redirected back to Jinba Flow
* Your OAuth tokens will be securely stored
## OAuth Flow
When you first use Microsoft-connected tools in your flows:
1. Jinba Flow redirects you to Microsoft's OAuth consent screen
2. Sign in with your Microsoft account
3. Review and accept the requested permissions
4. You'll be redirected back to Jinba Flow
5. Your OAuth tokens will be securely stored
## Available Microsoft Services
### Outlook Calendar
* Create events
* Find events
* Update events
* Delete events
### Outlook Mail
* List messages and send messages (`OUTLOOK_LIST_MESSAGES`, `OUTLOOK_SEND_MESSAGE`), with a secret of type `MICROSOFT_GRAPH_OUTLOOK`
### SharePoint
* List sites and documents, search, download and upload files (`SHAREPOINT_*` tools), with a secret of type `MICROSOFT_GRAPH_SHAREPOINT`
### Teams
* List teams, channels, chats and messages, send and reply to messages, and read online meetings (`TEAMS_*` tools), with a secret of type `MICROSOFT_GRAPH_TEAMS`
### User Directory
* Look up users and their managers (`MICROSOFT_GET_USERS`, `MICROSOFT_GET_MANAGER`), with a secret of type `MICROSOFT_GRAPH_USERS`
Each connector has its own secret type, so connect each one you use separately. Outlook Calendar uses `MICROSOFT_GRAPH_OUTLOOK_CALENDAR`.
## Organization Admin Consent
Some Microsoft 365 tenants do not let users consent to applications themselves. In that case the Microsoft sign-in stops at **Need admin approval**, and a tenant administrator has to grant consent once for the whole organization.
Jinba Flow generates that consent link for you, scoped to the connector you are setting up (Outlook Mail, Outlook Calendar, SharePoint, Teams or User Directory). Administrators can therefore approve exactly the connectors your organization wants to use, and nothing more. Granting consent in the Entra admin center through the application's **Grant admin consent** button is not required and does not cover these permissions.
1. In the [Jinba secrets dashboard](https://flow.jinba.io/workspace/secrets), choose the Microsoft connector you want to connect.
2. Under **Organization admin consent**, click **Copy admin consent link** and send the link to a tenant administrator. The link stays valid for 7 days. If you are an administrator yourself, click **Open as admin** instead.
3. The administrator opens the link, signs in and accepts the permissions on behalf of the organization.
4. Everyone in the tenant can now connect that connector from the secrets dashboard without further approval.
**All Microsoft connectors** generates one link that covers every Microsoft connector at once, for organizations that prefer a single approval.
If a user is blocked before consent has been granted, Jinba Flow shows "Your organization requires admin approval" together with the consent link for that connector, so the user can forward it to their administrator directly. Consent has to be granted again only when Jinba Flow adds new permissions to a connector or when the organization uses a connector for the first time.
## Secret Usage in Flows
Outlook Calendar examples use the following secret reference:
```yaml theme={null}
config:
- name: token
value: "{{secrets.MICROSOFT_GRAPH_OUTLOOK_CALENDAR}}"
```
## Related Pages
* [Outlook Calendar](/en/pages/tools/productivity/outlook_calendar)
* [Productivity Tools](/en/pages/credentials/productivity-tools)
## Troubleshooting
* If authentication fails, reconnect the credential from the Jinba secrets dashboard
* If your organization restricts Microsoft app consent, send your administrator the link described in [Organization Admin Consent](#organization-admin-consent)
* If a flow reports an invalid or expired token, re-authenticate the credential and run the flow again
# Netsea Credentials
Source: https://docs.jinba.io/en/pages/credentials/netsea
Create Netsea API credentials and configure them in Jinba Flow for marketplace tools.
Configure your Netsea API credentials to manage products, orders, and interact with the Netsea marketplace from your Jinba Flow workflows.
## Prerequisites
* A Netsea seller account
* API access enabled for your account
## Getting Your API Credentials
1. Sign in to your [Netsea seller account](https://www.netsea.jp/)
2. Navigate to your seller dashboard
3. Go to the "API Settings" or "Developer" section
4. Click "Generate API Key" or "Create new API key"
5. Give your API key a descriptive name
6. Copy the generated API token
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Click "Create Secret" and choose the type `NETSEA_API_TOKEN`
4. Enter a name and paste your NETSEA API token into the **api_token** field
5. Click "Save" to store your credentials
## Usage
Select the saved secret in the **NETSEA API token** field (`token` config) of the Netsea tools. Jinba Flow currently provides two of them:
* `NETSEA_GET_CATEGORIES` - list the product categories
* `NETSEA_GET_SUPPLIERS` - list suppliers
See the [Netsea tools](/en/pages/tools/productivity/netsea) page for their inputs and outputs.
# Notion Credentials
Source: https://docs.jinba.io/en/pages/credentials/notion
Create a Notion integration, share pages with it, and add its token to Jinba Flow.
The Notion tools in Jinba Flow support three connection methods. Pick the one that fits your use case.
| Method | Secret type | Acts as | Access scope |
| - | - | - | - |
| Internal integration | `NOTION_API` | The connection (bot) | Only pages the connection was added to |
| Personal access token (PAT) | `NOTION_API` | The token's creator | Everything the creator can see (no page sharing needed) |
| OAuth (public integration) | `NOTION_OAUTH` | A bot under the authorizing user | Only pages picked on the consent screen |
## Internal integration
The classic method: one workspace-wide token.
1. Visit the [Notion Developers page](https://www.notion.so/my-integrations) (workspace owner permission required)
2. Click "New integration", set a name and the associated workspace, and create it
3. Copy the **Internal Integration Token** from the integration settings
4. In Jinba Flow, go to workspace settings → "Secret" and create a secret of type `NOTION_API` with the token
5. In Notion, share the pages/databases your flows need with the integration ("…" menu on the page → "Connections" → add the integration; child pages inherit it)
Only shared pages are accessible. Access survives even if the person who shared them leaves.
## Personal access token (PAT)
A token each user issues under their own permissions (added by Notion in May 2026). No page sharing is needed — it can access everything its creator can see.
1. Create a "Personal access token" on the [Notion Developers page](https://www.notion.so/my-integrations)
2. Choose an expiration (7 days to 1 year; default 1 year)
3. Register the token as a secret of type `NOTION_API`, the same type as an internal integration token
The header format is identical to internal integration tokens, so no extra Jinba Flow configuration is needed.
**To run flows per-user**, combine PATs with personal secrets: each member registers their own PAT as a personal secret (type `NOTION_API`) and the tool's Token field is set to "Use personal secret" — each runner's own PAT is then injected.
Notes:
* Tokens **always expire**. Re-issue and replace them before the expiration date
* A token is revoked when its creator leaves the Notion workspace
* Notion admins can list and revoke PATs, and some plans can restrict who may create them
## OAuth (public integration)
Users connect by logging in to Notion in the browser. Access is limited to the pages picked on the consent screen's page picker.
Connecting Notion **requires an organization-registered Notion OAuth app** (organization settings → OAuth apps; only organization OWNERs can configure it). There is no shared app, so Notion does not appear in the connection list until one is registered, and personal connections are not available.
### Registering the organization OAuth app (organization OWNER)
1. Create an integration on the [Notion Developers page](https://www.notion.so/my-integrations) and configure it as a **Public integration**
* We recommend "**Selected workspaces only**" for distribution (fixed at creation time and cannot be changed later)
* Enable the Read/Update/Insert content capabilities your tools need
2. In the integration's **OAuth Domain & URIs** settings, register the **per-organization callback URL** shown on Jinba Flow's organization settings → OAuth apps page as a Redirect URI
3. Register the integration's `client_id` / `client_secret` in Jinba Flow under organization settings → OAuth apps, provider **Notion**
### Connecting as a user
1. Open the "OAuth" tab from workspace settings → Secret (or the "+" on a tool's Token field) and pick **Notion**
2. Log in on Notion's consent screen and use the page picker to select **the pages your flows may access**
3. On completion a secret of type `NOTION_OAUTH` is created. In a Notion tool, select **OAuth** as the authentication method and choose the secret in the **OAuth token** field
Notes:
* Only the pages selected on the consent screen are accessible. To widen access, reconnect, or add the integration from the page's "Connections" menu in Notion
* The token is static. If access stops working (e.g. the authorization was revoked), reconnect
## Using the tools
Notion tools expose separate fields for the two methods: **API token** uses `NOTION_API` (internal token / PAT), while **OAuth** uses `NOTION_OAUTH` (OAuth connection). See the [Notion tools](/en/pages/tools/productivity/notion) page for details.
**Note**: Treat tokens as sensitive information and never commit them to public repositories.
# OpenAI Credentials
Source: https://docs.jinba.io/en/pages/credentials/openai
Create an OpenAI API key and configure it as a Jinba Flow secret for OpenAI tools.
Configure your OpenAI API key to use GPT models and other OpenAI services in your Jinba Flow workflows.
## Prerequisites
* An OpenAI account
* Access to the OpenAI API
## Getting Your API Key
1. Visit the [OpenAI Platform](https://platform.openai.com/)
2. Sign in to your account or create a new one
3. Navigate to the "API Keys" section in your account settings
4. Click "Create new secret key"
5. Give your key a descriptive name
6. Copy the generated key (it starts with `sk-`)
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "OpenAI" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your API key in the designated field
6. Click "Save" to store your credentials
## Available Models
Once configured, select the saved secret in the **OpenAI API Key** field (`api_key` config) of `OPENAI_INVOKE` and the other OpenAI tools. If you leave the field at its default, `{{ secrets.JINBA_CREDIT_KEY }}`, the step runs on Jinba Credits instead of your own key.
Current model IDs for the `version` config include:
* `gpt-5.2` (default)
* `gpt-5.5`
* `gpt-6.1-sol`
The tools that take this OpenAI API key are `OPENAI_INVOKE`, `OPENAI_INVOKE_WITH_FILE`, `OPENAI_DEEP_RESEARCH` and `OPENAI_SORA2`. See the [OpenAI tools](/en/pages/tools/ai/openai) page for the full model list and the tool inputs.
# Productivity Tools
Source: https://docs.jinba.io/en/pages/credentials/productivity-tools
Choose a credential guide for Notion, Google, or Microsoft productivity tools.
Configure credentials for productivity tools to enhance your workflows with document management and collaboration features.
## Available Productivity Tools
### [Notion](/en/pages/credentials/notion)
Set up Notion workspace integration for document and database management.
### [Google OAuth](/en/pages/credentials/google-oauth)
Configure Google OAuth to access Gmail, Drive, Calendar, and other Google services.
### [Microsoft OAuth](/en/pages/credentials/microsoft-oauth)
Configure Microsoft OAuth to access Outlook Calendar, Outlook Mail, and other Microsoft services.
## Getting Started
1. Choose the productivity tool you want to integrate
2. Follow the platform-specific setup instructions
3. Configure the necessary permissions and scopes
4. Test your integration to ensure proper functionality
# Shopify Credentials
Source: https://docs.jinba.io/en/pages/credentials/shopify
Create Shopify app credentials, choose access scopes, and connect your store to Jinba Flow.
Configure your Shopify API credentials to manage products, orders, customers, and interact with your Shopify store from your Jinba Flow workflows.
## Prerequisites
* A Shopify store (or partner account)
* Admin access to your Shopify store
## Getting Your API Credentials
### For Shopify Partners
1. Visit the [Shopify Partners Dashboard](https://partners.shopify.com/)
2. Sign in to your partner account
3. Go to "Apps" > "Create app"
4. Choose "Custom app" or "Public app"
5. Fill in the app details and create the app
### For Store Owners
1. Sign in to your [Shopify Admin](https://admin.shopify.com/)
2. Go to "Settings" > "Apps and sales channels"
3. Click "Develop apps" or "Manage private apps"
4. Click "Create an app"
5. Give your app a name and description
## Configuring Your Shopify App
### API Credentials
1. In your app settings, go to "API credentials"
2. Note your **API key** and **API secret key** (you'll need these later)
3. Configure the required scopes for your app
### Required Scopes
Add the following scopes based on your needs:
#### Read Access
* `read_products` - Access product information
* `read_orders` - Access order information
* `read_customers` - Access customer information
* `read_inventory` - Access inventory levels
* `read_analytics` - Access analytics data
#### Write Access
* `write_products` - Create and update products
* `write_orders` - Update order status
* `write_customers` - Create and update customers
* `write_inventory` - Update inventory levels
* `write_fulfillments` - Manage order fulfillments
#### Additional Scopes
* `read_themes` - Access theme information
* `write_themes` - Modify themes
* `read_script_tags` - Access script tags
* `write_script_tags` - Manage script tags
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Shopify" in the list of available credentials
4. Click "Configure" or "Add New"
5. Choose the secret type `SHOPIFY_API_TOKEN` and enter your app's **Admin API access token** (the only field; the API key, API secret key and store URL are not stored in Jinba Flow)
6. Click "Save" to store your credentials
The store domain (e.g., `your-store.myshopify.com`) is entered per step in the `shop_domain` input, and the `api_version` config defaults to `2025-01`.
## Installing Your App
### For Custom Apps
1. In your app settings, go to "App setup"
2. Copy the installation URL
3. Open the URL in a browser
4. Select your store and install the app
5. Note the access token provided
### For Public Apps
1. Submit your app for review (if required)
2. Users can install your app from the Shopify App Store
3. Handle the OAuth flow for each installation
## Usage
Select the saved secret in the **Shopify Admin API Token** field (`token` config) of the Shopify tools. Jinba Flow currently provides two of them:
* `SHOPIFY_LIST_PRODUCTS` - list the products of a store
* `SHOPIFY_CREATE_PRODUCT` - create a product
See the [Shopify tools](/en/pages/tools/productivity/shopify) page for their inputs and outputs.
# Slack Credentials
Source: https://docs.jinba.io/en/pages/credentials/slack
Create a Slack app, configure its OAuth scopes, and connect the app to Jinba Flow.
Configure your Slack workspace integration to send messages, create channels, and interact with Slack from your Jinba Flow workflows.
## Prerequisites
* A Slack workspace where you have admin permissions
* Ability to install apps in your workspace
## Creating a Slack App
1. Visit the [Slack API website](https://api.slack.com/)
2. Click "Create an app" or "Your apps"
3. Choose "From scratch"
4. Enter your app name and select your workspace
5. Click "Create app"
## Configuring Your Slack App
### Basic Information
1. In your app settings, go to "Basic Information"
2. Note your **Client ID** and **Client Secret** (you'll need these later)
3. Add a short description of your app
### OAuth & Permissions
1. Navigate to "OAuth & Permissions" in the sidebar
2. Add the following scopes to your app:
#### Bot Token Scopes
* `channels:read` - View basic information about public channels
* `channels:write` - Manage public channels
* `chat:write` - Send messages as your app
* `chat:write.public` - Send messages to channels your app isn't in
* `groups:read` - View basic information about private channels
* `groups:write` - Manage private channels
* `im:read` - View basic information about direct messages
* `im:write` - Send direct messages
* `mpim:read` - View basic information about group direct messages
* `mpim:write` - Send messages to group direct messages
* `users:read` - View people in your workspace
* `users:read.email` - View email addresses of people in your workspace
#### User Token Scopes (if needed)
* `channels:read` - View basic information about public channels
* `chat:write` - Send messages as the user
### Event Subscriptions (Optional)
1. Go to "Event Subscriptions"
2. Enable events if you want to receive real-time updates
3. Add relevant events like `message.channels`, `message.im`, etc.
4. Copy the **Signing Secret** from "Basic Information" → "App Credentials". Jinba Flow verifies every event delivery with it, so an `INPUT_SLACK_EVENT` trigger without it refuses all events:
* In Jinba Flow, add a secret of type **SLACK_SIGNING_SECRET** holding the signing secret
* Select it in the `signing_secret` config of the `INPUT_SLACK_EVENT` step and **publish** the flow (the published version is what runs)
* Then set the flow's `/slack-run` URL as the Request URL in Slack (see [Receive a Slack event](/en/pages/tools/files/receive-slack-event)); the `url_verification` handshake and Slack retries are answered without a signature, every other event must be signed
## Setting Up in Jinba Flow
1. Go to your workspace settings in Jinba Flow
2. Navigate to the "Secret" section
3. Find "Slack" in the list of available credentials
4. Click "Configure" or "Add New"
5. Enter your Slack app credentials:
* **Client ID**: From your Slack app's Basic Information
* **Client Secret**: From your Slack app's Basic Information
* **Bot Token**: From OAuth & Permissions (starts with `xoxb-`)
* **User Token**: From OAuth & Permissions (starts with `xoxp-`) if needed
6. Click "Save" to store your credentials
## Installing Your App
1. Go to "OAuth & Permissions" in your Slack app
2. Click "Install to Workspace"
3. Review the permissions and click "Allow"
4. Copy the **Bot User OAuth Token** (starts with `xoxb-`)
5. Copy the **User OAuth Token** (starts with `xoxp-`) if you requested user scopes
## Usage
Once configured, you can use Slack in your flows to:
* Send messages to channels, direct messages, or group messages
* Create and manage channels
* Read messages and user information
* Upload files and attachments
* Respond to events in real-time
## Accessing your Slack App
Once set up correctly, your app should be able within the selected Workspace(s)
"Apps" section in the "Home" tab (probably at the bottommost part of the list).
You should also be able to access it by "@-mentioning" it from the search bar.
> [!NOTE]
>
> In case you have modified your app's "Display Information" using
> the "Basic Information" app settings page, it is possible that the changes
> are not reflected within the installed workspace(s). To ensure consistency,
> please make sure to visit the "App Home" page within the "Feautures" category
> of your app's settings page.
# SmartHR Credentials
Source: https://docs.jinba.io/en/pages/credentials/smarthr
Set up SmartHR API credentials for employee (crew) management
Configure SmartHR credentials to list, create, update, delete, and invite employees (crews) from Jinba Flow.
## Required Credentials
* **Subdomain** — Your SmartHR instance URL (e.g. `https://example.daruma.space` or `example.smarthr.jp`).
* **Access Token** — SmartHR API access token with the required scopes for the tools you use.
## Setup
1. Sign in to your SmartHR workspace (e.g. [SmartHR](https://smarthr.jp/) or your Daruma Space subdomain).
2. Open API or developer settings and create or copy an API access token.
3. In Jinba Flow, open your workspace secrets settings.
4. Add a SmartHR credential:
* Choose **SmartHR Access Token** and enter the access token.
5. When configuring SmartHR tools in a flow, set the **subdomain** to your SmartHR URL and select the saved credential for the access token.
## Notes
* The subdomain is the base URL of your SmartHR instance (with or without `https://`).
* Keep access tokens private and rotate them when needed.
* Ensure the token has the scopes required by the tools (e.g. crew read/write, invite).
## Related Docs
* [SmartHR Tools](/en/pages/tools/productivity/smarthr)
* [Productivity Tools](/en/pages/credentials/productivity-tools)
# Twilio Credentials
Source: https://docs.jinba.io/en/pages/credentials/twilio
Set up Twilio credentials for SMS and WhatsApp integrations
Configure Twilio credentials to send SMS and WhatsApp messages from Jinba Flow.
## Required Credentials
* **Account SID**
* **Auth Token**
You can find both values in the [Twilio Console](https://console.twilio.com/).
## Setup
1. Sign up or log in to [Twilio](https://www.twilio.com/try-twilio)
2. Open the [Twilio Console](https://console.twilio.com/)
3. Copy your **Account SID**
4. Reveal and copy your **Auth Token**
5. In Jinba Flow, open your workspace secrets settings
6. Add two secrets: one of type `TWILIO_ACCOUNT_SID` holding the Account SID, and one of type `TWILIO_AUTH_TOKEN` holding the Auth Token
The two values are separate secrets, not one credential. In a flow, reference them as `{{secrets.TWILIO_ACCOUNT_SID.account_sid}}` and `{{secrets.TWILIO_AUTH_TOKEN.auth_token}}`, replacing the secret names with the names you gave them.
## Trial Account Notes
* Trial accounts can only send to verified phone numbers
* Trial messages include a Twilio trial signature
* WhatsApp testing requires joining the [Twilio Sandbox](https://console.twilio.com/us1/develop/sms/try-it-out/whatsapp-learn)
## Related Docs
* [Twilio Tool](/en/pages/tools/communication/twilio)
* [Communication Platforms](/en/pages/credentials/communication-platforms)
# Logout
Source: https://docs.jinba.io/en/pages/jinba_app/account/logout
How to log out of Jinba App
## Logout
Log out when you finish using Jinba App.
## Logout Steps
**1. Open Account Menu**
Click your name (user icon) at the bottom of the side panel.
**2. Select 'Log out'**
Select "Log out" from the dropdown menu.
**3. Logout Complete**
You will be returned to the login screen.
## Notes When Logging Out
### Unsaved Data
> [!WARNING]
>
> When you log out, unsaved chat content or draft task edits may be lost. Please confirm saving before logging out.
### Running Tasks
Scheduled tasks will continue to run even after you log out. You can check task execution results when you log in next time.
### Session Termination
Logging out ends your current session. You need to log in again to use Jinba App.
## Automatic Logout
You may be automatically logged out in the following situations:
| Situation | Description |
| - | - |
| **Session Timeout** | Automatic logout for security after prolonged inactivity |
| **Authentication Expiration** | When SSO authentication token expires |
Please log in again after automatic logout.
## Logging In Again
To log in again after logging out, refer to the [Login](/en/pages/jinba_app/basics/login) page.
## FAQ
> [accordion] Will tasks still run after I log out?
>
> Yes, scheduled tasks will automatically run even after you log out. You can check execution results when you log in next time.
> [accordion] I was suddenly logged out
>
> This may be due to session timeout or authentication expiration. Please log in again. If the problem continues, contact support.
> [accordion] Cannot find the logout button
>
> Click your name (or profile picture) at the bottom of the side panel to display a dropdown menu. You can select "Log out" from there.
# Theme Settings
Source: https://docs.jinba.io/en/pages/jinba_app/account/theme
Change the display theme (light/dark)
## Theme Settings
In Jinba App, you can change the display theme. Adjust the display to reduce eye strain or match your preferences.
## Theme Types
You can choose from the following three themes:
| Theme | Description |
| - | - |
| **System theme** | Syncs with OS (Windows / macOS) system settings |
| **Light theme** | Dark text on light background |
| **Dark theme** | Light text on dark background |
### System Theme
Automatically syncs with the OS dark mode setting.
* When OS is in dark mode → Dark theme
* When OS is in light mode → Light theme
### Light Theme
Displays dark text on a light background. Suitable for working in bright environments.
### Dark Theme
Displays light text on a dark background. Suitable for working in dark environments or when you want to reduce eye strain.
## How to Change Theme
**1. Open Account Menu**
Click your name (user icon) at the bottom of the side panel.
**2. Find the 'Theme' Row**
The dropdown menu contains a "Theme" row with three icon buttons.
**3. Select Theme**
Click the monitor icon ("System theme"), the sun icon ("Light theme") or the moon icon ("Dark theme").
**4. Changes Applied**
The selected theme is applied immediately.
## Theme Persistence
The selected theme setting is automatically saved and maintained on your next login.
> [!NOTE]
>
> Theme settings are saved per browser. If you use different browsers, you need to configure each separately.
## FAQ
> [accordion] Why does the theme switch automatically?
>
> When "System theme" is selected, if the OS dark mode setting changes, the Jinba App theme will also automatically switch. If you want to lock in a specific theme, explicitly select "Light theme" or "Dark theme".
> [accordion] Some elements are hard to see
>
> Browser extensions or OS settings may be affecting the display. Try switching the theme and then switching back, or reload the page.
# Agent Builder
Source: https://docs.jinba.io/en/pages/jinba_app/agents/agent-builder
How to create and edit agents
## What is Agent Builder
Agent Builder is the screen for creating and editing AI agents. You write the agent's instructions in an editor and configure its connectors, files and schedules in the settings panel.

> [!WARNING]
>
> Members can edit only the agents they created. Workspace owners can edit any agent.
## Opening Agent Builder
### For New Creation
**1. Open Agent Management Screen**
Select "Agents" from the side menu.
**2. Click 'Create Agent'**
Click the "Create Agent" button at the top of the screen (or the "Create" shortcut shown when hovering "Agents" in the side panel).
**3. Enter Name and Description**
In the "Create New Agent" dialog, enter a name and an optional description and click "Create". Agent Builder opens for the new agent.
### Editing Existing Agents
**1. Select Agent to Edit from List**
Click the pencil icon on the agent card, or select "Edit" from its settings menu (⋮).
## Screen Layout
Agent Builder consists of the following areas:
| Area | Description |
| - | - |
| **Header** | Agent name (click to rename), "Save" and "Run" buttons |
| **Tabs** | "Overview" (instructions and settings), "Run" (test runs), "History" (past runs) and "Versions" (saved versions) |
| **Instructions Editor** | Write the agent's instructions; type @ to reference connectors, tools and files |
| **Settings Panel** | Initial User Message, Artifact UI (HTML), Connectors, Files, Schedules and External exposure (MCP) |
## Writing Instructions
Write the agent's instructions in the "Instructions" editor. The "AI Instruction Assistant" button opens a chat where you describe what the agent should do; the generated instructions can be inserted with "Apply to Editor".
### Example Instructions
```
This agent retrieves deal data from Salesforce and
creates a weekly sales report.
Please include the following information in the report:
- Number of new deals this week
- Total amount of closed deals
- List of deals requiring follow-up next week
```
The assistant turns such a description into instructions for the editor.
## Connector Reference Settings
Configure the connectors to be used by the agent.
**1. Open Connector Settings**
Find the "Connectors" section in the settings panel.
**2. Add Connectors**
Click "Add connector" and pick the installed connectors (or individual tools) you want to use with this agent.
**3. Save Settings**
The selected connectors are listed in the section with their tool count. Click "Save" to keep the change.
> [!NOTE]
>
> When connectors are configured, the selected connectors become automatically available in chats using this agent.
## File Reference Settings
Configure files for the agent to reference.
**1. Open File Settings**
Find the "Files" section in the settings panel.
**2. Upload Files**
Click the "Add file" button and upload the files you want the agent to reference.
**3. Confirm Files**
Uploaded files are displayed in the list.
### Reference File Examples
* **FAQ Documents**: Information that forms the basis for customer support agent responses
* **Report Templates**: Sample output formats
* **Business Manuals**: Procedure and policy references
## Saving Agents
After completing the settings, save the agent.
**1. Check the Agent Name**
Click the agent name in the header to rename it if needed.
**2. Click 'Save' Button**
Click the "Save" button at the top of the screen to save. Instructions are required.
**3. Versions**
Each save creates a new version. The "Versions" tab lists them with the reason (Created / Updated / Published / Unpublished), who saved them and when, and the instructions, tools and files of each version.
## Running Agents (Testing)
You can test run the agent before or after saving.
**1. Click 'Run' Button**
Click the "Run" button in the Agent Builder header.
**2. Test in the Run Tab**
The "Run" tab opens with a message input. Send actual questions to verify the behavior; the output appears in the same tab.
> [!NOTE]
>
> If there are no issues with the test run, save the agent and proceed with publishing preparations.
## Troubleshooting
> [accordion] Instructions not being applied
>
> * Try describing the instructions more specifically
> * Enter in a format that's easier for the AI to understand
> [accordion] Cannot select connector
>
> * Verify the connector is installed
> * Check the connector's connection status
> [accordion] Cannot upload file
>
> * Verify the file format is supported
> * Check if the file size exceeds the limit
# Agent Details
Source: https://docs.jinba.io/en/pages/jinba_app/agents/agent-detail
Viewing detailed agent information
## Agent Details Screen
The agent screen opens when you click an agent in the list. It lets you chat with the agent, and the "Agent Details" panel shows the agent's configuration and run history.
## Accessing the Details Screen
**1. Open Agent List**
Select "Agents" from the side menu.
**2. Select Agent**
Click the agent card you want to view. The agent screen opens; click the panel icon in the header to open the "Agent Details" panel.
## Displayed Information
The "Agent Details" panel displays the following sections:
### Basic Information
| Field | Description |
| - | - |
| **Agent Name** | Shown in the header together with the agent icon |
| **Published Status** | The "Publish" button shows whether the agent is published and with which scope (see [Publishing Agents](/en/pages/jinba_app/agents/publish)) |
### Instructions
The AI instructions configured for the agent are displayed.
### Available Tools
The "Available Tools" section lists the connector tools the agent can use.
### Available Files
The "Available Files" section lists the files the agent references ("No files available" when there are none).
### Schedules and Run History
The "Schedules" section lists the tasks that run this agent, and "Run History" lists past runs. Run history can be exported with "Download CSV" (run metadata plus the conversation transcript).
## Actions from Details Screen
You can perform the following actions from the details screen:
### Using the Agent
**1. Send a Message**
Type a message in the chat input of the agent screen. Agents with an "Initial User Message" show a "Start Agent" button instead of the input; click it to start.
**2. Chat Continues**
The conversation continues with this agent's settings applied. Past conversations with the agent are listed in the "Agent Details" panel and can be resumed with "Take Over Chat".
### Editing the Agent
> [!WARNING]
>
> Members can edit only the agents they created. Workspace owners can edit any agent.
**1. Select 'Edit'**
Open the menu (⋮) in the header and select "Edit". The menu also contains "Delete".
**2. Agent Builder Opens**
You can edit settings in Agent Builder.
### Publishing Settings
> [!WARNING]
>
> The "Publish" button is shown only to users who can edit the agent.
For more details, see [Publishing Agents](/en/pages/jinba_app/agents/publish).
# Agent List
Source: https://docs.jinba.io/en/pages/jinba_app/agents/agent-list
Searching, duplicating, editing, and deleting agents
## Agent List
When you open the Agent Management screen, your created agents are displayed in a list.
## List Contents
Each agent card displays the following information:
| Field | Description |
| - | - |
| **Agent Name** | Identifier name of the agent |
| **Description** | Overview of the agent's features (the instructions are shown when there is no description) |
| **Updated** | How long ago the agent was last updated |
| **Published Status** | Shown as a badge when the agent is published |
## Text Search (Filtering)
When you have many agents, you can quickly find the one you need using text search.
**1. Click the Search Box**
Click the search box at the top of the agent list.
**2. Enter Keywords**
Enter keywords contained in the agent name or instructions ("Search agents by name or instruction...").
**3. Review Results**
Only agents matching the entered keywords will be displayed.
## Duplicating Agents
You can create a new agent by copying an existing one. This is convenient when you want to inherit the settings of the original agent while only changing certain parts.
**1. Select Agent**
Click the settings menu (⋮) on the agent card you want to duplicate.
**2. Select 'Duplicate'**
Select "Duplicate" from the menu.
**3. Duplicate Created**
A copy of the agent is added to the list. All settings from the original agent are copied.
**4. Edit as Needed**
Open the copy in Agent Builder to change the agent name and settings, then save.
> [!NOTE]
>
> Duplicated agents will have "\_Copy" added to their name. Change the name as needed.
## Editing Agents
You can modify the settings of created agents.
> [!WARNING]
>
> Members can edit only the agents they created. Workspace owners can edit any agent.
**1. Select Agent**
Click the pencil icon on the agent card, or open the settings menu (⋮).
**2. Select 'Edit'**
Select "Edit" from the menu. To change only the name and description, select "Edit Details" instead.
**3. Edit in Agent Builder**
The Agent Builder opens. Modify the settings and save.
For detailed editing methods, see [Agent Builder](/en/pages/jinba_app/agents/agent-builder).
## Deleting Agents
You can delete agents that are no longer needed.
> [!WARNING]
>
> Deleted agents cannot be recovered. Please confirm before deleting. Members can delete only the agents they created; workspace owners can delete any agent.
**1. Select Agent**
Click the settings menu (⋮) on the agent card you want to delete.
**2. Select 'Delete'**
Select "Delete" from the menu.
**3. Confirmation Dialog**
A confirmation dialog appears. Click "Delete" to confirm.
## Using Agents
Click on an agent from the list to start a chat using that agent.
**1. Click Agent**
Click the agent card you want to use.
**2. Chat Screen Opens**
A chat screen with the agent's settings applied opens.
# Agent Management Overview
Source: https://docs.jinba.io/en/pages/jinba_app/agents/overview
Screen layout and basic features of Agent Management
## What is Agent Management
The Agent Management screen allows you to create and manage AI agents. Agents are reusable AI configurations specialized for specific tasks or purposes.

## What are Agents
Agents are defined by combining the following elements:
| Element | Description |
| - | - |
| **Instructions** | Specific instructions for the AI |
| **Connectors** | Connections to external services |
| **Reference Files** | Documents and data for the AI to reference |
| **Schedules** | Tasks that run the agent automatically |
By setting these up in advance, you don't need to repeat the same settings each time you chat.
## Screen Layout
The Agent Management screen consists of the following sections:
### Agent List
Displays a list of created agents.
For more details, see [Agent List](/en/pages/jinba_app/agents/agent-list).
### Agent Builder
The screen for creating and editing new agents.

For more details, see [Agent Builder](/en/pages/jinba_app/agents/agent-builder).
## Access Control
Every workspace member can create agents. Members can edit and delete only the agents they created; workspace owners can edit and delete any agent in the workspace.
| Operation | Member | Owner |
| - | - | - |
| View agent list | ✓ | ✓ |
| Use agents | ✓ | ✓ |
| Create agents | ✓ | ✓ |
| Edit/delete own agents | ✓ | ✓ |
| Edit/delete other members' agents | - | ✓ |
> [!NOTE]
>
> Edit buttons are shown only on agents you are allowed to edit.
## Accessing Agent Management
**1. Click 'Agents' in the Side Panel**
Select "Agents" from the side menu.
**2. Agent Management Screen Appears**
The agent list is displayed in the "My Agents" tab. The "Run History" tab lists past agent runs; the "Templates" tab currently shows "Templates Coming Soon".
## Key Features
> [card] [Agent List](/en/pages/jinba_app/agents/agent-list)
>
> Search, duplicate, edit, and delete agents
> [card] [Agent Builder](/en/pages/jinba_app/agents/agent-builder)
>
> Create and configure agents
> [card] [Agent Details](/en/pages/jinba_app/agents/agent-detail)
>
> View detailed agent information
> [card] [Publishing](/en/pages/jinba_app/agents/publish)
>
> Publish agents and run as apps
## Agent Use Cases
### For Individuals
> [accordion] News Summary Agent
>
> * **Instructions**: "Summarize the latest news articles and list the important points as bullet points"
> * **Connectors**: RSS feeds, News APIs
> * **Reference Files**: None
> [accordion] Study Notes Agent
>
> * **Instructions**: "Extract important points from uploaded learning materials and create review notes"
> * **Connectors**: None
> * **Reference Files**: Educational PDFs, Lecture materials
> [accordion] Travel Planning Agent
>
> * **Instructions**: "Suggest recommended tourist spots and travel routes considering budget and schedule"
> * **Connectors**: None
> * **Reference Files**: Travel guides
### For Teams & Business
> [accordion] Sales Report Agent
>
> * **Instructions**: "Retrieve this month's deal data from Salesforce and create a weekly sales report"
> * **Connectors**: Salesforce
> * **Reference Files**: Report template
> [accordion] Customer Support Agent
>
> * **Instructions**: "Reference the FAQ document to answer user questions"
> * **Connectors**: None
> * **Reference Files**: FAQ document, Product manual
> [accordion] Data Analysis Agent
>
> * **Instructions**: "Analyze sales data and report trends and anomalies"
> * **Connectors**: Google Sheets, BigQuery
> * **Reference Files**: Analysis criteria document
# Publishing Agents
Source: https://docs.jinba.io/en/pages/jinba_app/agents/publish
Agent publishing settings and app execution
## What is Agent Publishing
When you publish an agent, other users can use that agent. You choose how widely it is shared: within the workspace, within the organization, or publicly via a link.
> [!WARNING]
>
> The "Publish" button is shown only to users who can edit the agent (its creator, or a workspace owner).
## Publishing Settings
### Accessing Publishing Settings
**1. Open the Agent**
Click the agent you want to publish in the agent list.
**2. Click 'Publish'**
Click the "Publish" button in the header. The "PUBLISH VISIBILITY" menu opens.
### Choosing the Visibility
| Option | Description |
| - | - |
| **Share in workspace** | Visible to members of this workspace |
| **Share in organization** | Visible to members of this organization (shown only when the organization allows it) |
| **Publish publicly** | Anyone with the public link can open it (shown only when the organization allows it) |
**1. Select a Visibility**
Click one of the options. The agent is published immediately with that scope, and the scope is shown as a badge ("Workspace shared", "Organization shared" or "Public") on the agent card.
**2. Open the App**
"Open App" in the same menu opens the published agent in a new tab. For a public agent this is the public link.
> [!NOTE]
>
> Publishing also records a "Published" entry in the agent's "Versions" tab in Agent Builder.
## Notes Before Publishing
Before publishing an agent, please verify the following:
> [accordion] Connector Connection Status
>
> Verify that the connectors being used are properly connected. If connections are broken, the agent will not function correctly.
> [accordion] Reference File Contents
>
> Verify that reference files do not contain confidential information. In published agents, reference file contents influence AI responses.
> [accordion] Instruction Appropriateness
>
> Verify through test execution that the instructions reflect the intended behavior.
## Agent App Execution Screen
Published agents can be used from their app screen ("Open App").
### Agent App Features
* **Simple Interface**: A screen specialized for agent usage
* **Instant Start**: Agents with an "Initial User Message" start with a single "Start" button
* **No Setup Required**: Connector and file settings are pre-configured
### Using Agent Apps
**1. Open Agent List**
Select "Agents" from the side menu.
**2. Select Published Agent**
Click the published agent you want to use from the list.
**3. Start Chatting**
A chat screen with the agent's settings applied opens. Enter a question to start chatting.
## Searching Published Agents
Published agents can be searched in the agent list.
**1. Enter Keywords in Search Box**
Enter keywords contained in the agent name or instructions.
**2. Check the Badge**
Published agents show their visibility badge on the card.
## Unpublishing Agents
You can revert a published agent back to unpublished status.
> [!WARNING]
>
> Once unpublished, other users will no longer be able to use that agent.
**1. Click 'Publish'**
Open the agent and click the "Publish" button in the header.
**2. Click 'Unpublish'**
Click the "Unpublish" button in the menu. The agent is unpublished immediately.
# Login
Source: https://docs.jinba.io/en/pages/jinba_app/basics/login
How to log in to Jinba App
## Login Methods
You can log in to Jinba App using the following methods:
* Google account
* Microsoft account
* Email address and password
* SSO (Enterprise plan only)
## Login with Google Account
**1. Access Jinba App**
Open your browser and navigate to [Jinba App](https://app.jinba.io/).
**2. Click 'Continue with Google'**
Click the "Continue with Google" button on the login screen.
**3. Select Your Google Account**
The Google login screen will appear. Select the account you want to use and log in.
**4. Login Complete**
Once authentication is successful, you'll be redirected to the Jinba App main screen.
## Login with Microsoft Account
**1. Access Jinba App**
Open your browser and navigate to [Jinba App](https://app.jinba.io/).
**2. Click 'Continue with Microsoft'**
Click the "Continue with Microsoft" button on the login screen.
**3. Sign in with Your Microsoft Account**
The Microsoft sign-in screen will appear. Sign in with the account you want to use.
**4. Login Complete**
Once authentication is successful, you'll be redirected to the Jinba App main screen.
## Login with Email Address
**1. Access Jinba App**
Open your browser and navigate to [Jinba App](https://app.jinba.io/).
**2. Enter Email and Password**
Enter your registered email address and password on the login screen.
**3. Click 'Sign in'**
Click the "Sign in" button to log in.
**4. Login Complete**
Once authentication is successful, you'll be redirected to the Jinba App main screen.
## SSO Login (Enterprise)
> [!NOTE]
>
> SSO login is available for organizations on the Enterprise plan.
Log in using your organization's Identity Provider (IdP). The SSO button is shown when SSO is enabled for your organization, for example when you open the organization-specific sign-in link provided by your administrator. If your organization has only one SSO provider, you are redirected to it automatically.
**1. Access Jinba App**
Open your browser and navigate to [Jinba App](https://app.jinba.io/).
**2. Click the SSO Login Button**
Click the "Login with SSO" button on the login screen.
**3. Authenticate with Your Organization's IdP**
Your organization's Identity Provider login screen will appear. Enter your credentials to log in.
**4. Login Complete**
Once authentication is successful, you'll be redirected to the Jinba App main screen.
## Creating an Account
You can create a Jinba App account using the following methods:
### Register with Google or Microsoft Account
When you log in with "Continue with Google" or "Continue with Microsoft", your account is automatically created.
### Register with Email Address
**1. Click 'Sign up'**
Click the "Sign up" link on the login screen.
**2. Enter Account Information**
Enter the required information such as email address and password.
**3. Registration Complete**
Once registration is complete, you can start using Jinba App.
### First-time SSO Login (Enterprise)
If you're using SSO on an Enterprise plan, your account is automatically created on first login.
## Forgot Password
### For Email Login
**1. Click 'Forgot password?'**
Click the "Forgot password?" link on the login screen.
**2. Enter Your Email Address**
Enter your registered email address to send a password reset email.
**3. Check Your Email**
Click the link in the email you receive to set a new password.
### For SSO
If you're using SSO, reset your password through your organization's Identity Provider. Contact your organization's IT administrator for details.
## Troubleshooting
> [accordion] Cannot log in
>
> Please check the following:
>
> * Is your email address and password correct?
> * If logging in with a Google or Microsoft account, have you selected the correct account?
> * If using SSO, are your organization's Identity Provider credentials correct?
> * Try clearing your browser's cache and cookies and try again
> [accordion] Error appears after login
>
> This may be a temporary error. Please wait a while and try again. If the problem persists, contact support.
# Navigation
Source: https://docs.jinba.io/en/pages/jinba_app/basics/navigation
Screen layout and navigation in Jinba App
## Two Main Areas
The Jinba App screen consists of two main areas.
| Area | Description |
| - | - |
| **Side Panel** | Provides access to menus and various features |
| **Main Area** | The workspace for actual chat, agent settings, and other tasks |
> [!NOTE]
>
> A banner titled "Jinba App Neo is here" is shown at the top of the main area with an "Open Jinba App Neo" button. Click the × ("Dismiss") to hide it; the dismissal is remembered per browser.
## Side Panel
The side panel consists of three areas. Click on each element to access the main features.
### Workspace
Displays the workspace you're currently using. Click the arrow to create a new workspace or switch between workspaces.
### Menu
| Menu | Description |
| - | - |
| **New chat** | Start a new chat with AI (shortcut: ⇧⌘O on Mac, Ctrl+Shift+O on Windows) |
| **Connectors** | Manage connectors. Expands into the sub-items **My Connectors**, **Jinba Flow** and **Marketplace** |
| **Agents** | Create new agents, run created agents, or publish your agents. Hovering shows a "Create" shortcut |
| **Projects** | Organize knowledge files and chats into projects |
| **Tasks** | Manage tasks that run at specified times or intervals based on agents |
| **Recent agents** | Agents you used recently. "See all" opens the agent list |
| **Recent chats** | Past chats. "See all" opens the Chat History page |
| **Workspace settings** | Rename workspace, manage user access, or delete workspace (shown at the bottom of the side panel) |
### Account Information
Click the user icon at the bottom left of the screen to display the account information menu. You can view and change your profile, subscription plan, theme, and language settings.
## Navigating to Each Screen
### Chat Screen
**1. Click 'New Chat' in the Side Panel**
A new chat screen opens. This is the main screen for interacting with AI.
For more details, see [Chat Screen Overview](/en/pages/jinba_app/chat/overview).
### Connectors Screen
**1. Click 'Connectors' in the Side Panel**
Navigate to the connector management screen. It has three tabs: "My Connectors", "Jinba Flow" and "Marketplace".
For more details, see [Connector Management Overview](/en/pages/jinba_app/connectors/overview).
### Agent Management Screen
**1. Click 'Agents' in the Side Panel**
Navigate to the agent management screen. View agent list, create new agents, and publish. The screen has the tabs "My Agents", "Run History" and "Templates" (the Templates tab currently shows "Templates Coming Soon").
For more details, see [Agent Management Overview](/en/pages/jinba_app/agents/overview).
### Task Management Screen
**1. Click 'Tasks' in the Side Panel**
Navigate to the task management screen. View task list and add new tasks.
For more details, see [Task Management Overview](/en/pages/jinba_app/tasks/overview).
### Jinba Flow Integration Screen
**1. Click 'Connectors' and then 'Jinba Flow' in the Side Panel**
Navigate to the Jinba Flow tab of the connector management screen. Connect Jinba Flow workspaces and check their status.
### Workspace Settings Screen
**1. Click 'Workspace Settings' in the Side Panel**
Navigate to the workspace settings screen. Rename, manage users, or delete the workspace.
# File Attachments
Source: https://docs.jinba.io/en/pages/jinba_app/chat/file-attachment
How to attach files in chat for AI to process
## File Attachment Feature
When you attach files to the chat, AI can analyze and process the file contents.
## How to Attach Files
### Attach via Button
**1. Click the Attachment Button**
Click the "+" button in the input area and select "Add File".
**2. Select a File**
Select the file you want to attach from the file selection dialog.
**3. Confirm the File**
The attached file will be displayed in the input area.
**4. Enter Message and Send**
Enter a message if needed and send.
### Attach via Drag & Drop
You can also attach files by dragging and dropping them onto the chat screen.
## Supported File Formats
The following file formats are supported:
| Category | File Formats |
| - | - |
| Documents | PDF, Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx), OpenDocument (.odt, .ods, .odp), Text (.txt, .md) |
| Images | PNG, JPEG, GIF, WebP |
| Data | CSV, JSON, XML |
| Audio / Video | MP3, WAV, MP4, AVI, MOV |
| Archives | ZIP, TAR, GZ |
> [!WARNING]
>
> An error message will be displayed if you try to attach an unsupported file format.
## File Size Limits
There is a maximum file size limit for attachments. Files exceeding the limit cannot be attached.
> [!NOTE]
>
> For large files, consider splitting them or extracting only the necessary parts before attaching.
## Examples of File-based Questions
### Excel File Analysis
```
Please aggregate the sales data in the attached Excel file by month and create a graph.
```
### PDF Summary
```
Please summarize the contents of the attached PDF in three key points.
```
### Image Description
```
Please describe what is shown in this image.
```
### CSV Data Processing
```
Please extract rows with sales over 1 million yen from the attached CSV.
```
## Removing Attached Files
If you want to remove an attachment before sending, click the "×" button on the attachment preview.
## Troubleshooting
> [accordion] Cannot attach file
>
> Please check the following:
>
> * Is the file format supported?
> * Does the file size exceed the limit?
> * Is the file corrupted?
> [accordion] File contents cannot be read correctly
>
> * Password-protected files cannot be read
> * Scanned PDFs may be recognized as images
# Chat in Jinba App
Source: https://docs.jinba.io/en/pages/jinba_app/chat/overview
Overview and screen layout of Jinba App chat feature
## What is the Chat Feature
The chat feature is the main functionality of Jinba App. You can ask questions and give instructions to AI in a conversational format to get answers.

## Screen Layout
The chat screen consists of the following elements:
### Chat List
Past chats are listed in the "Recent chats" section of the side panel on the left.
* **New chat**: Start a new chat
* **Recent chats**: Click on a past chat to resume from where you left off
* **See all**: Opens the Chat History page, where you can search chats, sort them (newest / oldest first) and filter by date
### Message Area
The conversation with AI is displayed in the center of the screen.
* Messages sent by the user
* Responses from AI
* Attached file contents
* Connector execution results
### Input Area
The message input area is at the bottom of the screen.
* Text input field
* "+" button ("Add File") for attachments
* Connector button for choosing connectors and tools
* Model selector
* Send button
## Key Features
> [card] [Send Messages](/en/pages/jinba_app/chat/send-message)
>
> Send text messages to AI
> [card] [File Attachments](/en/pages/jinba_app/chat/file-attachment)
>
> Attach files for AI to process
> [card] [Using Connectors](/en/pages/jinba_app/chat/use-connectors)
>
> Retrieve information by integrating with external services
> [card] [Receiving Responses](/en/pages/jinba_app/chat/receive-response)
>
> Review responses from AI
## Starting a New Chat
**1. Click the New Chat Button**
Click "New chat" at the top of the side panel menu.
**2. Enter Your Message**
Type your message in the input area.
**3. Send**
Click the send button or press Ctrl+Enter (⌘+Enter on Mac) to send your message.
## Resuming Past Chats
Click on a past chat in the chat list to resume the conversation from where you left off.
# Receiving AI Responses
Source: https://docs.jinba.io/en/pages/jinba_app/chat/receive-response
Display formats and how to review AI responses
## AI Responses
When you send a message, AI generates a response and displays it on the chat screen.

## Response Display Formats
AI responses are displayed in various formats depending on the content.
### Text
Regular text is formatted for easy reading.
### Markdown
AI responses are formatted in Markdown. The following elements are properly styled:
* **Headings**: Used for section divisions
* **Lists**: Bulleted or numbered lists
* **Bold/Italic**: Emphasis
* **Links**: Click to navigate to external sites
* **Tables**: Organized data display
### Code Blocks
Program code is displayed with syntax highlighting (color coding).
Code block features:
* **Automatic language detection**: Appropriate syntax highlighting is applied
### Mermaid Diagrams
If AI generates a diagram in Mermaid format, it is automatically visualized.
Supported diagram types:
* Flowcharts
* Sequence diagrams
* Class diagrams
* Gantt charts
* Other Mermaid-supported formats
### Tabular Data
When data is returned in table format, it is displayed as a readable table.
## Connector Execution Results
When connectors are used, their execution results are included in the response.
* Name of the connector used
* Retrieved or processed data
* Success/failure status of execution
## Working with Responses
### Copy, Retry and Share
Each response has action buttons underneath it.
* **Copy**: Copies the whole response
* **Retry**: Generates the response again (available once the current response has finished)
* **Share**: Shares the response
* **Text selection**: Drag to select and copy part of the response
### Follow-up Questions
You can continue asking questions about the response. AI considers the context of the previous conversation when responding.
```
Please explain in more detail.
```
```
Can you give me a specific example of the third point?
```
## During Response Generation
While AI is generating a response, a loading indicator is displayed.
* Responses are displayed with **streaming**, appearing on screen as they are generated
* For long responses, you can start reading the content without waiting for completion
## Error Display
If an error occurs during response generation, an error message is displayed.
> [accordion] 'Could not generate response'
>
> This may be a temporary error. Please wait a moment and try again.
> [accordion] 'Connector execution failed'
>
> Check the connector connection status in the [Connector Management screen](/en/pages/jinba_app/connectors/overview).
# Sending Messages to AI
Source: https://docs.jinba.io/en/pages/jinba_app/chat/send-message
How to send messages to AI in chat
## How to Send Messages
You can send messages to AI from the input area at the bottom of the chat screen.
### Basic Steps
**1. Enter Your Message**
Type what you want to tell AI in the text input field.
**2. Send**
Send using one of the following methods:
* Click the **Send button**
* Press **Ctrl+Enter** (**⌘+Enter** on Mac)
**3. Wait for Response**
A loading indicator will appear while AI generates its response.
## Tips for Effective Questions
To get better responses from AI, keep the following points in mind when composing your messages.
### Be Specific
```text Good Example theme={null}
Please aggregate the sales data by month and calculate the year-over-year comparison.
```
```text Needs Improvement theme={null}
Analyze the data.
```
### Provide Context
```text Good Example theme={null}
I'm preparing a presentation for next week. Please summarize the three key features of Product A for our customers.
```
```text Needs Improvement theme={null}
Summarize Product A.
```
### Specify Output Format
```text Good Example theme={null}
Please organize the following items in a table format: Product name, Price, Stock quantity
```
```text Needs Improvement theme={null}
Tell me about the products.
```
## Multi-line Messages
When sending long messages or messages with multiple paragraphs:
* **Enter** (or **Shift + Enter**): Insert a line break (without sending)
* **Ctrl + Enter** / **⌘ + Enter**: Send the message
## While a Response Is Being Generated
While AI is generating a response, the send button stays disabled; wait for the response to finish before sending the next message. If a response is unsatisfactory, use the "Retry" action under the response to regenerate it.
## Related Pages
> [card] [File Attachments](/en/pages/jinba_app/chat/file-attachment)
>
> Send messages with file attachments
> [card] [Using Connectors](/en/pages/jinba_app/chat/use-connectors)
>
> Reference external data using connectors
# Using Connectors
Source: https://docs.jinba.io/en/pages/jinba_app/chat/use-connectors
How to use connectors in chat to integrate with external services
## What are Connectors
Connectors are features that connect Jinba App with external services. By using connectors in chat, AI can retrieve data from external services or perform operations.
## How to Call Connectors
There are two ways to call connectors: **explicit specification** and **implicit specification**.
### Explicit Specification (@connectorname)
When you want to use a specific connector, type `@connectorname` in your message.
```
@Salesforce Please get this month's deals list
```
**1. Type @**
When you type `@` in the message input field, a list of available connectors appears.
**2. Select a Connector**
Click the connector you want to use from the suggestion list, or type the connector name.
**3. Enter Your Message**
After the connector name, enter what you want to do.
**4. Send**
When you send the message, the specified connector will be used.
### Implicit Specification (AI Auto-selection)
Even without explicitly specifying a connector, AI may automatically select an appropriate connector based on your question.
```
Show me this month's deals list
```
In this case, AI automatically selects the Salesforce connector based on the keyword "deals" and retrieves the data.
> [!NOTE]
>
> With implicit specification, AI determines the best connector. If the intended connector is not selected, please specify it explicitly.
## Using Multiple Connectors
You can specify multiple connectors in a single message.
```
Please cross-reference the deal data from @Salesforce with the list in @Google Sheets
```
## Connector Execution Results
When a connector is executed, its results are displayed in the chat.
* Contents of retrieved data
* Results of executed operations
* Error messages if an error occurred
## Checking Available Connectors
You can check currently available connectors in [My Connectors](/en/pages/jinba_app/connectors/my-connectors). To add new connectors, use the [Connector Management screen](/en/pages/jinba_app/connectors/overview).
## Troubleshooting
> [accordion] Connector not found
>
> * Check if the connector is installed in [My Connectors](/en/pages/jinba_app/connectors/my-connectors)
> * Verify the connector name spelling is correct
> [accordion] Connector execution fails
>
> * Check if the connector connection is valid
> * Verify you have the necessary permissions
> * Try [refreshing](/en/pages/jinba_app/connectors/manage-connectors) the connection
## Related Pages
> [card] [Connector Management](/en/pages/jinba_app/connectors/overview)
>
> Installing and managing connectors
> [card] [My Connectors](/en/pages/jinba_app/connectors/my-connectors)
>
> Checking installed connectors
# Form Execution
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/form-execution
Execute connector tools individually using forms
## What is Form Execution
The Form Execution screen allows you to execute each tool provided by a connector individually using a form interface. This is convenient when you want to directly operate specific tools without using chat.

## Accessing Form Execution
**1. Open Connector Management Screen**
Select "Connectors" from the side menu.
**2. Select a Connector**
Click the connector you want to use from the My Connectors list.
**3. Open the Tool List**
The connector details screen shows the tool list on the left and the selected tool's form on the right ("Select a tool to run").
## Tool List
A list of tools provided by the connector is displayed.
Each tool displays the following information:
* **Tool Name**: Identifier name of the tool
* **Description**: Explanation of the tool's function
* **Past runs**: Previous executions of the tool ("No execution history" if none)
Tools that may modify or delete data are marked with a "Destructive" badge.
## Searching Tools
When there are many tools, you can use the search function to quickly find the one you need.
**1. Enter in Search Box**
Enter keywords in the search box at the top of the tool list.
**2. Review Results**
Only tools matching the tool name or description will be displayed.
## Executing Tools
Execute the selected tool using a form interface.
**1. Select a Tool**
Click the tool you want to execute from the tool list.
**2. Enter Parameters**
Enter the required parameters in the "Parameters" form.
**3. Click 'Run Tool'**
Click the "Run Tool" button to run the tool. While it runs, "Running..." is shown together with the estimated run time.
**4. Review Results**
The execution results will be displayed on screen.
## Execution Result Summary
After tool execution, a summary of the results is displayed.
The result area includes:
* **Execution Summary**: Success/Failure and a generated summary
* **Structured Data**: Result data as a table, downloadable as CSV or Excel
* **Output Files**: Files produced by the tool
* **Raw Result**: The raw response from the tool
* **Errors & Warnings**: Error details if execution failed
## Execution History
You can view the history of previously executed tools.
**1. Find the Tool in the Tool List**
Past runs are listed under the selected tool in the tool list ("+N more" expands the list).
**2. Review History**
Each run shows its summary, start time, duration and who ran it.
**3. View Details**
Click a run to view its parameters and result. A run can be deleted with "Delete Run".
### Re-running from History
You can re-run a tool with the same parameters from a past run.
**1. Select a Past Run**
Click the run you want to re-run.
**2. Click 'Rerun'**
Click the "Rerun" button in the result area.
## Troubleshooting
> [accordion] Tool execution fails
>
> Please check the following:
>
> * Are all required parameters filled in?
> * Are the parameter values in the correct format?
> * Is the connector connection valid?
> [accordion] Execution results are empty
>
> * There may be no data matching the search criteria
> * Try changing the parameter values and re-executing
# Jinba Flow Connectors
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/jinbaflow
Connecting, installing, and managing Jinba Flow connectors
## What are Jinba Flow Connectors
Jinba Flow is an external workflow service that can integrate with Jinba App. When you connect a Jinba Flow workspace to Jinba App, the flows published in that workspace are installed as connectors and can be used from chat.

## Jinba Flow Workspace List
Connected workspaces are displayed in the "Jinba Flow" tab of the Connector Management screen ("Jinba Flow Workspaces"). You can search the list and sort it by "Default" or "Most installed".
Each workspace card displays the following information:
| Field | Description |
| - | - |
| **Workspace Name** | Name of the Jinba Flow workspace |
| **Authentication** | "API KEY" or "JWT" badge showing how the workspace is connected |
| **MCP Count** | Number of connectors (MCPs) installed from the workspace |
| **Last Refreshed** | When the connection was last refreshed |
| **Status** | "Up to date with the latest Flows." or "Updates available. Refresh to sync latest Flows." |
## Connecting a Jinba Flow Workspace
There are two ways to connect a workspace.
### Connect with API Key
**1. Click 'Connect with API Key'**
Click the "Connect with API Key" button at the top of the Jinba Flow tab. The "Connect to Jinba Flow" dialog opens.
**2. Enter the Jinba Flow API Key**
Paste the API key into the "Jinba Flow API Key" field. You can find the key in the Jinba Flow workspace settings page ("Go to Jinba Flow Settings" link).
**3. Connection Complete**
"Workspace connected successfully" is shown, and the workspace's published flows are installed as connectors in My Connectors.
### Connect with JWT
When your Jinba App workspace has been granted access in the Jinba Flow workspace's "JWT Access Rules", that workspace appears in the list as not yet connected. Click "Connect with JWT" on the card to complete the integration without an API key.
> [!NOTE]
>
> A workspace connected with an API key that also has JWT access can be switched with "Migrate to JWT Authentication" in the card menu. The tool run history is kept.
## Refreshing Connection
When flows have been published or changed in Jinba Flow, refresh the connection to sync them to Jinba App.
### When Refresh is Needed
* When the card shows "Updates available. Refresh to sync latest Flows."
* When flows have been added or changed in Jinba Flow
* When connection errors occur
### Refresh Steps
**1. Open the Card Menu**
Click the menu (⋮) on the workspace card in the Jinba Flow tab.
**2. Select 'Refresh'**
Select "Refresh" from the menu.
**3. Confirm Completion**
"Workspace refreshed successfully" is shown when the refresh is complete.
## Disconnecting
Disconnecting a Jinba Flow workspace removes all connectors installed from it.
> [!WARNING]
>
> Once disconnected, the workspace's connectors will no longer be available in chat. You will need to reconnect to use them again.
### Disconnect Steps
**1. Open the Card Menu**
Click the menu (⋮) on the workspace card in the Jinba Flow tab.
**2. Select 'Delete'**
Select "Delete" from the menu.
**3. Confirmation Dialog**
The dialog "Are you sure you want to disconnect this workspace? All associated connectors will be removed." appears. Click "Delete" to confirm.
## Troubleshooting
> [accordion] Jinba Flow connector not appearing in the list
>
> Please check the following:
>
> * Is the flow published in Jinba Flow? Only published flows are installed as connectors ("This workspace has no connectors. Try refreshing.")
> * Has the workspace been refreshed since the flow was published?
> * For JWT connections, has your Jinba App workspace been granted access in the Jinba Flow "JWT Access Rules"?
> [accordion] Connection fails
>
> * Check the API key ("Failed to connect to Jinba Flow. Please check your API key and try again.")
> * "This API key is already connected" means the workspace is already in the list
> * Wait a moment and try again
> * If the problem persists, contact support
> [accordion] Changes not reflected after refresh
>
> * Verify the changes have been saved in Jinba Flow
> * This may be due to cache. Try reloading the browser
# Managing Connectors
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/manage-connectors
Refreshing, editing, and deleting connectors
## Connector Management Features
You can perform management operations such as refreshing, editing (renaming), and deleting on installed connectors. The buttons are in the header of the connector details screen.
## Refreshing Connectors
Re-fetch the connector's tool list (MCP schema) so it reflects the latest state.
### When Refreshing is Needed
* When settings have been changed on the external service side
* When connection errors occur
* When the tool list has been updated
### Refresh Steps
**1. Select Connector**
Click the connector you want to refresh from the My Connectors list.
**2. Click the Refresh Button**
Click the refresh icon button in the header of the connector details screen.
**3. Confirm Completion**
The message "MCP schema refreshed successfully" appears when the refresh is complete.
> [!NOTE]
>
> When a newer version of a connector's MCP server is available, an "Update Available" badge is shown on the connector. Refresh it to get the latest version.
## Deleting Connectors
Remove connectors that are no longer needed.
> [!WARNING]
>
> Once deleted, the connector will no longer be available in chat. You will need to install it again to use it.
### Delete Steps
**1. Select Connector**
Click the connector you want to delete from the My Connectors list.
**2. Click the Delete Button**
Click the trash icon button in the header of the connector details screen.
**3. Confirmation Dialog**
The "Delete MCP" dialog appears. If the connector is used by agents, the dialog lists them and warns that those agents will stop working. Click "Delete" to confirm.
## Renaming Connectors
You can change the display name of a connector. This changes the name used when typing `@connectorname` in chat.
### When Renaming is Useful
* When you want to distinguish between multiple accounts of the same service
* When you want a shorter name for easier access
* When you want to name it according to its purpose
### Rename Steps
**1. Select Connector**
Click the connector you want to rename from the My Connectors list.
**2. Click the Edit Button**
Click the pencil icon button in the header of the connector details screen. The "MCP Configuration" dialog opens.
**3. Enter New Name**
Enter the new name in the "Name" field and click "Update".
> [!NOTE]
>
> Jinba Flow connectors cannot be edited here; the pencil button is replaced by a link to the Jinba Flow tab.
> [!NOTE]
>
> After renaming, you can call the connector using `@newname` in chat.
## Troubleshooting
> [accordion] Refreshing doesn't resolve the error
>
> Please check the following:
>
> * Is the external service account still valid?
> * Has the API key or token expired?
> * Have access permissions been changed on the external service side?
> [accordion] The connector is used by agents
>
> * The delete dialog shows "Used in Agents" with the list of agents that use the connector
> * Those agents will stop working if you proceed; remove the connector from the agents first if you still need them
# Marketplace
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/marketplace
List and installation of standard MCPs
## What is the Marketplace
The Marketplace allows you to install standard MCPs that are ready to use. You can start integrating with various external services without the hassle of setting up your own MCP.

## Standard MCP List
The following standard MCPs are available for installation in Jinba App.
| MCP Name | Description |
| - | - |
| **Custom MCP** | Bring your own custom MCP server configuration |
| **Slack** | MCP server for Slack API. AI can interact with Slack workspaces |
| **ExaAI** | Perform web searches using MCP |
| **Notion** | Official Notion MCP server |
| **Google Maps** | Access location-based services and mapping features |
| **Firecrawl** | Provides powerful web scraping capabilities |
| **SiteMCP** | Fetch entire websites and use them as a knowledge base |
| **LINE Bot** | Connect AI agents to LINE official accounts |
| **Expedia** | Manage Expedia properties, bookings, and services |
| **e-Stat** | Access government statistical data |
| **Generate Image MCP** | Generate images from text descriptions using AI-powered image generation services |
## MCPs via Klavis
Additional MCPs are available through the Klavis platform.
| MCP Name | Description |
| - | - |
| **WordPress** | Easily connect to WordPress sites |
| **Firecrawl** | Provides powerful web scraping capabilities |
| **YouTube** | Access YouTube video transcripts |
| **KlavisAI ReportGen** | Generate web reports based on search queries |
| **Supabase** | Manage Supabase projects, databases, and services |
| **Notion** | Official Notion MCP server |
| **Slack** | AI can interact with Slack workspaces |
| **Doc2Markdown** | Convert documents in various formats to Markdown |
| **Markdown2Doc** | Convert Markdown to PDF, DOCX, and other formats |
## How to Install MCPs
**1. Open the Connectors Screen**
Select "Connectors" from the side menu.
**2. Select the Marketplace Tab**
Click the "Marketplace" tab to view available MCPs. You can search them and sort by "Default" or "Most installed".
**3. Select an MCP**
Click on the MCP card you want to install.
**4. Enter Settings**
Enter the required settings (such as API keys). For standard MCPs, many fields are pre-configured.
**5. Complete Installation**
Click the "Install" button to install the MCP.
> [!NOTE]
>
> MCPs via Klavis may require OAuth authentication with external services.
> [!NOTE]
>
> Organization administrators can restrict which connectors are available. If an MCP listed above is not shown in your Marketplace, it has been restricted for your organization.
## Related Pages
> [card] [My Connectors](/en/pages/jinba_app/connectors/my-connectors)
>
> Managing installed connectors
> [card] [Jinba Flow Connectors](/en/pages/jinba_app/connectors/jinbaflow)
>
> Connecting Jinba Flow connectors
# My Connectors
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/my-connectors
List and management of installed connectors
## What is My Connectors
My Connectors is a section that displays a list of connectors you have installed. All connectors available for use in chat are shown here.
## Connector List
Installed connectors are displayed as cards. Each connector card includes the following information:
* **Connector Name**: Display name of the connector
* **Description**: Overview of the connector's features
* **Connection Status**: Whether the connection is working properly
* **Tool Count**: Number of tools provided by the connector
## Searching Connectors
When you have many connectors installed, you can use the search function to quickly find the one you need.
**1. Click the Search Box**
Click the search box at the top of the connector list.
**2. Enter Keywords**
Enter keywords contained in the connector name or description.
**3. Review Results**
Only connectors matching the entered keywords will be displayed.
## Sorting Connectors
You can change the display order of the connector list.
### Sort Options
| Sort Order | Description |
| - | - |
| **Default** | Default order |
| **Most installed** | Connectors with the most installations in your organization first |
**1. Click the Sort Button**
Click the "Sort by" button at the top of the connector list.
**2. Select Sort Order**
Select your preferred sort order from the dropdown.
## Viewing Connector Details
Click on a connector card to view detailed information about that connector.
The details screen shows:
* Detailed description of the connector
* List of available tools
* Connection status and settings
* Management buttons (Refresh, Edit, Delete) and the "Run Tool" button
## Connector Management Operations
The following operations are available for each connector:
> [card] Refresh
>
> Re-fetch the connector's tool list (MCP schema)
> [card] Edit
>
> Change the name and settings
> [card] Delete
>
> Remove the connector
For more details, see [Managing Connectors](/en/pages/jinba_app/connectors/manage-connectors).
## Navigate to Form Execution
From the connector details screen, you can navigate to the [Form Execution screen](/en/pages/jinba_app/connectors/form-execution) to execute tools individually.
# Connector Management Overview
Source: https://docs.jinba.io/en/pages/jinba_app/connectors/overview
Screen layout and basic features of Connector Management
## What is Connector Management
The Connector Management screen allows you to manage connectors that connect Jinba App with external services.

## Screen Layout
The Connector Management screen consists of three tabs: "My Connectors", "Jinba Flow" and "Marketplace".
### My Connectors
Displays a list of installed connectors.
* Search and sort connectors
* Refresh, edit, and delete connectors
* Run a connector's tools individually (Form Execution)
For more details, see [My Connectors](/en/pages/jinba_app/connectors/my-connectors).
### Jinba Flow
Displays the Jinba Flow workspaces connected to Jinba App. Connecting a workspace installs its published flows as connectors.
* Connect a Jinba Flow workspace with an API key or JWT
* Refresh a connection to sync the latest flows
* Disconnect a workspace
For more details, see [Jinba Flow Connectors](/en/pages/jinba_app/connectors/jinbaflow).
## Types of Connectors
Various types of connectors are available in Jinba App.
| Type | Description |
| - | - |
| **Data Integration** | Connect with data sources like databases and spreadsheets |
| **Service Integration** | Connect with SaaS applications and APIs |
| **Marketplace** | Install standard MCPs from the [Marketplace](/en/pages/jinba_app/connectors/marketplace) |
| **Jinba Flow** | Custom connectors created in Jinba Flow |
## What Connectors Can Do
With connectors, AI can perform the following operations on external services:
> [card] Retrieve Data
>
> Get information from external services and use in chat
> [card] Create Data
>
> Create new records or files in external services
> [card] Update Data
>
> Update existing data in external services
> [card] Delete Data
>
> Delete data in external services
## Accessing Connector Management
**1. Click 'Connectors' in the Side Panel**
Select "Connectors" from the side menu.
**2. Connector Management Screen Appears**
The "My Connectors", "Jinba Flow" and "Marketplace" tabs are displayed.
## Key Features
> [card] [My Connectors](/en/pages/jinba_app/connectors/my-connectors)
>
> List and search installed connectors
> [card] [Marketplace](/en/pages/jinba_app/connectors/marketplace)
>
> List and install standard MCPs
> [card] [Managing Connectors](/en/pages/jinba_app/connectors/manage-connectors)
>
> Refresh, edit, and delete connectors
> [card] [Form Execution](/en/pages/jinba_app/connectors/form-execution)
>
> Execute tools individually using forms
> [card] [Jinba Flow](/en/pages/jinba_app/connectors/jinbaflow)
>
> Connect and install Jinba Flow connectors
# Jinba App Concepts
Source: https://docs.jinba.io/en/pages/jinba_app/core-concepts
Basic terminology for understanding Jinba App
Understanding these core concepts will help you effectively use Jinba App.
## Core Terminology
| Term | Description |
| - | - |
| **Account** | The user account used for login |
| **MCP / MCP Tools** | MCP stands for Model Context Protocol, a standardized common mechanism for AI to integrate with external data and tools. Jinba App provides various "MCP Tools" that can connect to external services. Through these, you can use various services from chats and agents. You can also call workflows built in Jinba Flow as MCP. **It's important to understand that in Jinba App, AI can access Jinba Flow and various other services through MCP.** |
| **Chat** | An interface for dialogue between AI and users through words. Conversations here become triggers for AI instructions and workflow execution |
| **Agent** | AI autonomously interacts with users to achieve pre-instructed goals, using MCP to fulfill specific roles |
| **Task** | A mechanism to schedule and run agents in the background without user interaction |
| **App** | By publishing a built agent as an app, anyone can easily use it |
## Next Steps
> [card] [Screen Overview](./basics/navigation)
>
> Learn about Jinba App screens and navigation
# Jinba App FAQ
Source: https://docs.jinba.io/en/pages/jinba_app/faq
Frequently asked questions and answers about Jinba App
## Login & Account
> [accordion] I cannot log in
>
> Please check the following:
>
> * Is your email address and password correct?
> * If logging in with a Google or Microsoft account, have you selected the correct account?
> * If using SSO, are your organization's Identity Provider credentials correct?
> * Try clearing your browser's cache and cookies and try again
>
> If you became unable to log in after several failed password attempts, your account may be temporarily locked. See the next item.
>
> If the problem persists, please contact support.
> [accordion] I can no longer log in after several failed attempts
>
> To protect against unauthorized access, email and password login temporarily locks an account after repeated failed attempts.
>
> * The lock is released automatically over time. No action from an administrator is required
> * Retrying while the lock is active makes the wait longer. Please wait a while before trying again
> * If you no longer remember your password, reset it from "Forgot password?" on the login screen instead of waiting for the lock to clear
> * This applies only to email and password login. Logging in with Google, Microsoft or SSO is unaffected
>
> While the lock is active, clearing your cache and cookies or switching browsers will not resolve it.
> [accordion] How do I register for an account?
>
> You can create a new account from "Sign up" on the login screen.
> Alternatively, logging in with "Continue with Google" or "Continue with Microsoft" automatically creates an account.
> If you're using SSO on an Enterprise plan, your account is automatically created on first login.
> [accordion] I forgot my password
>
> Click "Forgot password?" on the login screen and enter your registered email address.
> If using SSO, reset your password through your organization's Identity Provider.
## Chat
> [accordion] AI response stopped midway
>
> This may be a temporary error. Please try the following:
>
> * Reload the page and send your question again
> * Wait a moment and try again
>
> If the problem persists, please contact support.
> [accordion] I cannot attach files
>
> Please check the following:
>
> * Is the file format supported? (PDF, Word, Excel, PowerPoint, images, audio, archives, etc.)
> * Does the file size exceed the limit?
> * Is the file corrupted?
> [accordion] Where is my past chat history?
>
> You can view past chats in the "Recent chats" section of the side panel; "See all" opens the Chat History page with search and date filters. Click on a chat to resume the conversation from where you left off.
> [accordion] Can I delete a chat?
>
> Click the settings menu (⋮) of the chat you want to delete in the chat list and select "Delete". Deleted chats cannot be recovered.
## Connectors
> [accordion] Connector won't connect
>
> Please check the following:
>
> * Is the external service account valid?
> * Has the API key or token expired?
> * Are access permissions set on the external service side?
>
> Try the "Refresh" button on the connector details screen.
> [accordion] Getting errors when running connector
>
> Possible causes of the error:
>
> * Connection is broken
> * Insufficient permissions
> * Invalid parameters
>
> Try refreshing the connector or run the tool individually with "Run Tool" on the connector details screen.
> [accordion] Jinba Flow connector not appearing
>
> Please check the following:
>
> * Is the flow published in Jinba Flow? Only published flows are installed as connectors
> * Has the Jinba Flow workspace been connected (API key or JWT) and refreshed since the flow was published?
## Agents
> [accordion] I cannot create an agent
>
> Every workspace member can create agents. If the "Create Agent" button is missing, check that you are in the right workspace. Note that members can edit and delete only their own agents; workspace owners can edit any agent.
> [accordion] Agent is not working as intended
>
> Please check the following:
>
> * Are the instructions specific and clear?
> * Are the required connectors configured?
> * Are the reference files properly uploaded?
>
> Run a test in Agent Builder to verify the behavior.
> [accordion] Published agent not visible to other users
>
> Check the visibility chosen with the "Publish" button: "Share in workspace" is visible only to members of the workspace, "Share in organization" to members of the organization, and "Publish publicly" to anyone with the link. Also, other users may need to reload the agent list.
## Tasks
> [accordion] Task is not executing
>
> Please check the following:
>
> * Is the schedule correctly set?
> * Is the task in "Scheduled" state?
> * Is the agent being used valid?
> * Is the connector connection valid?
> [accordion] How do I check task execution results?
>
> Completed tasks are shown in the "Completed" column of the Task Management screen. Open the task's menu (⋮) and select "View History" to see the execution results.
> [accordion] I want to stop a recurring task
>
> In the Kanban view, drag the scheduled task's card to the "Draft" column. The task will return to draft state and automatic execution will stop.
## Other
> [accordion] What browsers are supported?
>
> We recommend the latest versions of the following browsers:
>
> * Google Chrome
> * Mozilla Firefox
> * Apple Safari
> * Microsoft Edge
> [accordion] Can I use it on mobile devices?
>
> Jinba App is recommended for use on PC browsers. While you can access it from mobile browsers, some features may be limited.
> [accordion] Where is my data stored?
>
> For data security and privacy information, please refer to the [Jinba App Privacy Policy](https://jinba.io/privacy). If you're on an Enterprise plan, please also refer to your organization's security policy.
> [accordion] How do I contact support?
>
> If your issue is not resolved, please contact [Support](https://app.jinba.io/support).
# What Is Jinba App?
Source: https://docs.jinba.io/en/pages/jinba_app/introduction
Learn what Jinba App does and find the chat, agents, connectors, and task guides.
## What is Jinba App
Jinba App is an AI-powered business efficiency platform. You can automate tasks by interacting with AI through chat while integrating with various external services.

## Key Features
> [card] [Chat](/en/pages/jinba_app/chat/overview)
>
> Ask questions and give instructions to AI in a conversational format to get answers
> [card] [Connectors](/en/pages/jinba_app/connectors/overview)
>
> Integrate with external services to enable AI to retrieve and manipulate data
> [card] [Agents](/en/pages/jinba_app/agents/overview)
>
> Create and manage AI agents specialized for specific tasks
> [card] [Tasks](/en/pages/jinba_app/tasks/overview)
>
> Schedule agent executions to automate your workflows
## How to Use This Documentation
* **New users**: Start with the [Quick Start Guide](/en/pages/jinba_app/quickstart)
* **Want to learn more about features**: Browse each feature page from the navigation on the left
* **Need help with terminology**: Refer to the [Core Concepts](/en/pages/jinba_app/core-concepts)
* **Having trouble**: Check the [FAQ](/en/pages/jinba_app/faq)
## Target Audience
This documentation is intended for all end users of Jinba App. No technical knowledge is required.
# Quick Start
Source: https://docs.jinba.io/en/pages/jinba_app/quickstart
Basic steps to get started with Jinba App
## Before You Begin
To use Jinba App, you need:
* A Jinba App account (Google account, Microsoft account, email address, or your organization's SSO account)
* A modern browser (Chrome, Firefox, Safari, or Edge latest versions recommended)
## Step 1: Log In
**1. Access Jinba App**
Open your browser and navigate to [Jinba App](https://app.jinba.io/).
**2. Log In**
Log in with your Google or Microsoft account, or with your email address and password.
If you're on an Enterprise plan, you can also log in with your organization's SSO.
For more details, see [Login](/en/pages/jinba_app/basics/login).
## Step 2: Chat with AI
**1. Open the Chat Screen**
Select "New chat" from the side menu.
**2. Send a Message**
Enter your message in the input field at the bottom of the screen and click the send button (or press Ctrl+Enter / ⌘+Enter).
**3. Review AI's Response**
The AI's response will appear in the chat screen.
For more details, see [Chat Feature](/en/pages/jinba_app/chat/overview).
## Step 3: Use Connectors
Connectors allow AI to access data from external services.
**1. Enable a Connector**
Install the connector you want to use from the Connector Management screen.
**2. Call from Chat**
Type `@connectorname` in the chat, or let AI automatically select the appropriate connector.
For more details, see [Connectors Feature](/en/pages/jinba_app/connectors/overview).
## Next Steps
> [card] [Create an Agent](/en/pages/jinba_app/agents/agent-builder)
>
> Create an AI agent specialized for specific tasks
> [card] [Schedule Tasks](/en/pages/jinba_app/tasks/create-task)
>
> Automate agent execution with scheduling
# Creating Tasks
Source: https://docs.jinba.io/en/pages/jinba_app/tasks/create-task
How to create new tasks
## Creating New Tasks
You can create new tasks from the Task Management screen.
## Task Creation Steps
**1. Open Task Management Screen**
Select "Tasks" from the side menu.
**2. Click 'Add Task' Button**
Click the "Add Task" button at the top of the screen. The "Add New Task" dialog opens.
**3. Enter Task Settings**
Enter the required information in the dialog.
**4. Save**
Click "Save as Draft" or "Save & Schedule".
## Task Settings
### Specifying the Agent
Select the agent to execute for the task.
**1. Click Agent Selection Field**
Click the "Agent" dropdown ("Select Agent").
**2. Select Agent**
Select the agent to use from the list. The agents of the current workspace are displayed.
### Task Name
Enter a name to identify the task.
```
Example: Weekly Sales Report Creation
Example: Daily Sales Aggregation
Example: Month-end Inventory Check
```
> [!TIP]
>
> Using descriptive names makes it easier to manage tasks in the list.
### Initial User Input (Optional)
Enter the message to send to the agent first. When the task executes, this message is sent to the agent.
```
Example: Please aggregate this week's deal data and create a weekly report.
Example: Please analyze yesterday's sales data and report any anomalies.
Example: Please create a list of products with inventory below 10 units.
```
> [!NOTE]
>
> Include specific instructions needed for the agent to process in the initial input.
### Schedule
Set when the task runs. You can describe the schedule in natural language (for example "Every day at 9 AM") and click "Parse natural language", or fill in the cron fields (Minutes, Hours, Months, Days of the month, Days of the week) directly. Select the "Timezone" and check the "Next run" preview.
Schedule settings are explained in detail in [Scheduled Execution](/en/pages/jinba_app/tasks/schedule-execution).
## Save Options
There are two ways to save tasks:
### Save as Draft
If you want to set the schedule later, click "Save as Draft".
* The task is saved in "Draft" state
* You can set the schedule later
* For more details, see [Draft Management](/en/pages/jinba_app/tasks/draft-management)
### Save with Schedule
If you want the task to run on its schedule, set the schedule first then click "Save & Schedule".
* The task is saved in "Scheduled" state
* It will be automatically executed according to the schedule
* For more details, see [Scheduled Execution](/en/pages/jinba_app/tasks/schedule-execution)
## Input Validation
When creating a task, the following validations are performed:
| Field | Validation |
| - | - |
| Agent | Is one selected? |
| Task Name | Is it entered? |
| Schedule | Is the cron schedule valid? ("There's an error in your cron schedule.") |
The save buttons stay disabled until the validation passes.
## Troubleshooting
> [accordion] Cannot select agent
>
> * Only agents of the current workspace are listed
> * Create the agent first if it does not exist yet
> [accordion] Save fails
>
> * Verify all required fields are filled in
> * Check your network connection
# Draft Management
Source: https://docs.jinba.io/en/pages/jinba_app/tasks/draft-management
Saving and editing task drafts
## What are Drafts
Drafts are tasks whose schedule is not active yet. You can enable the schedule later to execute the task.
## When to Use Drafts
* When you want to prepare task content but decide execution time later
* When you want to verify task settings before execution
* When you want to create multiple tasks in advance
## Viewing the Draft List
**1. Open Task Management Screen**
Select "Tasks" from the side menu.
**2. Find the 'Draft' Column**
In the Kanban view, draft tasks are in the "Draft" column. In the Table view, their Status is "Draft".
## Editing Drafts
You can edit the content of draft tasks.
**1. Select Draft**
Open the menu (⋮) of the draft task and select "Edit".
**2. Edit Dialog Opens**
The "Edit Task" dialog opens.
**3. Edit Content**
Edit the necessary fields:
* Change agent
* Change task name
* Change initial user input
* Change schedule
**4. Save**
Click "Keep as Draft" to save changes without activating the schedule.
## Setting Schedule from Draft
Activate the schedule of a draft task to transition it to scheduled execution.
**1. Select Draft**
Open the menu (⋮) of the draft task and select "Edit", or drag the card to the "Scheduled" column in the Kanban view.
**2. Edit Dialog Opens**
The "Edit Task" dialog opens.
**3. Set the Schedule**
Set the cron schedule and timezone.
**4. Click 'Save & Schedule'**
Click the "Save & Schedule" button when settings are complete.
**5. Transition to Scheduled**
The task changes to "Scheduled" state and will execute according to its schedule.
For more details, see [Scheduled Execution](/en/pages/jinba_app/tasks/schedule-execution).
## Deleting Drafts
You can delete draft tasks that are no longer needed.
> [!WARNING]
>
> Deleted drafts cannot be recovered.
**1. Select Draft**
Click the settings menu (⋮) of the draft task you want to delete.
**2. Select 'Delete'**
Select "Delete" from the menu.
**3. Confirmation Dialog**
A confirmation dialog appears. Click "Delete" to confirm.
## Searching Drafts
When you have many drafts, you can quickly find the one you need using the search function.
**1. Enter in Search Box**
Enter keywords in the search box at the top of the Task Management screen.
**2. Review Results**
Only tasks matching the task name or initial user input are displayed.
# Task Management Overview
Source: https://docs.jinba.io/en/pages/jinba_app/tasks/overview
Screen layout and basic features of Task Management
## What is Task Management
The Task Management screen allows you to schedule and automate agent execution. You can manage automatic execution of regular tasks and processing at specified times.

## What are Tasks
Tasks are units that manage agent execution. They consist of the following elements:
| Element | Description |
| - | - |
| **Agent** | The agent to execute |
| **Task Name** | Identifier name for the task |
| **Initial User Input** | The message to send to the agent first (optional) |
| **Schedule** | A cron schedule and timezone that decide when the task runs |
## Screen Layout
The Task Management screen has a search box ("Search tasks by name or instruction..."), an "Add Task" button and a view toggle ("Kanban" / "Table").
### Kanban View
Tasks are shown as cards in columns, one per status: Draft, Scheduled, Running, Completed, Error and Archived. Drag a card to another column to change its status.
Each card shows:
* Task name
* Next run time (or "Not scheduled")
* A menu (⋮) with "Edit", "View History" and "Delete"
### Table View
The same tasks in a table with the columns Title, Agent, Status, Schedule Type (One-time / Recurring), Next Run, Last Run and Created.
### Drafts
Tasks in the "Draft" column have no active schedule yet.
For more details, see [Draft Management](/en/pages/jinba_app/tasks/draft-management).
### Scheduled
Tasks in the "Scheduled" column run automatically on their schedule.
For more details, see [Scheduled Execution](/en/pages/jinba_app/tasks/schedule-execution).
## Accessing Task Management
**1. Click 'Tasks' in the Side Panel**
Select "Tasks" from the side menu.
**2. Task Management Screen Appears**
The task list is displayed.
## Key Features
> [card] [Creating Tasks](/en/pages/jinba_app/tasks/create-task)
>
> Create new tasks
> [card] [Draft Management](/en/pages/jinba_app/tasks/draft-management)
>
> Edit and manage draft tasks
> [card] [Scheduled Execution](/en/pages/jinba_app/tasks/schedule-execution)
>
> Set task execution times
## Task Use Cases
> [accordion] Weekly Report Auto-generation
>
> * **Agent**: Sales Report Creation Agent
> * **Initial Input**: "Please create this week's sales report"
> * **Execution Time**: Every Friday at 17:00
> [accordion] Daily Data Aggregation
>
> * **Agent**: Data Analysis Agent
> * **Initial Input**: "Please aggregate yesterday's sales data"
> * **Execution Time**: Every day at 9:00
> [accordion] Monthly Report Creation
>
> * **Agent**: Report Creation Agent
> * **Initial Input**: "Please create last month's activity report"
> * **Execution Time**: 1st of every month at 10:00
## Task States
Tasks have the following states:
| State | Description |
| - | - |
| **Draft** | Created but schedule not yet active |
| **Scheduled** | Schedule active, waiting for the next run |
| **Running** | Currently executing |
| **Completed** | Execution finished |
| **Error** | Error occurred during execution |
| **Archived** | Archived tasks |
# Scheduled Execution
Source: https://docs.jinba.io/en/pages/jinba_app/tasks/schedule-execution
Setting task execution times and automatic execution
## What is Scheduled Execution
Scheduled execution is a feature that automatically runs tasks on a schedule. Schedules are defined as cron expressions with a timezone, so they can express daily, weekly, monthly or any other recurring pattern.
## Execution Types
### Recurring Execution
New tasks are recurring: the task runs every time its cron schedule matches.
| Pattern | Example natural language input |
| - | - |
| **Daily** | "Every day at 9 AM" |
| **Weekly** | "Every Friday at 5 PM" |
| **Monthly** | "On the 1st of every month at 10 AM" |
### One-time Execution
Tasks created with the older one-time scheduling keep running as before. When you edit such a task, the dialog shows "This task uses legacy one-time scheduling. Schedule settings are kept as-is in this dialog." The "Schedule Type" column of the Table view shows "One-time" or "Recurring" for each task.
## How to Set Schedule
### Setting Schedule for New Task
**1. Open the Add Task Dialog**
Click "Add Task" on the Task Management screen.
**2. Enter Task Basic Information**
Enter agent, task name, and (optionally) initial user input.
**3. Describe the Schedule**
Type the schedule in natural language (for example "Every day at 9 AM") and click "Parse natural language", or fill in the cron fields directly.
**4. Check Timezone and Next Run**
Select the "Timezone" and confirm the "Next run" preview.
**5. Click 'Save & Schedule'**
Save settings and enable the schedule.
### Setting Schedule from Draft
**1. Open Draft Task**
Open the menu (⋮) of the draft task and select "Edit".
**2. Set the Schedule**
Set the cron schedule and timezone.
**3. Click 'Save & Schedule'**
The task transitions to scheduled state.
## Schedule Settings Details
The schedule form has two ways of input.
### Natural Language
**1. Describe the Schedule**
Type the schedule in the text box (placeholder: "e.g., Every day at 9 AM").
**2. Click 'Parse natural language'**
The cron fields are filled in from your description. If parsing fails, "Failed to parse natural language. Please try again." is shown.
### Cron Fields
**1. Fill in the Fields**
Set "Minutes", "Hours", "Months", "Days of the month" and "Days of the week" directly.
**2. Check for Errors**
An invalid combination shows "There's an error in your cron schedule." and disables saving.
### Timezone
Select the "Timezone" the schedule is interpreted in. The "Next run" preview shows when the task will run next.
## Automatic Execution
Scheduled tasks are automatically executed at the specified time.
### Execution Flow
1. When the specified time arrives, the system starts the task
2. Initial input is sent to the agent
3. The agent processes the request
4. Execution results are saved
### Checking Execution Results
**1. Open Task Management Screen**
Select "Tasks" from the side menu.
**2. Check Completed Tasks**
Completed tasks are in the "Completed" column ("Error" if the run failed).
**3. View Details**
Open the task's menu (⋮) and select "View History". The "Execution History" dialog lists each run with its start and finish time, status, tool calls, token usage and the "AI Response".
## Changing Schedule
You can change the execution time of scheduled tasks.
**1. Select Scheduled Task**
Click the settings menu (⋮) of the task you want to change.
**2. Select 'Edit'**
Select "Edit" from the menu.
**3. Change Schedule**
Set the new cron schedule.
**4. Save**
Click "Save & Schedule" to save.
## Canceling Schedule
You can return a scheduled task to draft status.
**1. Drag the Task to the Draft Column**
In the Kanban view, drag the scheduled task's card to the "Draft" column.
**2. Return to Draft**
The task returns to draft state and stops running automatically.
> [!NOTE]
>
> Dragging a card to the "Running" column opens a dialog with "Run Now" and "Schedule Later" to run the task immediately.
## Troubleshooting
> [accordion] Task doesn't execute
>
> Please check the following:
>
> * Is the schedule correctly set?
> * Is the agent being used valid?
> * Is the connector connection valid?
> [accordion] Execution results in error
>
> * Check the agent settings
> * Verify the initial input content is appropriate
> * Check connector permissions
# Attach resources
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/attach
How to attach skills, connectors, and knowledge to an agent
An agent's capability is defined by the resources attached to it: skills, connectors, and knowledge. Resources live in one of two places.
| Location | Description |
| - | - |
| **Workspace shared** | Shared resources managed in Sidebar > **Customize**, on its **Skills** / **Knowledge** / **Connectors** tabs. Multiple agents can attach them |
| **Agent-specific** | Resources used by one agent only. Registered from the agent detail page; they do not appear in Customize |
## Attaching skills
Open the **Skills** section of the agent's configuration panel (the gear icon in the detail page's header) and click "Add skills."
* Search for a workspace-shared skill and attach it, or use "Create new" to build an agent-specific skill from scratch
* There is no fixed number of skills per agent, but chats with the agent can load only as many as fit in the AI's list of skills; a skill past that point is marked "**Not loaded by AI**" in this section ([Skills Overview](/en/pages/jinba_app_neo/skills/overview))
* To use a shared skill with small tweaks, use "**Copy and edit for this agent only**" (fork)
* Each attached skill's row ends in a "…" menu with "**Edit**" (opens the skill in the editor), "**Download**" (saves it as a `.zip` of its folder: `SKILL.md` plus its supporting files), and the remove action — "**Remove from Agent**" for a workspace-shared skill, "**Delete**" for an agent-only one. A member who can only use the agent sees Download alone
> [!WARNING]
>
> Editing a workspace-shared skill **affects every other agent** it is attached to. Be mindful of the blast radius.
## Attaching connectors
Manage these in the **Flow** and **Connectors** sections of the configuration panel.
* **jinba-flow** — Jinba connections are grouped into "**In use**," "**Available · Connected in workspace**," and "**Available · Not connected (connect to use)**." Press "**Connect**" to attach one in one click. Your own workspaces also appear in the not-connected group and connect as connections dedicated to this agent (marked with an "**Agent-only**" badge)
* **Add connector** (Custom MCP) — pick a shared MCP connection, or register an agent-specific MCP server
Agent-specific connections do not appear to other agents or in the workspace catalog. Use them for connections you want to keep scoped, such as department-specific systems.
The panel also shows an "**External services (personal)**" group listing the personal services you have connected — Gmail, Slack, and the rest — each with a "**Connected**" badge. This is a status view, not something you attach: personal connections are yours, active in all of your chats in this workspace whichever agent you use, and are managed on the [Connectors page](/en/pages/jinba_app_neo/connectors/personal-connectors) (the group links there). With nothing connected it reads "**No connected external services yet.**" The Connectors card on the agent's Overview counts the agent's custom MCP servers together with the personal services you have connected (a connected service your organization has blocked stays listed but is not counted), so its number can differ from what another member sees.
### Choosing which flows the agent uses
An attached Jinba Flow workspace exposes **all** of its published flows to the agent by default. Each workspace's flow list opens inline in the Flow section (every workspace starts unfolded); use the chevron to fold or unfold it, or select the workspace name to open the same controls one level deeper in the configuration panel. The list is a checklist headed by a "**Use the whole workspace**" box: untick the flows this agent should not call to narrow what it can use.
* The flows keep their order as you tick and untick them. Unticking "Use the whole workspace" clears every flow; ticking it again — or ticking every flow by hand — puts the workspace back on the whole-workspace setting
* Nothing changes until you press "**Save**" — "**Revert**" discards the edits. A note reads "**Takes effect from the next chat once saved**," but a saved selection also reaches the agent's open chats from their next message, and a flow you untick is refused even in a reply already under way
* Saving with nothing ticked is allowed, but the table warns you first: "**Nothing is selected. The AI will not see any flow from this workspace.**"
* Flows that have not been synced yet show "**Selectable after the next sync**" — refresh the connection to make them selectable. While the list is narrowed, flows published later are **not** added automatically; tick them when you want the agent to use them. Only the whole-workspace setting picks up new flows on its own
* The selection is **per agent, per connection**: the same connected workspace can expose a handful of flows to one agent and everything to another
In that agent's chats, the composer follows the selection — the `#` picker and the "+" menu's Flow list offer only the selected flows ([Composing messages](/en/pages/jinba_app_neo/chat/composer)). If the AI is asked to run an excluded flow, it explains the flow is excluded and that it can be added from the agent's Flow settings.
## Attaching knowledge
Open the **Knowledge** section of the configuration panel and click "Add knowledge."
* **Attach files individually; sync folders wholesale** — setting a folder to "auto-sync" means files added to the folder later are automatically reflected in the agent
* Search and select workspace files and folders, or drag and drop files right there to add them (pasting URLs is supported too) — files and URLs added this way become agent-specific material
* "**Import from Notion**" at the bottom of the picker registers Notion pages as agent-specific knowledge. It opens the "**Add knowledge (this agent only)**" dialog, where you paste the page URL and choose a destination folder
The Knowledge section shows each item's sync status, size, and how many agents use it — the same information as the **Knowledge** tab of Customize. A file row's "…" menu offers "**Preview**" and "**Download**" (the stored original — for the agent's own files and for files the workspace shares with it alike; an item with no stored file yet has no Download entry) ahead of the remove action described below. Agent-specific folders offer the full folder menu (add source, create subfolder, rename, move, delete) and drag-and-drop moves within the agent's scope; folders mirrored from the workspace stay read-only, and auto-synced folders offer "**Remove from this agent**" only.
> [!NOTE]
>
> The AI sees the agent's knowledge as a list and reads an item when it needs it. When it runs code, only a limited number of those files are also placed in its work environment; sources beyond the limit show "**Auto-load off**," but the AI can still search for and read them. See [Organize knowledge](/en/pages/jinba_app_neo/knowledge/organize) for details.
## Detaching
Remove attachments from the list in each section — for skills, from the row's "…" menu ("**Remove from Agent**" for a workspace-shared skill, "**Delete**" for an agent-only one). In the Knowledge section, the action depends on where the item lives: a workspace-shared item shows "**Remove from agent**" — the source itself stays in the workspace and can be re-added later — while an agent-specific item shows a red "**Delete**" with a confirmation, and deleted agent-specific resources cannot be restored. Bulk selection adapts the same way ("Remove from agent" / "Delete selected"; a mixed selection shows "**Delete / remove**" with a single confirmation covering both).
# Create an agent
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/create
How to create a new agent and what each setting does
## Steps
**1. Open the Agents page**
Select "Agents" in the sidebar and click "**New agent**."
**2. Enter the basics**
* **Name** (required) — e.g., Sales Analyst, up to 120 characters. A name an existing agent already uses is rejected (case-insensitive); the same check applies when renaming later
* **Description** — a one-liner describing this agent's role, up to 2,000 characters
* **Model** — the Claude model this agent's chats use
* **System prompt** (optional) — behavior, tone, and constraints, up to 50,000 characters. If left blank, the default system prompt is used
Each text field shows a live "**n / max characters**" counter, and the same limits apply when editing the agent later.
> [!TIP]
>
> Enter a name and press "**Auto-generate**" to have the AI draft a description and system prompt from what you have entered so far.
**3. Create**
Press "Create" to create the agent and go to its detail page. Next, attach skills, connectors, and knowledge ([Attach resources](/en/pages/jinba_app_neo/agents/attach)).
## Creating from chat
You can also create an agent without leaving chat. In a chat with no agent selected, just ask — "Create an agent for sales analysis" — and the AI drafts the setup and shows an "**Agent creation proposed**" card.
* Review the name, description, model, and system prompt on the card
* Press "**Create**" to create the agent, or "Dismiss" to pass — nothing is created until you approve
* Use the "**Open**" link on the card to jump to the new agent's detail page and continue setup
* The created agent appears in the sidebar's agent list right away
## Notes on choosing a model
> [!WARNING]
>
> A model change applies **from the next message**, including in the agent's existing chats (a chat where a model was picked in the composer keeps that model, as do [older chats](/en/pages/jinba_app_neo/chat/overview#older-chats)). Since a switch mid-conversation can change the response style, we recommend sticking with the model chosen at creation time.
| Model | Best for |
| - | - |
| Claude Opus 5.5 | Complex reasoning and multi-step agentic tasks |
| Claude Sonnet 5.5 | Most business tasks (default) |
| Claude Haiku 5.5 | Quick lookups and summaries |
Older generations (Claude Opus 5 / Claude Sonnet 5 / Claude Haiku 4.5, and Opus 4.8 / Sonnet 4.6 before them) are not offered when picking a model, and an agent saved on one is not left there: its chats run on the newest generation of the same line (an agent saved on Claude Sonnet 4.6 answers with Claude Sonnet 5.5), the model setting shows the model it now runs on, and saving the form without touching that setting does not count as a change. There is nothing to act on.
## Writing a system prompt
Put in the system prompt anything you always want the agent to follow.
* **Role**: "You are an analyst responsible for sales data analysis"
* **Tone and language**: "Always respond in polite, formal Japanese"
* **Constraints**: "Always cite a source for every number"
* **Procedures**: routine workflows
> [!NOTE]
>
> Your prompt is layered on top of the platform's base prompt, not a replacement for it. It wins on role, style, tone, and format, while platform behavior (tool usage, memory, file handling, confirmation before destructive actions) still applies — no need to restate any of that. The response language changes only if you say so explicitly (e.g., "always answer in English"); writing the prompt itself in a given language doesn't change it.
> [!TIP]
>
> For concrete procedures you want to reuse, register them as a [skill](/en/pages/jinba_app_neo/skills/overview) rather than writing them into the system prompt. Skills can be shared across agents and can receive update suggestions from chat.
## Setting an avatar
From the Settings section of the agent's configuration panel, you can upload an avatar image (PNG / JPEG / GIF / WebP, up to 2 MB). It helps you identify the agent in lists and chat screens.
## Built-in document creation skills
Every agent supports creating PowerPoint (.pptx), Word (.docx), Excel (.xlsx), and PDF documents out of the box. No extra setup is required. The PowerPoint engine is also listed as **Slide creation** on the **Skills** tab of Customize, so you can pick it in the composer like any other skill ([Composing Messages and Attachments](/en/pages/jinba_app_neo/chat/composer)).
# Operate and manage agents
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/manage
Version history, archiving, and deletion
The **Settings** section of the agent's configuration panel (the gear icon on the detail page) covers the administrative operations you need for day-to-day use.
## Changing settings
* You can change the name, description, model, and system prompt
* Renaming to a name an existing agent already uses is rejected (case-insensitive). The name, description, and system prompt are capped at 120 / 2,000 / 50,000 characters, with a live counter under each field
* If a save fails, the message names the cause — a field over its limit, a duplicate or missing name, an archived agent, a model that is no longer offered, or a connection problem — so you know what to fix before trying again
* "Auto-generate" regenerates the description and system prompt from the current inputs, written in the app's display language rather than the language the agent's name happens to be in. It needs a name: while the name is blank the button is disabled, and hovering it reads "**Enter a name to auto-generate**"
* The creator and last-updated timestamp are shown in the "Info" section
> [!WARNING]
>
> A model change applies from the next message, including in the agent's existing chats (not [older chats](/en/pages/jinba_app_neo/chat/overview#older-chats)) — the field's hint reads "**Changes take effect from the next message, including in this agent's existing chats. Chats with a model picked in the chat keep that model.**" Saving asks for confirmation first ("**Change model**"), since a chat that switches models mid-conversation may change its response style and quality.
## Changing settings from chat
While chatting with an agent, you can also ask it to change its own settings — "make your tone more formal," "switch your model to Haiku." The AI shows a "**Settings change proposed**" card with the changes (including a system prompt diff) and applies them only when you press "**Apply changes**." They take effect from your next message, in this chat too.
Sharing changes can be proposed from chat too — see [Share an agent](/en/pages/jinba_app_neo/agents/sharing). Lifecycle operations — deleting or archiving the agent — and erasing its memory are deliberately **not available from chat**: if you ask, the AI directs you to the agent's settings screen or Memory section instead. See [In-Chat Forms and Suggestions](/en/pages/jinba_app_neo/chat/interactive-cards) for the full list of cards.
## Version history
Changes to settings such as the system prompt are recorded as **version history**.
* Open "Version history" in the Settings section to list past versions
* You can view the diff of the system prompt for each version
* Use "**Restore**" to roll back to a previous version
## Duplicating
"**Duplicate**" builds a new agent from an existing one. It sits in the "…" menu on each card or row in the agent catalog, and in the "**Duplicate agent**" card of the Settings section.
* Anyone who can **see** the agent can duplicate it — including an agent shared with you and an agent opened from another workspace because it is shared org-wide. Archived agents cannot be duplicated
* The copy is created in **your** workspace as **your private agent**; the original's sharing settings are not carried over
* The name defaults to "\ (copy)" and can be edited in the dialog before you confirm. Duplicating your own private agent skips the dialog and copies straight away
* Workspace-shared skills, knowledge, and connectors stay linked to the shared originals, so the copy keeps receiving their updates. Resources that belong to the agent alone are copied as they are at that moment and stop tracking the original
* Duplicating an org-shared agent from another workspace copies the attached skills and knowledge — **the workspace-shared ones included** — into your workspace as material of your own, so nothing stays in sync. Custom MCP connections are not carried over in this case; set them up again on the copy. Because files are copied into your workspace, this kind of duplicate is refused while your organization is at its storage limit: "**Your organization's storage limit has been reached — the agent couldn't be duplicated. Please contact your administrator.**"
* **Memory and chat history are not carried over.** Jinba Flow connections are copied, but using them still requires your own Jinba Flow access, and the agent's own MCP server settings, which hold credentials, are not carried over (the dialog says so when it applies)
Once the copy is created you land on its detail page.
## Archiving
Archive agents you are not using for the time being.
* Archived agents **cannot be selected for new chats**, but past chats remain viewable
* Settings and sharing cannot be changed while archived (the sharing scope stays visible as read-only): the fields and buttons of the Settings section are disabled, and hovering one explains why — "**Archived Agents cannot be edited. Unarchive it first.**" Unarchive first if you need to make changes
## Deletion
Delete an agent from "Danger zone" in the Settings section. Deletion happens only on this screen — it cannot be performed from chat.
> [!WARNING]
>
> Deletion also removes the version history and audit log, and cannot be undone. Associated chats are not deleted — they are unlinked and remain in your history as standalone chats. A scheduled task that runs on the agent is disabled the next time it tries to run ([Scheduled tasks](/en/pages/jinba_app_neo/tasks/overview)). Workspace-shared skills, connectors, and knowledge that were attached to the agent are only unlinked and stay in the workspace; agent-only ones ("This agent only" skills, agent-only connections, agent-only knowledge) are deleted together with the agent and cannot be restored.
# Agent memory
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/memory
How agents learn from conversations, and how to manage what they learn
Each agent has an **agent memory** where the AI notes procedures and caveats learned from conversations with that agent. Manage it in the **Memory** section of the agent's configuration panel.
> [!NOTE]
>
> **Personal memory**, which stores your individual preferences, is managed separately. See [Memory (personal settings)](/en/pages/jinba_app_neo/settings/memory).
## How it works
* Once a chat with this agent has settled, the AI reads it back and writes down what is worth remembering. During the chat itself it writes only when you ask it to remember something
* What it writes down is **shared with everyone who uses this agent**
* A chat that settles after you turn learning on can be read including the exchanges from before you turned it on
* In chats started without an agent, only your personal memory is consulted (an [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats) also reads the memory of agents available to you, read-only)
## Turning learning on and off
Use the "**Learn from chats (shared with everyone who uses or edits this agent)**" switch in the Memory section.
* Turning it off stops new entries from being written (existing memories remain and are still recalled in chats)
* You can also ask from chat — "turn off this agent's memory" — and the switch flips only when you approve the confirmation card
## Viewing and managing memories
The Memory section lists everything this agent has learned.
* Members with edit permission can **edit or delete each entry individually**, or delete every entry at once with "**Delete all**" (a confirmation is shown; this cannot be undone)
* View-only members ("Use only" permission) can read the entries but not change them
Erasing memory — a single entry or all of it — happens only on this screen. Asking from chat will direct you here instead.
> [!TIP]
>
> Agent memory works like a team-shared handover note. If the AI learns something incorrect, fix it by editing or deleting the entry.
# Agents overview
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/overview
What agents are and how to use them by purpose
An **agent** is a conversation partner that bundles skills, connectors, and knowledge. Create several in a workspace and switch between them by purpose.

## What an agent has
| Component | Description |
| - | - |
| **Model** | The Claude model that generates responses (Opus 5.5 / Sonnet 5.5 / Haiku 5.5) |
| **System prompt** | Instructions for behavior, tone, and constraints |
| **Skills** | Attached playbooks and instructions |
| **Connectors** | Attached external service integrations (jinba-flow, MCP) |
| **Knowledge** | Attached reference material |
| **Memory** | What the AI has learned from conversations with this agent (shared by everyone who uses it) |
## Agent list
Open the workspace's agent catalog — headed "**Agents**" — from the sidebar's "Agents" entry.
* **View toggle** — grid / list
* **Sort** — recently used / creation date / name
* **Search** — filter by name
* **Pinning** — the pin toggle beside each row's or card's "…" menu pins a frequently used agent for quick access from the sidebar; the icon stays filled while it is pinned. "**Pinned first**" puts pinned agents at the top of the catalog
The view, sort, and "Pinned first" choices are remembered on the device you are using, so the catalog comes back the way you left it. A link that carries an explicit view or sort in its URL wins over the remembered choice.
## Agent detail page
Selecting an agent opens its detail page — a chat surface for that agent where you start new chats and revisit past ones. Press the **gear icon** in the header to open the **configuration panel** on the right (it can be resized by dragging its edge), organized into sections:
| Section | Contents |
| - | - |
| **Skills** | Attach or create skills |
| **Flow** | jinba-flow workspace connections |
| **Connectors** | Custom MCP servers and other connectors |
| **Knowledge** | Attach knowledge or register agent-specific material |
| **Memory** | View and manage agent memory |
| **Settings** | Name, description, model, system prompt, avatar, version history, duplicate, archive, and delete |
The `‹` chevron beside the agent's name always goes **up to the agent catalog**, whichever screen you arrived from — use your browser's back button to retrace your steps instead.
Each section card shows a count and a short preview of what is attached. Click the card header ("Manage" / "Edit") to open the section, or click a preview row to jump straight to that item. The panel state — which section and item you have open — is reflected in the page URL, so it survives reloads and can be shared with teammates as a link.
## Permissions
* An agent's settings can be changed by its **creator**, a **workspace owner**, or members granted "Edit too" permission when the agent was shared
* Members with "Use only" permission can chat with the agent but cannot change its settings
## Next steps
> [card] [Create an agent](/en/pages/jinba_app_neo/agents/create)
>
> Setting the name, model, and system prompt — with auto-generation
> [card] [Attach resources](/en/pages/jinba_app_neo/agents/attach)
>
> How to attach skills, connectors, and knowledge
> [card] [Share](/en/pages/jinba_app_neo/agents/sharing)
>
> Configuring sharing scope and permissions
> [card] [Operate and manage](/en/pages/jinba_app_neo/agents/manage)
>
> Version history, archiving, and deletion
# Share an agent
Source: https://docs.jinba.io/en/pages/jinba_app_neo/agents/sharing
Configuring sharing scope and permissions
Agents you create can be shared with other members of the workspace. Configure sharing from the Sharing chip on the agent detail page.
## Sharing scope
One picker answers "who can use this agent."
| Scope | Description |
| - | - |
| **Just me** | Only the creator can use it (default) |
| **Named individuals** | Only the people you pick can use it |
| **Entire workspace** | Every member of the workspace can use it |
| **Entire organization** | Every member of every workspace in the organization can use it, and the knowledge attached to it becomes readable org-wide. Editing stays with the workspace the agent lives in |
## Permissions for people you share with
Along with the scope, choose what the people you share with can do.
| Permission | What it allows |
| - | - |
| **Use only** | Chat only. No changes to settings |
| **Edit too** | Chat, plus changes to settings and attached resources |
## Sharing with the whole organization
"**Entire organization**" sits in the same picker as the other scopes, but saving it hands over to a confirmation step rather than saving directly: the dialog explains that everyone in your organization will be able to view and use the asset, and that you can stop sharing at any time. Whether the share also needs an administrator's decision depends on your organization's settings.
* Once it is in effect the agent's header carries a "**Shared**" chip, and the agent appears in the agent list of every workspace in the organization
* **Stopping the share uses the same picker** — choose another scope and save, and the agent drops back to that scope; members outside this workspace lose access
* The **permission** cannot be changed while the agent is shared with the organization. The dialog says as much: stop the share first, then change it
* Some organizations allow only owners and admins to share across the organization. Where that applies, the scope is shown but cannot be selected, and the picker explains why — including while a share application of yours is still being reviewed
* Org-wide sharing is offered only in the workspace where the agent was created, only to members with edit rights, and not while the agent is archived
Organization owners and admins see everything shared this way under "**Shared assets**" in [Organization settings](/en/pages/jinba_app_neo/settings/workspace), where they can stop a share (the reason is recorded) or share it again. Deleting the asset itself closes its share and any pending application automatically, recorded as "**Stopped — the asset was deleted**."
> [!NOTE]
>
> Once you edit an agent that is shared org-wide, the header adds "**Shared version differs from your latest edits**." Everyone keeps chatting with the current agent — the note is a record-keeping marker, which an administrator clears with "**Update shared version**" under Shared assets.
## Proposing sharing changes from chat
While chatting with an agent, you can also ask it to change its own sharing — "share this agent with everyone in the workspace." The AI shows the change (current scope → new scope) on the "**Settings change proposed**" card, and nothing changes until you press "**Apply changes**." Unlike other settings, an approved sharing change takes effect **immediately**.
* Sharing changes — from chat or on-screen — can be applied only by the agent's **creator** or a **workspace owner**
* Chat can only move the agent between "**Just me**" and "**Entire workspace**." "Named individuals" and "Entire organization" — including stopping an organization share — stay on the sharing screen, so an organization share always goes through its own flow and whatever review it requires
## What "Use only" members see
* The agent carries a "**View only**" badge in the agents list
* The configuration panel stays fully browsable, but read-only: a bar reads "**Shared with you for use — this configuration is view-only.**" and section actions show "View" instead of "Manage / Edit"
* Jinba Flow connections show which workspaces are connected, but the individual flow list is visible only to members of the workspace that owns the connection
## Things to keep in mind
* Members you share with can use the skills, connectors, and knowledge attached to the agent — **through that agent**. They never see the connector credentials themselves
* Agent memory (what the AI learns from conversations) is **shared by everyone** who uses the agent. See [Agent memory](/en/pages/jinba_app_neo/agents/memory) for details
* An agent shared with the whole organization always reads its knowledge in **the workspace it lives in**. Whichever workspace you chat from, both the knowledge you mention in the composer and the material the AI looks up itself come from the agent's own attached knowledge — never from your workspace's catalog
* If you stop sharing, those members can no longer open their chats with that agent — and a conversation that is already open cannot be continued either
* Workspace members who are not members of the organization (guests invited from outside it) do not see agents shared with "Entire organization"
* Sharing settings cannot be changed while the agent is archived — unarchive it first. The current scope stays visible as read-only
# AI Activity and the Workspace Panel
Source: https://docs.jinba.io/en/pages/jinba_app_neo/chat/agent-activity
How to read the AI run status, review outputs and the console log in the workspace panel, use the preview toolbar, and save deliverables to Knowledge or Notion
In Jinba App Neo, the AI works inside an isolated session environment for each message, performing file operations, code execution, web search, and more. This page explains how to follow what it is doing.
## Run status
The AI's status is shown in the message area in real time.
| Indicator | Meaning |
| - | - |
| Connecting... | Starting the session |
| Thinking... / Reasoning... | The AI is working out its answer or plan of action |
| Running tool | Executing a Connector tool, code, or similar |
| AI running | Work is in progress (changes to "Done" when finished) |
While the status reads Thinking…, a one-line "**Tips:**" hint about using Jinba App may appear beneath it. It changes a few times over a long wait and disappears once the answer starts; hovering pauses it, and the ✕ ("**Hide tips**") hides tips for the session — turn them off for good under "**Tips while you wait**" in [Personalize settings](/en/pages/jinba_app_neo/settings/appearance).
Each step in the activity timeline is named in plain language rather than by its tool name. A step whose label is still being prepared shows "**preparing**" beside the name; a tool that offers no readable name at all reads "**Working…**" while it runs and "**Ran a step**" once it is done. Raw tool names and commands stay in the Console log.
## Interrupting a run
While the AI is running, a "**Stop**" button is shown. Click it to stop processing at any time. An interrupted chat records "AI execution was interrupted", and you can send follow-up instructions from there.
## The workspace panel
Use the "Workspace" toggle in the chat screen to open a side panel showing what the AI has been working on.
The panel shows **one thing at a time**. The preview takes a pane of its own beside the chat, and the tab rail on the right edge opens one list at a time next to it.
| Pane | Contents |
| - | - |
| **Preview** | The item you picked, rendered in place — Office documents (.docx / .xlsx / .pptx, and the legacy .doc / .xls), PDFs, images, HTML, diagrams, CSV / TSV tables, code, and text |
| **Files** | Everything this chat produced or read. Search it by name, narrow it with "**All**" / "**Deliverables**" / "**References**" / "**Code**", and take the lot with "**Download all (ZIP)**." Selecting a row previews that file |
| **Console log** | The commands the AI ran and their output |
| **Configuration** | In a chat bound to an agent, that agent's configuration panel — the same one its own page shows |
* Drag a pane's edge to resize it. "**Expand to full width**" gives the preview the whole chat width and "**Restore size**" hands it back — if there is no room to bring the chat back, the control tells you to widen the window or close a pane instead of leaving you stuck
* The rail remembers which list you had open, so reopening the panel returns you to it
* On a narrow window (roughly 970 px and below) the panel keeps its earlier form: a single drawer with **Results**, **Files**, and **Console log** tabs, which can also be switched to full screen
> [!NOTE]
>
> Browser view (a live view of the AI's browser operations) is coming soon.
### The agent's configuration, from the chat
A chat bound to an agent carries a "**Configuration**" tab in the rail, alongside Files and the Console log. It opens the same configuration panel as the agent's own page — model, skills, knowledge, connectors — so you can check or adjust a setting without leaving the conversation.
* The rail keeps one pane open at a time: opening Configuration closes Files or the Console log, and the other way round
* Clicking a skill or knowledge chip inside the panel drills into that item's details in place
* A note sits at the top of the panel: "**Config changes take effect in new chats, not this conversation (knowledge is picked up immediately).**" In practice a saved change reaches this conversation from your next message (knowledge right away); an [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats) may keep the settings it started with
* An ad-hoc chat has no agent to configure, so it does not get the tab
### The preview toolbar
Everything that opens in the preview — a deliverable, a knowledge file, a flow's output file — carries the same toolbar. Each format contributes only the controls its viewer supports, so a plain text file shows far fewer of them than a PDF.
| Control | What it does |
| - | - |
| **Zoom level** | The percentage opens a menu of zoom presets with "**Fit width**" and "**Whole page**" ("**Reset zoom**" for a format with a single fit). In the chat's preview pane and the expanded preview the menu also holds "**Zoom in**" / "**Zoom out**"; elsewhere they sit beside the percentage |
| **Previous page / Next page / Go to page** | Paging, for formats that have pages |
| **Search in document** | Finds text inside the file, with previous / next match and a "No matches" state |
| **Download** | Saves the file. A rendered format also offers "**Download source file**," and a diagram offers "**Export**" (SVG / PNG / source for Mermaid, SVG for draw\.io) |
| **Save** | Keeps the file in Knowledge or Notion — see below |
| **Select & ask** | Point the AI at one part of the preview — on a PDF, PowerPoint, Word, Excel, CSV / TSV, draw\.io, or HTML file. See below |
| **File details** (i) | Type, size, folder, when it was last updated and by whom, and how many agents use it. Sync status sits just before it as a chip |
| **Expand preview** | Reopens the same preview full screen, with the file name and the close (×) at the two ends of its single toolbar row; a slide deck is fitted to the width |
In the chat's workspace panel the toolbar shares one row with the file name at the top of the preview. When the panel is narrow, "**Select & ask**", "**Save**", and the reload button move into a "**More**" menu, and below that the page counter and its arrows are dropped — widen the panel or use the expanded preview to change pages.
PDFs open in the app's own viewer, with zoom, paging, in-document search, and text selection. Mermaid files (`.mmd` / `.mermaid`) render as diagrams rather than as their source — the same viewer chat messages use for diagrams, so zoom, pan, and export work on them too. draw\.io files (`.drawio`, and an `.xml` file whose content is a draw\.io diagram) render as diagrams as well: a file with several pages is paged from the toolbar, `Ctrl` (`⌘` on Mac) + scroll or a trackpad pinch zooms up to 400%, and the download menu exports the page on screen as SVG. PowerPoint (.pptx) and Word (.docx) previews also zoom with a trackpad pinch or `Ctrl` (`⌘` on Mac) + scroll, from 10% to 400% — plain scrolling keeps behaving as before (in a pptx, it moves through the slides). In an Excel (.xlsx) preview, "Search in document" (or `Ctrl` / `⌘` + F) runs across **every sheet** in the workbook, not just the one on screen — jumping to a hit switches to that sheet and selects the cell; a large workbook shows "**Searching…**" while it scans and can report a "**Partial search**" until it finishes. Legacy Word and Excel files (`.doc` / `.xls`) open in the same viewers as their modern counterparts; PowerPoint 97-2003 (`.ppt`) is still download-only.
A `.csv` or `.tsv` file is shown as a table with a sticky header row and row numbers — the delimiter follows the file extension, and the first row is always read as the header. Only the first 2,000 rows are drawn (fewer for a very wide file), and a notice such as "**Showing the first 2,000 of 5,400 rows.**" tells you when the file goes on. The table has no zoom, paging, or search controls of its own; "Select & ask" (below) is the one toolbar control it adds.
### Select & ask
"**Select & ask**" in the toolbar lets you point the AI at one part of what you are looking at instead of describing it. Press it (it reads "**Selecting…**" while armed) and a band under the toolbar tells you what to do in that format — "**Drag around the part you want the AI to look at**" on an HTML page, for example. Make a selection, and a context card lands above the composer — a chip reading "**Selected: …**" — to be sent ahead of your next message. Whenever the area can be captured, the card also wears a **picture of what you selected** as its background, and that picture is attached to your message alongside the quoted text; if it cannot be captured, the text goes on its own. Type what you want done with that part and send. Remove a card with its ✕ ("**Remove pasted text**"). The mode stays armed after a selection, so you can point at several places in a row; leave it with the ✕ at the end of the band ("**Exit Select & ask**") or by pressing the toolbar button again. While it is armed, the toolbar's download, save, and expand controls are dimmed and cannot be used.
* **HTML** — drag a rectangle over the rendered page (an HTML file you uploaded or attached works the same way as one the AI wrote). The text blocks the rectangle touches (headings, paragraphs, table rows) are named in the card as "\[Selected area: index.html: …]". A plain click selects nothing
* **PDF** — drag over text to quote it; the AI gets the text, stamped with the page ("\[Selected area: report.pdf p.3: …]"), and a picture of the passage. A drag that starts on blank paper draws a rectangle instead, and that area is sent as a picture with its page number, without the text — use it for a chart or a scanned page
* **PowerPoint** — click a slide to quote all of it, or drag over part of it to quote just that part; the card names the slide ("slide 4")
* **Word** — select text as you would in any document. The paragraphs your selection touches are quoted from their start (a table row as one entry; a very long one is cut short), up to 40 of them, and the card is captioned with the heading they sit under when there is one
* **Excel** — drag over cells. The values are quoted as a small table with column letters and row numbers, stamped with the range ("\[Selected area: sales.xlsx Sheet1!B2:D10: …]"). At most 40 rows by 20 columns are read, from the top-left of the selection, and long values are cut short
* **CSV / TSV** — select rows. Each row you touch is quoted from its first cell (long cells and long rows are cut short), with the header row ahead of them and the row span as the stamp ("rows 3–7"), up to 40 rows
* **draw\.io** — click a shape, or drag around several. Their labels are quoted (a connector as "A → B"), stamped with the page name when the file has more than one page
In the expanded (full-screen) preview, selections are held instead of landing one by one, because the dialog covers the composer: once you have selected something, an "**Ask about selection**" button ("**Ask about 3 selections**" when there are several) appears at the right end of the dialog's toolbar, beside the ×. Press it to close the preview and place the cards above the composer in the order you made them. Closing the preview any other way discards them. Up to 20 context cards can wait above the composer at once.
## Receiving generated files
When the AI creates files, they are listed in the message under a "**Deliverables**" heading, one row per file: the format icon, the file name (a well-known extension is dropped from the name — the full name shows on hover), and a second line reading kind · format · size, such as "Document · PDF · 2.7 KB". Click anywhere on the row to open the file in the preview; the **bookmark** saves it to Knowledge or Notion (below) and "**Download**" saves it to your computer. Word (.docx / .doc), Excel (.xlsx / .xls), PowerPoint (.pptx), and PDF files render as previews; a format with no viewer (`.ppt`, archives, and the like) opens the preview on a download link instead. Images appear as thumbnails rather than rows — click one to open it full size.
An HTML file the AI creates runs live in the preview — buttons, page navigation, and other scripts work as they would in a browser. It opens behind a "**Preview**" / "**Code**" toggle in the panel's header, follows the AI's edits while the reply is still being written, and the closed panel opens onto it by itself the first time the AI writes such a file; a page the sandbox cannot run (module scripts, TypeScript sources) opens on the Code tab instead. This live view has the same "**Expand preview**" control as other previews, available as soon as there is a page on screen — including while the AI is still writing it; the control is dimmed only while the file's bytes are not on hand (still loading, failed to load, or too large to show), when it reads "**Expand preview (available once the file is shown)**". The expanded dialog shows the same page as the panel and follows the AI's edits, keeps the Preview / Code switch and Select & ask, and has its own tab choice — switching the dialog to Code leaves the panel on Preview. Every other HTML file opened in the preview — one you uploaded or attached, a Knowledge file, a reference the AI read, a file on a flow-run card — runs its scripts too, in the same sandbox: the page has no access to your cookies or app data and cannot fetch data over the network while it runs, so a dashboard that loads its data at runtime stays empty, while the script libraries, stylesheets, fonts, and images it links to still load. Only the Preview / Code toggle is reserved for HTML the AI wrote in this chat; Select & ask works on any HTML file in the preview.
## Files the AI reads from Google Drive
When the AI reads a file from Google Drive during a chat, a copy is kept with the chat so you can see exactly what it read. These files appear in the message under a "**References**" heading — separate from Deliverables — and in the Files pane under the "**References**" filter, and they open in the preview like any other file.
* Google-native formats are converted for preview: Docs open as Word (.docx), Sheets as Excel (.xlsx), Slides as PowerPoint (.pptx), and Drawings as PDF. Regular files such as PDFs, images, and Office documents are kept as they are. Files on shared drives are covered too
* The copy is made with **your own Google Drive access**, and files over 25 MB are not copied — the AI's answer itself is unaffected either way
* A reference can be saved to Knowledge from its row, just like a deliverable. Reading a file never opens the workspace panel on its own, and references are not offered as file inputs to flow runs
## Skills the AI referenced
When a reply drew on one of the agent's skills, a "**Referenced skills**" row appears at the foot of the reply, next to the "**Referenced documents**" row that lists the knowledge it read, with one chip per skill. Click a chip to open that skill — in an agent chat it opens in the agent's configuration panel, elsewhere as a read-only skill view. The step in the activity timeline that loaded the skill is named after it too: "**Referenced the skill "…"**". The row records that the skill was read, not that every instruction in it was followed. A skill provided by Jinba, such as **Slide creation**, appears in the row under the name the Skills tab gives it; its chip — like its chip in a message where you picked it yourself — opens that skill's read-only page in a drawer beside the chat. The Word, Excel, and PDF document engines never appear in the row.
## Knowledge files the AI points you at
When the AI refers to a file in the agent's knowledge, it renders it in the reply as a clickable card labelled "**Knowledge**," carrying the item's title and type icon. Click the card to open the original in the preview; items with no file behind them, such as a URL or a Notion page, open their knowledge details instead. Ask for something explicitly — "open the price list" — and the preview opens on its own.
Only knowledge the agent is allowed to read becomes a card, so a card never points at material you cannot open.
## Pages the AI links to
When the AI points you at a screen — the Connectors page, an agent, a skill — it writes a clickable link to that page **in this workspace**, so following it lands you in the right place. Screens your workspace cannot open are never linked.
## Saving generated files to Knowledge or Notion
Deliverables can be saved to a permanent home without downloading and re-uploading. Click the **bookmark icon** on a deliverable card (or "**Save**" in the preview toolbar — use this for images, which have no card bookmark) and choose a destination:
* **Knowledge** — save the file as a knowledge source, under "**Workspace knowledge**" or "**Agent knowledge**." The agent option carries its own picker offering every agent you can edit — the chat's own agent is preselected, but you can target any of them, and the option appears in agent-less chats too. For workspace knowledge, pick the destination with the built-in folder browser (the folder you are currently viewing is where the file is saved)
* **Notion** — export the file to a Notion page you search for and select (requires the [Notion personal connector](/en/pages/jinba_app_neo/connectors/personal-connectors); if it is not connected, the menu shows a Connect link)
The name field is pre-filled with the file name. If a knowledge item with the same name already exists, nothing is overwritten silently — rename the file, or explicitly choose "**Overwrite and save**." The dialog cannot be closed while a save is in flight, so its outcome — including that note — always shows in it. After a save completes, the bookmark stays lit as "Saved" for the rest of the session.
The AI may also offer to save a deliverable for you via a "**Save to knowledge proposed**" card — see [In-Chat Forms and Suggestions](/en/pages/jinba_app_neo/chat/interactive-cards).
## When a run takes a long time
If a tool run through a Connector is slow to respond, a hint message is shown. If a jinba-flow integration leaves no run history on the jinba-flow side, check that the MCP URL is reachable from Jinba App Neo's servers — `localhost` and internal-only hostnames cannot be reached.
# Composing Messages and Attachments
Source: https://docs.jinba.io/en/pages/jinba_app_neo/chat/composer
Using the composer — sending, reference pickers, and file attachments
## Sending messages
* **`Enter`** sends the message; **`Shift + Enter`** or **`⌘ + Enter`** (`Ctrl + Enter` on Windows) inserts a line break
* The Enter that confirms a text conversion in IME-based input (such as Japanese) never sends
* You can switch the send key to `⌘ / Ctrl + Enter` under "**Sending messages**" in [Personalize settings](/en/pages/jinba_app_neo/settings/appearance); in either mode, the Enter combination that is not the send key inserts a line break. The keycap chip next to the send button shows the active key. On phones and tablets, Return inserts a line break — use the send button to send
* Messages sent while the AI is still working **wait their turn**: the text leaves the input box and sits above it as a pale bubble until the current reply ends. Up to **5** messages can wait — a sixth stays in the box with the note "**Up to 5 messages can wait — cancel one or wait for a turn to finish**" — and they go out **one per turn, oldest first**, so each reply finishes before the next message is sent. The ✕ on a bubble ("**Cancel queued message**") puts that message back in the box to edit or drop; "Stop" returns the whole stack. A message still waiting when you reload or close the tab is not sent from the closing page; it is back in the input box when you reopen the chat. When something other than the running reply is holding a message — a card waiting for your answer, an attachment still uploading or failed — a one-line notice in the box says so. The AI usually opens the reply by noting which of your messages it is answering
* When a send is refused — for example because the organization has reached its monthly usage limit — what you composed comes back into the box: the text, the reference chips, pasted cards and attachments (a message that was waiting in the queue comes back as text only). If the message had already been saved and only the AI's reply failed, it stays in the thread instead, so you do not need to send it again
* An `http://` or `https://` address you type becomes a clickable link in your own message bubble once it is sent, as in the AI's replies. An address inside code stays plain text
## Formatting
The composer formats **bulleted lists, numbered lists, inline code, and code blocks**. Typing the Markdown for them (`- ` or `1. ` at the start of a line, backticks for code) converts in place, or use the format bar: the "**Aa**" button in the composer's bottom row, near the send button ("**Show formatting**" / "**Hide formatting**") opens it above the text.
| Button | Shortcut (Mac / Windows) |
| - | - |
| **Bulleted list** | `⌘ + Shift + 8` / `Ctrl + Shift + 8` |
| **Numbered list** | `⌘ + Shift + 7` / `Ctrl + Shift + 7` |
| **Code** | `⌘ + E` / `Ctrl + E` |
| **Code block** | `⌘ + Option + Shift + C` / `Ctrl + Alt + Shift + C` |
| **Clear formatting** | `⌘ + \` / `Ctrl + \` |
* The button for the format the caret is in shows as pressed; press it again to leave that format. Hovering a button shows its shortcut
* The shortcuts work with the bar closed too. `⌘ + Shift + X` (`Ctrl + Shift + X` on Windows) shows or hides the bar, and whether it is open is remembered in this browser
* In a list, `Shift + Enter` starts the next item; on an empty item it leaves the list
* Pasted text arrives as plain text, without the formatting of the place you copied it from (backticks in it still turn into code)
## Reply suggestions
After the AI finishes responding, a predicted next reply may appear as gray ghost text in the empty composer.
* Press **Tab** to accept it; it is inserted into the composer for you to edit or send
* Start typing your own text and it disappears
* The suggestion is kept with the reply, so it is still waiting for you after a reload — and it is prepared even when the AI finished the reply while you were on another screen
## Reference pickers
Typing certain trigger characters in the composer opens a picker that lets you search agents, connectors, knowledge, and skills by name and embed them in your message as references.
| Trigger | What you can reference |
| - | - |
| `@` | **Agents** — pick the agent to bind this chat to |
| `#` | **Connectors** — a jinba-flow workspace connection, an individual flow, or a custom MCP server |
| `[[` | **Knowledge** — attach a registered file, or a whole folder as one reference |
| `/` | **Skills** — specify a skill you want the AI to use, including skills provided by Jinba such as **Slide creation** (marked "**By Jinba**") |
> [!TIP]
>
> Referencing a flow with `#` makes your intent — "run this flow" — unambiguous, so the AI picks the right tool without hesitation. We recommend using it liberally for routine work.
Flows in the `#` picker are organized by their jinba-flow folder structure — drill into folders, or just type to search across everything (results show the folder path). In a chat bound to an agent whose Jinba Flow connection is narrowed to some of its flows, the `#` picker and the "+" menu offer only those flows, and the counts reflect the selection ([Attach resources](/en/pages/jinba_app_neo/agents/attach)). The `[[` picker is a navigable folder tree too: "Add entire folder" attaches the folder's whole contents, subfolders included. In a chat bound to an agent, the tree is that agent's knowledge as it is organized in the agent's configuration panel — its own folders plus the workspace folders its attached items live in. For a workspace folder only partly attached to the agent, "Add entire folder" ticks the visible items one by one instead of attaching the whole folder.
Searches can include spaces, so multi-word names like "Weekly Report" match as you type. Letter case, full-width and half-width characters, and hiragana and katakana all match either way (AI finds "AI", カタカナ finds カタカナ, せーるす finds セールス) — the same rule applies to the other list searches in the app: the chat search, the agent, skill, knowledge, connector, and member lists, and the workspace switcher (searching inside an open document, such as a spreadsheet preview, is not covered). The picker closes on a line break, on two consecutive spaces, or when a spaced query no longer matches anything — and Esc closes it too. Selected references appear as chips and can be removed with the ✕.
## The "+" menu
The "+" button to the left of the composer offers the same references, plus attachments. Its rows — and the agent configuration cards — are ordered to match the sidebar, and each picker keeps its search box and an "**Add / manage …**" link at the top ("**Add / run flows**" for flows).
* **Select an agent** — bind the chat to an agent
* **Flow** — pick a jinba-flow connection, an individual flow, or a custom MCP server
* **Knowledge** — attach a registered file, or a whole folder as one reference
* **Skills** — pick a skill for the AI to use
* **Prompt templates** — start from a saved prompt
* **Attach file or image** / **Attach folder** — attach files, or a folder's contents in one go
On a wide window, choosing **Flow**, **Knowledge**, or **Skills** opens that picker as a panel beside the menu. On a narrow window (about 972 px and below — phones, tablets, and a narrow desktop pane) the menu is a single popup as wide as the message box, and the picker opens **in place of the list** with a back row along the top that reads as a path — "**All / Knowledge**", then the folder you have drilled into. Click the back row, press `Esc`, or press `←` in an empty search box to go up one level; `Esc` closes the menu only from its first screen (clicking outside closes it from any level). On those narrow windows a flow's or skill's description is shown as a second line under its name instead of in a hover card.
On a wide window, hovering over a flow — in the "+" menu's Flow list or in the `#` picker — shows what the flow will ask for before you pick it: an "**Inputs**" section lists each input by name with its description, marks required ones with "**(required)**," and names the accepted file types for file inputs. Up to 8 inputs are listed, with a "+n more" line beyond that; a flow that needs nothing reads "**This flow requires no inputs**," and one that carries no description of its own reads "**No description set**."
## File attachments
Attach documents or images you want analyzed.
* **Drag and drop** files or folders onto the composer, or choose from the "+" menu
* Attaching a folder (via "**Attach folder**" or drag and drop) attaches the files inside it individually — subfolders are included, but the folder structure itself is not preserved, and OS bookkeeping files such as `.DS_Store` are skipped automatically
* There are limits on the number of attachments per message and on file size (an error message will let you know if you exceed them)
* You cannot send until the upload finishes. Please wait for it to complete
* A failed attachment states the reason on its chip — an unsupported file type, over the size limit, an empty file, a server error, a network error, a timeout, or the organization's storage limit — and the **retry** button next to the ✕ re-runs that upload in place, so you never have to pick the file again
* An upload that takes longer than five minutes is given up and lands in that same failed state, so the send button is never left disabled with nothing you can do about it
> [!WARNING]
>
> Uploads fail if your organization has reached its storage limit. In that case, contact your workspace administrator.
> [!NOTE]
>
> Files registered in Knowledge are not attachments to your message. They stay available to the AI as standing reference material, but it does not act on them unless your request refers to them — when "this file" could mean either, it asks which file you mean.
## Pasting large text
Pasting a long text (roughly 2,000 characters or 40 lines and up) condenses it into a compact "**Pasted text**" card above the input instead of flooding the editor.
* Nothing is uploaded — the card's content is merged back into the message when you send
* Remove a card with the ✕; cards are kept with your draft if you navigate away
* Extremely large pastes (1,000,000 characters and up) are attached as a `pasted-text.txt` file instead
* A part of a preview you pick with "**Select & ask**" arrives as the same kind of card, labelled "**Selected: …**" ([AI Activity and the Workspace Panel](/en/pages/jinba_app_neo/chat/agent-activity)). Up to 20 cards can wait above the input at once
## Model and options
The bottom of the composer shows the **AI model** for this conversation as a menu. It starts on the agent's configured model when you select an agent, or on the workspace default in an ad-hoc chat; picking another model there applies from your next message and stays with this chat (hovering the menu reads "**The AI model used for replies. Applies from the next message.**"). The model that actually runs resolves in the order chat choice > agent > workspace default. An [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats) has no model menu here; its model is fixed for the conversation. Beside it, the "**Response quality**" chip switches between "**Standard quality**" and "**High precision**" — the latter re-works the answer before showing it, which is slower and uses your allowance faster; hovering a row in either menu explains the trade-off, and the choice stays on for the following sends until you switch it back. On a narrow composer the agent and quality chips fold into one "Options" menu.
## Selecting an agent
* Choosing an agent with the agent selector in the composer (or `@`) applies that agent's skills, connectors, knowledge, and memory to the conversation. The selector's list has a "**Search agents**" box and an "**Add / manage agents**" row that opens the agent catalog
* Choosing "No agent" gives you an ad-hoc chat
* On Home, picking an agent (with the agent selector, the "Options" menu, or `@`) that lacks a skill or flow already in the box as a chip is refused with the same message as Quick access ("**This agent can only use skills it has**" and its flow variants), and your previous choice stays
* You can also simply ask to talk to a specific agent, with or without an agent selected — the AI shows an **agent hand-off card** that starts a new chat with that agent ([In-Chat Forms and Suggestions](/en/pages/jinba_app_neo/chat/interactive-cards))
* You cannot switch agents after a chat is created. To use a different agent, start a new chat
# In-Chat Forms and Suggestions
Source: https://docs.jinba.io/en/pages/jinba_app_neo/chat/interactive-cards
Flow input forms, flow approval cards, multiple-choice questions, AI operation cards, connect cards, agent hand-off cards, agent setting proposals, scheduled task proposals, skill suggestions, and save-to-knowledge proposals
As the AI works, it may show input forms or suggestion cards in the chat. This page explains what each one means and how to respond.
Cards that propose keeping something for later — a skill, knowledge, a connector, or a new agent — open with a plain-language line describing what approving will do; the corresponding product term appears alongside as a label (for example "It will be saved as a Skill").
While the AI is waiting on a card that has scrolled out of view, a "**Go to the waiting card**" pill appears at the bottom of the conversation. Click it to scroll to the card, which is highlighted briefly so you can spot it.
## Flow input forms
When running a jinba-flow flow, the required inputs are shown as a form.
* Fill in the required fields (marked with `*`) and press "**Run**" to execute the flow
* Fields with an **AI inferred** badge contain initial values the AI inferred from the conversation. You can use them as-is or edit them
* An input the flow defines with fixed options is a dropdown or a set of radio buttons, and an optional one can be left at "**No selection**." An input that takes several options is a set of checkboxes or a list with a "**Search options…**" box, and accepts no more selections than the flow allows. A yes/no input can also appear as a checkbox or a switch. The flow decides which control appears, and the [Flow run console](/en/pages/jinba_app_neo/connectors/jinba-flow#flow-run-console)'s form uses the same ones
* File fields take an upload — choose or drop the file the flow needs, or pass a file generated earlier in the chat. A field the flow marks as multi-file accepts several files ("**Choose files**" / "**Add files**", up to 10); "Run" waits until the uploads finish
* Press "Cancel" to abandon the input
## Flow approval card
If a running flow reaches a step that waits for a person — an approval step (WAIT_FOR_APPROVAL) or a step that asks you a question — the flow-run card (the card that tracks a flow's run status in the chat) switches to "**Awaiting approval…**" and shows a form. Requests you can settle with a choice plus a comment (optional or required) are answered right on the card; if the step needs a form that chat cannot display, the card asks you to respond on the Jinba Flow side instead. See [jinba-flow integration](/en/pages/jinba_app_neo/connectors/jinba-flow) for how approvals work (comments, actions, and expiry).
## Multiple-choice questions
When the AI is unsure how to proceed, it may show a question card with options.
* While the AI waits for your answer, the card sits directly above the composer, and it returns to its place in the conversation once settled. You can also send a message instead of answering: when the question is the only card the AI is waiting on, the composer says "**The AI is waiting for your answer — answer the question above, or send a message to skip it.**" Sending skips the question, the card reads "**Skipped — you sent a message instead of answering.**" and the AI works from your message instead
* Choose one option per question (or several, when "Multi-select" is shown)
* If no option fits, pick "**Other**" and type a free-form answer (typing selects it automatically)
* When the AI asks several questions, the card shows them **one at a time**, with your position ("2 of 3") in its header. "**Next**" moves on, "**Skip**" leaves a question for later, and the arrows in the header ("**Previous question**" / "**Next question**") take you back to change an answer. "**Submit**" appears on the last question and sends every answer together; it stays disabled, with the note "**Some questions are still unanswered**," until each question has an answer
* "**None of these fit**" (the ✕ in the card's header) dismisses the question entirely (every question on the card, when there are several) — the AI won't re-present the same options and follows up a different way instead
* Once you answer, the AI resumes work and the card becomes a single line, "**Your answers were received**." It stays open showing each question with the answer you gave until the AI's next reply arrives, then folds; click the line to read your answers again
## Jinba AI operation card
When the conversation calls for jinba-flow operations and AI operation is off, a card may appear asking "**Let the AI operate your Jinba?**"
* Choose "**Enable**" and an "**Allow AI to operate Jinba**" dialog explains the scope; press "**Allow**" to let the AI list, create, and run Jinba flows on your behalf. This is a one-time, account-wide setting — you won't be asked again in any chat, and the AI resumes the original request right away
* Choose "Not now" to skip. You can turn it on (or off) later from the "**Let the AI create and edit workflows**" band at the top of the Flow page's list column
* If your organization's settings disable AI code execution, the card shows "**Unavailable — your organization's settings disable AI code execution.**" and cannot be enabled
> [!NOTE]
>
> Credentials (such as API keys) are never passed to the AI. For details on how it works, see [jinba-flow integration](/en/pages/jinba_app_neo/connectors/jinba-flow).
## Connect cards
When the conversation needs a service that is not connected yet — in a chat with or without an agent — the AI can offer to connect it right in the chat instead of sending you to the Connectors screen.
* **Connector connect card** — "**Connect Gmail?**" and the like for catalog connectors — Gmail, Google Calendar, Google Drive, Notion, Slack, Outlook, Microsoft Teams and, where your environment offers them, Google Docs, Google Sheets, OneDrive, SharePoint, and Excel. "**Connect**" opens the service's sign-in flow in a popup. Once it completes, the card reads "**Connected Gmail. It's available from your next message — send your request again.**" — send your request again and the AI uses the service ([Personal connectors](/en/pages/jinba_app_neo/connectors/personal-connectors))
* **Reconnect card** — if a connected service stops working because its sign-in has expired or been revoked, the same card appears as "**Reconnect …?**" so you can restore the connection without leaving the chat
* **Jinba Flow workspace connect card** — "**Connect Jinba Flow workspaces?**" shows the organization-shared Jinba Flow workspaces you haven't connected as a checklist; tick the ones you need and press "**Connect**." In chats bound to an agent, you can also pick the **Connection scope** ("This agent only" / "Workspace-shared") — that choice is offered only if you may edit the agent; otherwise the workspaces are connected workspace-shared ([jinba-flow integration](/en/pages/jinba_app_neo/connectors/jinba-flow))
## Agent hand-off card
Asking to talk to a specific agent — or describing work an existing agent is a better match for — can bring up, in a chat with or without an agent, an **agent hand-off card** (labeled "**Call agent**") proposing that agent.
* The card shows the matched agent and an editable "**First message to send**" (up to 4,000 characters)
* "**Start chat**" opens a new chat bound to that agent; the first message is sent for you and the agent replies there. The original card keeps an "Open" link to the new chat
* "Dismiss" keeps you in the current chat
This is a hand-off, not an in-place switch — the chat you are in keeps its own agent setting ([Selecting an agent](/en/pages/jinba_app_neo/chat/composer)).
## Agent setting proposals
When you ask for it in chat — or when the AI spots something that would help — the AI can create a new agent or change the current agent's setup. Each change is shown as a proposal card first, and **nothing is applied until you approve it**.
If the current agent is shared with you as **Use only** — including an organization-shared agent opened outside its home workspace — its configuration is view-only. The AI explains that restriction instead of showing a settings, skill, connector, knowledge, or memory change proposal. The one exception is asking to register a file to Knowledge: on such an agent the AI offers the workspace save card instead, so the file goes into the workspace's Knowledge rather than the agent's. Ask the agent's owner or a member with edit permission to make the change from the agent's settings ([Sharing agents](/en/pages/jinba_app_neo/agents/sharing)).
* **Agent creation proposed** (in chats with no agent selected) — review the name, description, model, and system prompt, then press "Create." An "Open" link takes you to the new agent
* **Settings change proposed** — shows what changes, including a system prompt diff. Press "**Apply changes**"; the change takes effect from your next message, in this chat too
* **Settings change proposed** for sharing — change who can use the agent (only you / everyone in this workspace / everyone in the organization) and whether they can also edit it. The card shows the change as before and after; unlike other settings, sharing takes effect **immediately** when you apply it
* **Connector addition proposed** — attach a connector already connected in the workspace to the agent. When several could fit, the card shows a picker grouped into "**Jinba Flow workspaces**" and "**Custom MCP servers**" — it opens even when nothing matches the name the AI mentioned, so just pick the right one. "Add" saves it right away, and the AI can use the connector from your next message in this chat (the card also offers "**Try it in a new chat**")
* **Skill attach proposed** — attach a workspace-shared skill the workspace already has to the agent ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat))
* **Knowledge addition proposed** — attach a knowledge source to the agent. Choose "Add" to attach it, or "Dismiss" to pass; the AI can use an addition from your next message
* **Confirm memory action** — turning the agent's memory learning on or off; the switch flips only when you press "**Run**," and the resolved card then states the outcome ("**Turned on this agent's memory**" / "**Turned off learning for this agent's memory (existing entries remain and are still recalled)**"). Erasing memory — single entries or all of it — is not possible from chat; the AI directs you to the agent's Memory section instead ([Agent memory](/en/pages/jinba_app_neo/agents/memory))
* **Confirm detach** — removing an attached skill, connector, or knowledge item from the agent. Detaching saves right away; a shared item stays in the workspace catalog. Deleting the agent itself is not possible from chat ([Managing agents](/en/pages/jinba_app_neo/agents/manage))
The note at the bottom of the settings, skill, and knowledge cards says a change takes effect in new chats with the agent; it in fact reaches this chat too, from your next message (for settings and skills, an [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats) is the exception).
For knowledge addition proposals, the caret on the "Add" button offers "**Auto-approve the rest**": for the next 24 hours in that chat, further knowledge additions are applied without confirmation. While it is active, an "Auto-approving knowledge additions" banner above the composer reminds you (end it anytime with "Turn off"), and auto-approved cards carry an "auto" tag with an Undo link.
## Scheduled task proposals
Ask for something to happen on a schedule — "run this every Monday morning," "remind me next Friday" — and the AI answers with a "**Scheduled task proposed**" card ("**Run this automatically on a schedule?**" / "It will be saved as a Scheduled task") instead of sending you to the Scheduled tasks page.
* The card shows the agent that will run, the title, the schedule in plain words with its timezone — "Daily 09:00 (Asia/Tokyo)" — or the date and time of a one-time run, the "**Next run**", and the full "**Instruction**" the AI will follow on each run. When you named no timezone, a line says "**Timezone taken from this device**"
* "**Create**" saves it as a scheduled task that starts at its next run time; the card then reads "**Created the scheduled task “…”**" with an "**Open the scheduled task**" link to the Scheduled tasks page. "Dismiss" passes. Nothing runs at the moment you approve
* If you already have an enabled task of your own in the workspace on the same schedule — the same recurring time and timezone, or the same date and time for a one-time run — "**Create**" saves nothing yet. The card names that task ("**You already have a scheduled task on this schedule: …**" / "**You already have a scheduled task at this time: …**") and offers two choices: "**Replace it**" rewrites the existing task's title, instruction and agent with the proposal, keeping its schedule and run history — it also turns off "Reference past history", so the next run opens a new chat — and the card then reads "**Updated the scheduled task “…”**"; "**Keep both**" creates the second task
* Apart from replacing a same-schedule task this way, only creating works from chat. Editing, running now, pausing, and deleting an existing task are done on the [Scheduled tasks page](/en/pages/jinba_app_neo/tasks/overview)
## Save-to-knowledge proposals
After producing a deliverable, the AI may offer to keep it for you with a "**Save to knowledge proposed**" card.
* The card spells out the name, the destination (a Knowledge folder, or the agent's private knowledge), and who will be able to use the file. Press "**Save**" to register it, or "Dismiss" to pass
* "**Change…**" opens a picker where you can adjust the name and destination before saving
* Saving is **create-only**: if the name is already taken at the destination, the card warns you before you approve, and the file is saved under a new name like "name (2)" — nothing is ever overwritten
* These proposals always require an explicit click; the auto-approve mode above does not apply to them
* You can also save any deliverable yourself at any time — see [Saving generated files](/en/pages/jinba_app_neo/chat/agent-activity)
## Email draft card
If Gmail is connected and you ask the AI to send an email, an **email draft card** appears in the chat. Review and edit the recipients, subject, and body before sending. You can also cancel with "Discard." The AI never sends email without your confirmation. If your administrator has blocked Gmail for this workspace, pressing "**Send via Gmail**" shows "**Your administrator has blocked Gmail sending in this workspace. You can still discard this draft.**" on the card instead of sending.
## Skill suggestions
When you ask the AI to save a procedure from the conversation as a skill, it shows a "**Save as skill**" card.
* Check what will be saved in the **body preview**
* Choose where to save it:
* **This agent only** — usable only by the current agent
* **Shared with workspace** — available to every agent
* Choose "Save" to register it, "Not now" to pass, or "**Request changes**" to have the AI revise the draft before saving ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat))
When a request yields several skills at once, the AI shows one "**Save as skills (N)**" card instead: each draft is a row you can untick, the save location is chosen once for the whole card, and "**Save n**" creates the ticked rows together ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat)).
If the AI detects that a conversation has drifted from an existing skill, it shows an "**Update skill**" card — review the body's "Changes" and choose "Apply update."
# Managing and Searching Chats
Source: https://docs.jinba.io/en/pages/jinba_app_neo/chat/manage-chats
The resizable sidebar chat list, pinning, renaming, duplicating, deleting, cross-chat search, and in-chat search
## The chat list in the sidebar
The sidebar shows chats per agent as well as recent (ad-hoc) chats. Recent chats sit under the "**Chats**" heading, grouped into "Today / Yesterday / Previous 7 days / Previous 30 days"; the heading folds the section away like the "**Agents**" heading does.
An expanded agent group shows at most 10 of that agent's chats. "**Show N more**" reveals the ones already loaded beyond that, and "**Show more**" then loads older chats for that agent, 25 at a time, until there are none left. Collapsing the group puts it back to 10. The chat you are currently in — and any chat with a run in progress — always stays visible, however far down the list it sits.
On desktop, the sidebar is **resizable** — drag its right edge to the width you like (double-click the handle to reset). Dragging it all the way in collapses it to a narrow icon rail; drag it back out to expand. The width is remembered per device.
The sidebar never collapses on its own — navigating or resizing the window keeps it open, and collapsing is always your decision (the toggle button or the drag). If you would rather have it fold down to icons on portrait devices and narrow windows, choose "**Fold to icons**" under "**Sidebar on small screens**" in [Personalize settings](/en/pages/jinba_app_neo/settings/appearance) (off by default).
## Pinning
Pin frequently used chats to keep them at the top of the sidebar.
* Choose "**Pin**" from the chat's menu
* To remove it, choose "Unpin"
## Renaming
Chat titles are generated automatically from the first message, but you can change them at any time via "**Rename**" in the menu.
## Duplicating
"**Duplicate**" in the chat's menu in the sidebar (between Rename and Delete) starts a new chat that carries the conversation so far — the messages and, for an agent chat, the same agent. The copy is titled "\ (copy)", and you land in it right away. The AI sees the copied conversation with your first message there, so it can continue from where the original left off; use it to branch into a side task, or to keep going after the original chat has hit its own usage limit.
* Files the AI generated in the original — files produced by flow runs included — are carried over: they are listed under the copy's deliverables and can be previewed and downloaded there. Cards from the original and its pin are **not** carried over
* A chat cannot be duplicated while the AI is still replying to it, or while it is waiting for your answer on a card or an approval — finish or stop that first
## Deleting
Choose "**Delete**" from the chat's menu. The messages in the chat are deleted as well.
> [!WARNING]
>
> Deleted chats cannot be restored.
## Cross-chat search
The "**Search**" button beside the workspace name at the top of the sidebar (shortcut: `⌘K`, `Ctrl + K` on Windows; the first icon of the collapsed rail) opens the command palette, where you can search your past chats.
* Both **titles and message bodies** are searched. Letter case, full-width and half-width characters, and hiragana and katakana all match either way (せーるす finds セールス)
* Select a result to jump to that chat
## In-chat search
To search within the open chat, use "Search in this chat." Move between hits with "Previous / Next."
## When a chat cannot be found
If you see "Chat not found," the chat has been deleted or you no longer have access (for example, a chat belonging to an agent that is no longer shared with you).
# Chat in Jinba App Neo
Source: https://docs.jinba.io/en/pages/jinba_app_neo/chat/overview
An overview of chat in Jinba App Neo
Chat is the central screen of Jinba App Neo. Talk to an agent to ask questions or request work, watch the AI's progress in real time, and receive the results.
## Types of chats
| Type | Description |
| - | - |
| **Agent chat** | A chat bound to a specific agent. That agent's skills, connectors, knowledge, and memory are applied automatically |
| **Ad-hoc chat** | A chat with no agent specified. It runs with the workspace default model and the workspace's skills |
Selecting an agent via `@` in the composer or the "+" menu when creating a chat turns it into an agent chat.
## The Home screen
"**New chat**" in the sidebar opens the workspace's Home: three entry cards, a "**Quick access**" row beneath them, and the chat box docked at the bottom of the window ("**What would you like to accomplish today?**"). Type in the box to start a chat as usual. The cards only fill the box for you — nothing is sent until you press send — and Esc, the × or the "**Back**" arrow takes you back to the cards.
* "**Start from an example**" (Slides, documents, sheets and charts) — a gallery of six kinds of work: **Slides**, **Document**, **Spreadsheet**, **Minutes**, **Email** and **Report**. Pick one and example requests appear: while the box is empty, hovering an example previews its full wording there; clicking writes it into the box in place of whatever you had typed. For Slides a "**Designs**" row offers eight designs, three per page ("**Previous**" / "**Next**"); the one you pick becomes a chip in the chat box and your request goes out with "Make the slides in the "…" design." in front of it. "**Import a design**" lets you pick `.pptx` or `.pdf` files, which are attached to the message. "**Back**" returns to the gallery and clears the design; "**Close**" returns to the cards and keeps it
* "**Make work repeatable**" (Manuals and workflows for repeat work) — four cards: "**Stop re-attaching the same files**", "**Turn repeat instructions into a manual**", "**Turn routine work into a workflow**" and "**Run tasks on a schedule**". Each opens a list in place (the first also writes a request about saving your documents into the box) — "**Your skills**" with "**Recommended for you**" (skills other members share), "**Your flows**", "**Scheduled tasks**", or "**Ways to use saved documents**". Picking a skill or flow (here or under "See all") puts it in the chat box as a chip with a first message: a line such as "Using the … skill," at once, then a short draft written from the skill's instructions or the flow's description and inputs — what it does, what to attach or enter, and the request — which replaces the line only if you have not typed since. Picking a task opens it on the Scheduled tasks page; the example cards write a request into the box. "**See all**" opens the full skills or flows list, with search (and sorting for skills), above the chat box
* "**Manage tasks**" — opens "**Work status**" in place. While you are new to Jinba (about your first week) it shows "**Getting started with Jinba**": four steps ("**Try a recommended use**", "**Turn your own work into a skill**", "**Once you're used to it, make a flow**", "**Put the flow on a schedule**") whose "**Try it**" writes a starter request into the box, each marked "**Done**" once you have a chat, a skill of your own, a connected flow or a scheduled task of your own. The "**Switch view**" button in the card's corner flips it to a "**Today's briefing**" face; the face you chose is remembered on that device
* "**Quick access**" — tiles for the agents, skills and flows you pin yourself. "**Add to quick access**" (the dashed +) opens a picker with **All** / **Agents** / **Skills** / **Flows** tabs and a search. Pressing a tile shows its details with a "**Use**" button (tick "**Don't show this again**" to skip this step from then on); the **⋯** button in a tile's top-right corner (or a right-click) offers "**Show details**" and "**Remove from quick access**", so touch devices can unpin a tile too. You can also **drag a tile onto the chat box**; dropping it uses the item right away. Using an agent selects it for the chat; each skill or flow you use adds its own chip beside the ones already in the box. While an agent is selected, the chat can use only that agent's own skills and flows, so Quick access refuses a skill or flow the agent does not have — and an agent that lacks a skill or flow already in the box — with "**This agent can only use skills it has**" ("**This agent can only use flows it has**" / "**This agent can only use skills and flows it has**"). A skill the AI cannot load in chats with that agent — marked "**Not loaded by AI**" in the agent's Skills section ([Skills Overview](/en/pages/jinba_app_neo/skills/overview)) — is refused too. Pins are kept per workspace in this browser
* **Card backs** — the workspace owner and the organization's owners and admins can put up to two agents, skills, or flows on the back of "**Start from an example**" and of "**Make work repeatable**," the same for every member of the workspace. A card with something on its back (for those editors, either card) shows a switch icon ("**Switch view (…)**") at its top-right that turns it over, and the card keeps the face you left it on in that browser. The back shows each item's drawing and name — one item can fill the whole back, with its description — and leaves out items you cannot open. Pressing an item puts it in the chat box the way Quick access does and replaces the box's text with a short draft request; nothing is sent, and `⌘ + Z` (`Ctrl + Z`) right afterwards brings back your earlier text. Editors change a back on the card itself: "**Add to this card**" (the dashed + in an empty place) opens the Quick access picker, an item's "**⋯**" offers "**Edit card**" (choose its drawing) and "**Remove card**" ("**Undo**" on the notice; the agent, skill, or flow itself is not deleted), and while the other place is empty, a handle on the item's inner edge stretches it over both places or restores its size. Changes are saved at once for the whole workspace
## Screen layout
* **Sidebar** — The header holds the workspace name with the "**Search**" button (command palette) beside it; below come New chat, Agents, Flow, Scheduled tasks, "**Customize**" (one row that opens the Skills, Knowledge, and Connectors tabs, and stays highlighted on any of them — [Concepts](/en/pages/jinba_app_neo/core-concepts)), pinned chats, the "**Agents**" section, and the "**Chats**" section of recent ad-hoc chats (grouped into Today / Yesterday / Previous 7 days / Previous 30 days). The "**Agents**" and "**Chats**" section headings fold their rows away and open them again; the choice is remembered on that device, a folded section opens on its own when you open a page or chat inside it, and clicking the heading folds it again. A "**Manage**" link at the end of the Agents heading opens the agent catalog. Clicking an agent row shows or hides that agent's chats; hovering the row reveals a "…" menu ("**Pin to top**" / "**Unpin**") and a "**New chat**" icon that opens the agent's page. When the sidebar is collapsed to its icon rail, Search is the first icon on the rail
* **Message area** — The conversation history. The AI's activity (thinking, running tools, and so on) also appears here. In an agent chat the header at the top reads "\ / \" — the agent name links to the agent's page, and the title opens the rename / delete menu. Hovering one of your own messages shows when you sent it — the date and time, with the year when you point at it — and a "**Copy**" button
* **Composer** — Message input, file attachments, and the reference pickers
* **Workspace panel** — A side panel that previews one file at a time, with the chat's files, the console log, and — in an agent chat — that agent's configuration a tab away
## Basics
> [card] [Composing Messages and Attachments](/en/pages/jinba_app_neo/chat/composer)
>
> How to send messages, the reference pickers (@ / # / \[\[ and more), and file attachments
> [card] [AI Activity and the Workspace Panel](/en/pages/jinba_app_neo/chat/agent-activity)
>
> Reading the AI's progress, interrupting it, and inspecting deliverables and the console log in the preview panel
> [card] [In-Chat Forms and Suggestions](/en/pages/jinba_app_neo/chat/interactive-cards)
>
> Flow input forms, multiple-choice questions, AI operation cards, agent setting proposals, and skill suggestions
> [card] [Managing and Searching Chats](/en/pages/jinba_app_neo/chat/manage-chats)
>
> Pinning, renaming, deleting, cross-chat search, and in-chat search
## Models and chats
The model is read again for every message. The composer's model menu shows the model the next reply will use — one you picked for this chat, otherwise the agent's model (the workspace default in an ad-hoc chat) — and a model you pick there applies from your next message ([Composing Messages and Attachments](/en/pages/jinba_app_neo/chat/composer)). When the agent's model or the workspace default changes, existing chats follow from their next message; a chat where you picked a model keeps it (as do [older chats](/en/pages/jinba_app_neo/chat/overview#older-chats)).
## When the agent's settings change mid-chat
An agent's configuration — system prompt, model, attached skills, connectors — is read again for every message, so an edit reaches a conversation already under way from its next message. A change to a connector connected in the workspace or to your personal connections can take up to five minutes to arrive, and knowledge changes are picked up immediately.
## Older chats
A chat started before Jinba App Neo moved to its current AI runtime has no model menu in its composer; on wider screens a read-only model badge sits beside the chat title instead ("**Model — fixed for this conversation. Pick a different model when starting a new chat.**" on hover). Such a chat keeps its model, and the agent's system prompt and skills, as they were when it started, so the "from the next message" behaviour described on these pages does not always apply to it. It also uses at most its first 20 skills, cannot read skills' supporting files, and sends custom MCP servers only an `Authorization: Bearer ...` header.
A banner above the composer may offer "**Switch to the new settings**" (or "**Switch to the new model**"). Switching starts a fresh session and makes the AI **forget this conversation's working context** (the visible history stays), but it does not reliably bring in the current settings. To work with the current settings, start a new chat.
## When the chat's agent is archived or un-shared
A chat stays bound to the agent it was started with. If that agent is later archived, or its share with you is withdrawn, the chat cannot continue — so instead of failing silently, sending (or submitting a flow input form or a multiple-choice card in the chat) surfaces the reason and what to do about it:
* **Archived** — "**This agent has been archived. Start a new chat with a different agent.**"
* **No longer shared** — "**This agent is no longer shared with you. Ask an organization admin to restore access.**"
The conversation you already have stays readable either way.
## Response language
The AI generally responds in **the language you write in**. An explicit request such as "answer in English" always takes top priority. The app's display language (Settings > Personalize > Language) is used as a fallback when the language cannot be determined from your input.
## When you hit your usage limit
Two limits can temporarily pause a conversation:
* **Monthly usage** — once your organization reaches the usage included in its plan, sending is blocked until the displayed reset date. To raise the limit, contact your organization admin
* **This chat's rolling 24-hour usage** — if one chat reaches its own limit, wait for the rolling window to clear or continue in a new chat. Other chats are not blocked by this limit
Both limits are also checked while a reply is being generated. If a long run crosses one partway through, the response stops there and the message explains whether the monthly or chat-specific limit was reached. Whatever the AI produced up to that point stays in the chat.
# Connect a Custom MCP
Source: https://docs.jinba.io/en/pages/jinba_app_neo/connectors/custom-mcp
How to register any MCP server, and what to watch out for
Register an MCP server for an internal system or external service, and the AI can call its tools. Register it with "**Add**" in the heading row of the Connectors tab (Sidebar > **Customize** > **Connectors** tab), or with the "**+**" on the "**Custom MCP**" card under "**Custom & developer**."
> [!NOTE]
>
> Jinba App Neo supports **http-stream type** MCP servers. stdio type (locally executed) servers cannot be registered. Configurations that go through `mcp-remote` can be converted via JSON paste.
> [!NOTE]
>
> Your organization's policy may block custom connectors. If you see "**Your organization has blocked custom connectors (MCP).**", registration is unavailable — contact your organization's administrator.
## Registering with manual entry
**1. Enter the server details**
The "**Add a custom MCP**" form opens on its "**Manual**" tab.
* **Name** — e.g., Internal Wiki MCP
* **Server URL** — the MCP server's endpoint
* **Description** (optional) — what the server provides
**2. Set headers (optional)**
For servers that require authentication, set request headers (e.g., `Authorization: Bearer ...`). Header values are stored encrypted, and the headers you save are sent to the server when the AI connects ([older chats](/en/pages/jinba_app_neo/chat/overview#older-chats) send only an `Authorization: Bearer ...` header). A server with saved headers or a token must use an `https://` URL: saving credentials for an `http://` server is refused.
**3. Add it**
Press "**Add**." The server appears under "**Custom & developer**" and in "**Connected**" at the top of the tab, and its tools can be called from chat.
> [!WARNING]
>
> The server URL must be a **public URL reachable over the internet**: Jinba App Neo's servers connect to it, and `localhost` and internal-network-only addresses (RFC1918) are refused.
## Registering by pasting JSON
You can paste Claude Desktop-style `mcpServers` JSON as-is.
1. Select the "**Paste JSON**" tab
2. Paste JSON with a `url` entry, or with `args` that go through `mcp-remote` (one server at a time)
3. When the JSON names the server and its URL, "**Add from JSON**" registers it right away; "**Apply to form**" loads the parsed result into the form instead, so you can review it and press "**Add**"
## After registering
If the save found a problem — the server's tool list could not be fetched, for example — the "**MCP created (with warnings)**" banner at the top of the tab lists what was found. Click the server's card to open its page: it shows the server's URL, how many agents use it ("**Used by**") and when it was last "**Updated**."
## Editing and deleting
* **Edit** — "**Edit**" in the server's card menu ("**⋮**") or on its page. You can change the name, URL, and description. Saved header values are not displayed; to change them, check "**Replace stored headers (uncheck to keep them)**" and re-enter them
* **Delete** — "**Delete**" in the card's "**⋮**" or in the "**⋮**" at the top right of its page. Deleting an MCP also deletes its registered tools. The confirmation lists the agents that currently use it ("**n agent(s) currently use this asset:**") so you can see what the delete would break; agents you are not allowed to see are counted but not named ("**n agents you don't have access to (names not shown)**")
> [!WARNING]
>
> **Changing the endpoint URL requires re-entering the auth headers.** Headers saved for the previous URL are never sent to a new endpoint, so the form asks for them again — or choose "**Save without credentials**" if the new endpoint needs none. An agent-specific MCP's token and headers follow the same rule.
> [!WARNING]
>
> Editing a workspace-shared MCP affects every other agent it is attached to.
## Agent-specific MCP
Register an MCP for a single agent from the External connectors section of the agent's configuration panel.
* It does not appear on the Connectors tab
* Paste the authentication token itself: it is stored encrypted and never shown again. A `vault:` or `secret:` reference is stored as-is but not resolved, so that MCP is not used
* Saved header values are stored encrypted and are never returned to the browser — the edit form shows their key names only, so changing a value means typing it again
## Organization connectors
MCP servers your organization's administrator registered for the whole organization show up on the Connectors tab in a read-only "**Organization connectors**" section, below the category sections and above "**Custom & developer**." The section opens with the note "Applied automatically by your organization. Managed in Organization settings.", and each card carries an "**Org-managed**" badge.
* They are already available to every agent — there is nothing to connect
* They cannot be edited or deleted from the workspace side; ask your organization's administrator
* Only the name and description are shown. The server URL and its credential stay on the server
# jinba-flow Integration
Source: https://docs.jinba.io/en/pages/jinba_app_neo/connectors/jinba-flow
Using workflows as tools, flow runs and approval steps in chat, the Flow run console, and AI operation
Jinba App Neo integrates with jinba-flow in two ways: workspace connections and AI operation. Choose based on what you need (using both is fine).
| Approach | Best for |
| - | - |
| **Workspace connection (call-only)** | Calling published workflows as tools for an agent |
| **AI operation** | Letting the AI handle Jinba end to end from chat — "list my flows," "run this one" — with your own permissions |
## Connecting a workspace
Connect a jinba-flow workspace so its published flows can be called as tools for the AI. Connecting takes one click — there are no API keys to issue or paste. Connecting, listing and running all happen on the same page.
**1. Open the Flow page**
"**Flow**" in the sidebar opens the page (its heading reads "**Jinba Flow**"). Its list column has two sections: "**Connected**" and "**Not connected**." The latter lists the jinba-flow workspaces you belong to whose published flows can be reached from outside. Some may not be connectable depending on their visibility settings (see below).
**2. Press Connect**
Press "**Connect**" on a workspace row. It moves to the "**Connected**" section, and its published flows become callable as tools. There is no connection-type choice to make: workspace connections are **call-only** — the AI cannot create or edit flows through them.
**3. Attach it to an agent**
Add this connection from the Flow section of the agent's configuration panel. The AI can then run the flows as tools.
* You can also connect straight from the **agent detail page**: its Flow section lists your connectable workspaces too, and one click sets up a connection dedicated to that agent ([Attach resources](/en/pages/jinba_app_neo/agents/attach))
* Connecting **from chat** works too: ask the AI ("connect my Jinba Flow workspace") — or let it propose the connection — and a "**Connect Jinba Flow workspaces?**" card appears listing your unconnected workspaces as a checklist. Tick the ones you want and press "**Connect**." In an agent-bound chat, a "**Connection scope**" toggle lets you choose "**Workspace-shared**" or "**This agent only**." Flows connected this way can be used from your **next message** in the same conversation — if your request needs them, the AI asks you to send it again. A "**Workspace-shared**" connection made in a chat with an agent is not attached to that agent: its flows reach chats with no agent, and this agent's chats only once you add the connection to the agent. The card lists organization-shared workspaces; workspaces from your personal Jinba account are connected from the Flow page's "**Not connected**" section
* Workspaces set to **Private** on the jinba-flow side cannot be connected: their rows carry a lock mark noting "**Set to Private on the Jinba Flow side**," and trying to connect opens a "**Can't connect**" dialog explaining why. Switching the workspace's visibility to **Unlisted** makes it connectable (this requires an owner — the dialog's "**Open settings in Jinba Flow**" button takes you to the relevant settings screen). If you are an owner, make the change there and come back to this tab: the connection then completes on its own. Anyone else presses "Connect" again once an owner has made the change (coming back through "Open settings in Jinba Flow" completes it automatically as well). When the dialog says external access could not be verified, press "Connect" again after checking the settings
* Connected workspaces and their published flows stay in that same list column. Selecting a workspace name opens its index beside the list: the flow count, "**Last synced**", the connection's status, and the actions "**Refresh**", "**Change display name**" and "**Disconnect**" (plus "**Go to workspace**" for a workspace you belong to with your own jinba-flow account). On a narrow window the index opens as a sheet from the "…" button on the workspace row instead. If a connected workspace can no longer be reached — it was deleted, changed to **Private**, or your access was removed — its row is hidden from the "Connected" list by default and its flows disappear from both the list and flow search until access is restored. To see such rows, open the "…" menu beside the "**Connected**" heading and turn on "**Show inaccessible workspaces**": they appear marked "**Unavailable**", with "Refresh" and "Disconnect" still available
* Connections stay in sync automatically: opening the Flow page or the composer's connector picker checks the jinba-flow side for changes, and new or updated flows are marked with "**NEW**" / "**Updated**" chips. Manual "**Refresh**" in the workspace index is still there when you want to force a refresh
* Which of a connected workspace's flows an agent actually uses can be narrowed **per agent**: in the agent's Flow section, untick "**Use the whole workspace**" and leave only the flows it may call ticked ([Attach resources](/en/pages/jinba_app_neo/agents/attach)). The composer's pickers in that agent's chats follow the selection
* When a flow runs, a [flow input form](/en/pages/jinba_app_neo/chat/interactive-cards) may appear in the chat
## Display names
A connected workspace and an individual flow can each be given a display name that applies **only inside Jinba App** — as the dialog puts it, "Only changes how this connector is displayed in Jinba App. The name in Jinba Flow and syncing are unaffected."
* **A workspace** — "**Change display name**" in its index on the Flow page
* **A flow** — the pencil next to the flow's name in the run console header
While a display name is in use, the jinba-flow name stays visible as "**Original name:** …", and "**Reset to original name**" puts it back.
## Flow runs in chat
When the AI runs a flow, a "**Flow run**" card appears in the chat with the flow's name and live status — "Running…" with the latest progress message and elapsed time, then "**Completed**" or "**Failed**" with the reason (if you have lost access to the Flow workspace, the card says so). Files the flow produces appear as download chips just below the card, with their real filenames, and are collected with the chat's other deliverables. When a finished flow returns text as well, the card shows it under "**Result**"; a very long result is cut short with the note "**Only part of this long result is shown. See the Flow run history for the full result.**"
For runs started through `run_flow` or a flow's MCP tool, the card also has a collapsed "**Inputs (N)**" section below the outputs. Open it to audit the names and values the flow received, including a value the AI supplied rather than one you typed. Up to 24 inputs are shown; a long value is shortened to its first 4,000 characters, with the complete value available in Flow run history. Runs performed through **AI operation** may not include this section.
Files generated earlier in the chat — by a flow or by the AI itself — can be passed as file inputs to follow-up flow runs, so multi-step pipelines work without downloading and re-uploading anything. The AI can also open those files itself: ask it to read or summarize a flow's output in the same chat. Knowledge files can be handed to a flow's file input as well: add the file to your message from the composer's + → Knowledge picker, and in a chat with an agent the files attached to that agent's Knowledge are available without mentioning them. Up to 20 files are offered per message (the ones you mentioned first); if the file you mean is not among them, add it from the Knowledge picker.
## Waiting for a flow to change
When your request depends on something a flow will only report later — a batch finishing, a status turning to "done" — the AI can wait for it instead of asking you to check back. A "**Flow wait**" card appears in the chat, reading "**Waiting for the flow to change**" while the AI re-runs the same status check at intervals.
* The card shows which check is being run ("**Checking:**"), the text it is waiting to see when there is one ("**Looking for:**"), the number of checks so far, the countdown to the next one, and the minutes elapsed against the limit. A wait lasts 30 minutes unless the AI sets another limit, and never more than 60
* The wait ends as "**Change detected**" — the AI then carries on with your request — or as "**The wait ended with no change**," "**The wait ended because the result kept changing**," "**The wait was interrupted**," or "**The wait failed**" with the reason underneath
* Only a flow that its author has marked **read-only** in Jinba Flow can be waited on, because the check runs the flow again and again. For any other flow the card reads "**The flow being checked isn't marked read-only, so it can't be waited on.**" and nothing is run
## Approval steps (human-in-the-loop)
When a running flow reaches a WAIT_FOR_APPROVAL step, the run pauses until someone decides.
* In chat, the flow-run card switches to "**Awaiting approval…**" and shows an approval form: the message the flow author configured, any data to review, a comment box, and one button per configured action (typically **Approve** / **Reject**). An "**Open approval page**" link and the request's expiry are shown as well
* Whether a comment is required is up to the flow author — always, only when rejecting, or not at all. If a required comment is missing, the card says so and you can try again
* The same approval form appears in the Flow run console for runs started from a form there. If you leave the console while a run waits, its "**Run History**" row reads "**Awaiting your response**" — press "**Respond**" to bring the approval card back into the Output pane
* A request that has expired, or was already decided by someone else, is reported on the card
## Flow run console
"**Flow**" in the sidebar is a run console for executing published flows directly from a form, without going through chat.
* Flows are listed under the workspace that publishes them. Open a workspace to see its flows — one workspace at a time — or search across every workspace and flow with the box above the list. Inside a workspace, flows are nested under their jinba-flow folders: each folder row opens and closes with its caret (folders start open, and the ones you close stay closed), shows how many flows it holds including sub-folders, and carries a dot when a closed folder has updates behind it. When two flows in one workspace share a name, the row adds its jinba-flow folder path (or "**Top level**") so you can tell them apart
* Newly published flows carry a "**NEW**" chip and updated ones an "**Updated**" chip. A collapsed workspace that has changes behind it shows an "**Updates**" chip
* Selecting a flow opens its input form; run it and check the results on the spot. If the flow has an approval step, the approval form appears right in the console. A file input that the flow marks as multi-file accepts several files ("**Choose files**" / "**Add files**", up to 10 per field); the same widget appears in the in-chat flow input form
* After a successful run, an AI-written "**Execution Summary**" is generated for the result automatically, and a collapsed "**Details**" zone opens on a "**Report**" tab (a generated report of the result, with "**Download CSV**" / "**Download Excel**" when it holds table or field data) beside "**Data**" and "**Raw Data (JSON)**". "**Generate**" / "**Regenerate**" rebuild them, and an earlier run in the history offers "**Generate summary & report**". Each generation uses your organization's credits and is limited per hour — the console says so when a limit is hit. An organization can have summaries and reports turned off
* "**Open in Jinba Flow**" in the flow's header opens that flow's own page in the Jinba Flow editor, in a new tab. If you are not a member of the flow's workspace on the Jinba Flow side, the link is shown but disabled, with the reason on hover ("**You are not a member of this workspace in Jinba Flow, so it can't be opened**")
* "**Deliverables**" collects the files this flow's past runs produced, newest first, above "**Output**" and "**Run History**". Selecting one opens it in the shared [file preview](/en/pages/jinba_app_neo/chat/agent-activity) — as does a file listed under "**Output Files**" in the output itself, so an Excel or Word deliverable can be read without downloading it
* In "**Run History**", an expanded row shows "**Output**" before "**Input**", and a long input value scrolls inside its own box instead of stretching the row. A run that is still going carries "**Reattach**" (or "**Respond**" when it is waiting on you) to bring it back into the Output pane
* Drag the divider between the list and the console to resize the list; double-click it to go back to the default, or move it with the arrow keys once it has focus. The width is remembered per device
* The console itself is two columns — input and run on the left, output and history on the right — and the divider between them behaves the same way: drag it, move it with the arrow keys or Home / End, or double-click to return to an even split. It starts at half and half, never gives either column less than a quarter of the width or 260 px, and is remembered per device. When the console is too narrow for two columns the output folds into a drawer and the handle is not shown
## AI operation
Turn on "**AI operation**" and the AI can operate Jinba on your behalf — listing, creating, and running flows: anything you can do.
* Turn it on with the toggle on the "**Let the AI create and edit workflows**" card, at the top of the Flow page's list column above the search box. The card is collapsed by default — the chevron opens the description of what the setting covers. A confirmation dialog explains the scope; press "**Allow**"
* It is a **one-time, account-wide setting**: it covers every Jinba Flow workspace you belong to (including ones you join later). There are no per-workspace grants
* If the AI needs it mid-conversation, a "**Let the AI operate your Jinba?**" card appears in the chat — press "**Enable**", confirm the same "**Allow AI to operate Jinba**" dialog with "**Allow**", and the AI picks up right where it left off
* You can turn it off anytime from the same card
> [!NOTE]
>
> * The AI acts with **your own permissions**, and every action is logged
> * Credentials are never passed to the AI
> * If your organization's settings disable AI code execution, this setting is unavailable — the in-chat card shows "**Unavailable — your organization's settings disable AI code execution.**" instead of the Enable button
## Troubleshooting
* **A connected workspace has disappeared from the list, or shows "Unavailable"** — the Flow workspace may have been deleted, changed to Private, or stopped allowing your access on the jinba-flow side. Such workspaces are hidden from the "Connected" list by default (turn on "**Show inaccessible workspaces**" in the "…" menu beside the heading to see them), and their flows stay hidden while they cannot be reached. If it still exists, ask the owner to switch its visibility to Unlisted, invite you as a member, or add an external access rule as appropriate, then use "Refresh"
* **A "Can't connect" dialog appears when connecting** — the workspace is set to Private on the jinba-flow side, which does not allow external connections. Switch its visibility to Unlisted (requires an owner; ask one if that isn't you)
* **Flow runs never respond** — if no run appears in the jinba-flow run history, the MCP URL may not be reachable from Jinba App Neo's servers. jinba-flow instances on `localhost` or internal-only hosts cannot be integrated
* **Connected but tools are missing** — check that the flow is **published**. Connections re-sync automatically when you open the Flow page or the composer's connector picker; "Refresh" in the workspace index forces a refresh
# Connectors Overview
Source: https://docs.jinba.io/en/pages/jinba_app_neo/connectors/overview
The external service connections that extend what the AI can do
A **connector** is a connection to an external service that extends what the AI can do. Through MCP (Model Context Protocol), an open standard, the AI can call external tools. Manage connectors on the **Connectors** tab: open "**Customize**" in the sidebar and pick the "**Connectors**" tab.
## The Connectors tab
The tab lists every service as a card, grouped into sections:
* **Connected** — a row of logos for the services you have connected and the custom MCP servers registered in the workspace, shown once there is at least one. Hover over (or focus) a logo to see its name; click it to open that connector's page
* Below it come "**Recommended**", then the categories "**Files & documents**", "**Email & chat**", "**Calendar, meetings & tasks**" and "**Other**", then "**Organization connectors**" (when your organization provides any) and "**Custom & developer**" (custom MCP). A service can appear in more than one section
* A category shows its first three cards. The "**›**" beside "**Connected**", "**Recommended**" or a category heading opens that section's full list, with its own search box. While you search from the box in the heading row, every match is shown and the "**›**" is hidden
* A card that is not connected has a "**+**" that takes you straight to the service's sign-in. A connected card has a "**⋮**" menu instead — "**Details**" opens its page, and a custom MCP's menu offers "**Edit**" and "**Delete**." Right-clicking the card opens the same menu. Click the card itself to open the connector's page
* A card reads "**Status unknown**" when its connection status could not be loaded — it may still be connected, so reload the page in a moment — or "**Needs reconnecting**" when its saved sign-in can no longer be read ([Personal connectors](/en/pages/jinba_app_neo/connectors/personal-connectors))
* "**Add**" in the heading row — or the "**+**" on the "**Custom MCP**" card — registers a [custom MCP](/en/pages/jinba_app_neo/connectors/custom-mcp)
## The connector page
Each connector opens as its own page:
* The top shows the logo, the name, a one-line summary and the connection state: "**Connect**" while it is not connected, "**Connected**" once it is. For a connected service, disconnect and "**Reconnect**" are in the "**⋮**" at the top right (Slack lists each connected workspace with its own "**Disconnect**" instead)
* Below come a description of what the connector lets the AI do and, for Slack and Notion, "**What it can do**" — the tools the AI gets, by name
* "**‹**" at the top left, or your browser's Back, returns you to where you opened the page
* A link to a connector that cannot be shown — a custom MCP that was deleted, for example — opens "**This connector could not be found.**" with the same "**‹**" back to the list
## Types of connections
> [card] [Personal connectors](/en/pages/jinba_app_neo/connectors/personal-connectors)
>
> Connect your own accounts — Gmail, Slack, Google Calendar, Notion, and more — and let the AI act on your behalf
> [card] [jinba-flow integration](/en/pages/jinba_app_neo/connectors/jinba-flow)
>
> Call jinba-flow workflows as tools for the AI, or turn on AI operation to let it operate Jinba on your behalf. Connecting, listing and running all happen on the "Flow" page
> [card] [Custom MCP](/en/pages/jinba_app_neo/connectors/custom-mcp)
>
> Register any MCP server, such as an internal system, for the AI to use
## Related pages at a glance
| Page | Location | Purpose |
| - | - | - |
| **Connectors** | Sidebar > **Customize** > **Connectors** tab | Managing external tool integrations: personal connectors, custom MCP, and more |
| **Flow** | Sidebar | Everything jinba-flow: one-click workspace connect, the AI operation toggle, the list of connected workspaces and their published flows, and a console for running one from a form on the spot |
## Where connections live
| Location | Description |
| - | - |
| **Workspace shared** | Managed on the Connectors tab. Multiple agents can attach and use them |
| **Agent-specific** | Registered from the agent's configuration panel. Used by that agent only; not shown in the catalog |
| **Personal** | Personal connectors (Gmail, etc.) are used only in chats by you, the person who connected them |
| **Organization-managed** | MCP servers your organization's administrator registered. They appear on the Connectors tab in a read-only "**Organization connectors**" section, marked "**Org-managed**" — see [Custom MCP](/en/pages/jinba_app_neo/connectors/custom-mcp) |
## Using connectors from chat
* The AI automatically selects and runs the tools of connectors attached to the agent, based on the conversation
* You can also name a specific tool or flow with `#` in the composer
* When the AI spots a connection that would be useful given the conversation, it may show a "**Connector addition proposed**" card. Approving saves the addition right away, and the AI can use the connector from your next message in the same chat
* When a service you need is not connected yet — or an existing connection has stopped working — the AI can show a connect (or reconnect) card right in the chat. Complete the authorization there; the connection is available from your next message, so send your request again. Both [personal connectors](/en/pages/jinba_app_neo/connectors/personal-connectors) and [jinba-flow workspaces](/en/pages/jinba_app_neo/connectors/jinba-flow) support this
## Managing connections
* **Refresh** — refetch the tool list from a jinba-flow connection: in the workspace's index on the Flow page, or beside the connection in an agent's Flow section. jinba-flow connections also re-sync automatically when you open the Flow page or the composer's connector picker, so the manual action is mostly a fallback
* **Disconnect** — remove the connection. The associated MCP server and its tools are deleted too
* **Unavailable** — a jinba-flow connection whose workspace can no longer be reached is hidden from the Flow page's "Connected" list by default; turn on "**Show inaccessible workspaces**" in the "…" menu beside the heading to see it marked "**Unavailable**." Ask the Flow workspace owner to invite you as a member or add an external access rule, then "Refresh" ([jinba-flow integration](/en/pages/jinba_app_neo/connectors/jinba-flow))
* **Blocked by your organization or workspace** — depending on your organization's policy, a connector can be blocked; a workspace owner can also block Slack or Notion for one workspace under Settings > Workspace > Connectors. A blocked connector's card shows a lock in place of its "**+**" or "**⋮**" (hover over the lock for the reason), and its page says "**Your organization has blocked this connector.**" or "**This connector is blocked by your workspace's settings.**" — a connected one reads "**Blocked**" there instead of "**Connected**." A blocked connector cannot be connected, and even one that was connected earlier is not used by the AI while it stays blocked. Contact your organization's administrator or workspace owner ([Workspace settings](/en/pages/jinba_app_neo/settings/workspace))
# Personal Connectors (Gmail, Slack, and more)
Source: https://docs.jinba.io/en/pages/jinba_app_neo/connectors/personal-connectors
Connect your own accounts and let the AI act on your behalf
**Personal connectors** connect your own accounts — Gmail, Slack, Google Calendar, Notion, and more — via OAuth so the AI can operate them on your behalf. Connect them from the **Connectors** tab (Sidebar > **Customize** > **Connectors** tab).
## Available services
| Service | What the AI can do |
| - | - |
| **Gmail** | Search and read email, send email |
| **Slack** | Search and read messages, post to channels or direct messages (to one person or a group), and share files — a file up to 25 MB, or text it writes itself (multiple workspaces supported). A connection made before file sharing and direct messages were added may need a "**Reconnect**" to grant the extra permissions |
| **Google Calendar** | Check your schedule; create, change, and delete events |
| **Notion** | Search and read the pages you shared with the integration, create a page under one of them or add to the end of one, and import pages into knowledge (works with [Knowledge](/en/pages/jinba_app_neo/knowledge/add-sources)) |
| **Google Drive** | Search and read your files, and create new files and folders |
| **Google Docs** | Create documents and read or edit them |
| **Google Sheets** | Read spreadsheet values and write or update them |
| **Excel** | Read workbook sheets, add rows, and update values |
| **OneDrive** | Find and read files, save new ones, and create sharing links |
| **SharePoint** | Search and read your sites' documents and create folders |
| **Outlook** | Search and read your email and calendar, send messages, and create events |
| **Microsoft Teams** | Search and read your chats and send messages |
Every connection opens its own authorization screen and is per-user (the lineup can vary by environment). Each service's page on the Connectors tab describes what it lets the AI do; for Slack and Notion it also lists the tools the AI gets under "**What it can do**." New connections to Google Meet and Google Tasks are paused for the time being: their cards are not offered, and an existing connection keeps working with the note "**New connections are paused. Your existing connection keeps working.**" Such a connection offers no "**Reconnect**" — once you disconnect it, it cannot be connected again until new connections resume.
## Connecting
**1. Open the Connectors tab**
Open "**Customize**" in the sidebar and pick the "**Connectors**" tab.
**2. Connect a service**
Press the "**+**" on the service's card — or open its page and press "**Connect**" — then sign in and approve on the authorization screen that appears. You come back to the service's page, and the service joins "**Connected**" at the top of the tab.
**3. Use it in chat**
Once connected, just ask in chat — "Summarize yesterday's email from Tanaka-san" or "What's on my calendar tomorrow?" — and the AI will use the tools.
## Reconnecting and disconnecting
Open the service's page — click its card, or "**Details**" in the card's "**⋮**" — and use the "**⋮**" at the top right: "**Reconnect**" signs in again, and disconnect removes the connection. Slack lists each connected workspace with its own "**Disconnect**," plus "**Add another workspace**" to connect one more.
* Reconnecting keeps your current connection working until the new sign-in completes, so backing out of the sign-in leaves it as it was. For the Google and Microsoft apps, a reconnect that does not finish is reported on the page as "**Couldn't finish reconnecting. Your existing connection keeps working.**"
* If the saved sign-in for Slack or Notion can no longer be read, the AI cannot use that connection and the card reads "**Needs reconnecting**." Open its page and press the reconnect button there ("**Reconnect Notion**", for example) to restore the same connection. Slack marks each affected workspace on its page (the card changes only when every connected workspace is affected); on Slack's sign-in screen, choose that same workspace
## Connecting and reconnecting from chat
You don't have to visit the Connectors tab first. When the conversation needs a service you haven't connected — in a chat with or without an agent — the AI can show a connect card — "**Connect Gmail?**", for example — right in the chat. This also works for the available Google Docs, Google Sheets, Excel, OneDrive, and SharePoint connections. Press "**Connect**" and approve on the authorization screen that opens in a separate window, or pass with "**Not now**." Once connected, the card says the service is available from your next message — send your request again and the AI uses it. Connections made from chat are the same per-user connections as those made from the Connectors tab.
If an existing connection stops working — the authorization has expired or been revoked, for example — the AI shows a reconnect card ("**Reconnect Gmail?**") the same way. Reconnecting re-authenticates the same connection in place; nothing needs to be set up again.
## Sending email with Gmail
When you ask the AI to send an email, an **email draft card** appears in the chat. Review and edit the recipients, subject, and body before sending, or cancel with "Discard." The AI never sends email on its own.
If Gmail is not connected — or its authorization has expired — the card says so and offers a "**Connect Gmail**" button that takes you straight to the right connector; come back and press "Send via Gmail" again.
## Security and privacy
* Personal connectors are used only in chats by **you, the person who connected them**. Other workspace members cannot access your Gmail or Slack
* Credentials (tokens) are stored encrypted and are never passed to the AI
* You can "Disconnect" at any time. After disconnecting, the AI can no longer access that service (you can reconnect whenever you like)
> [!NOTE]
>
> If you disconnect Notion, knowledge already imported remains, but you can no longer import new pages or refetch existing ones.
# Jinba App Neo Concepts
Source: https://docs.jinba.io/en/pages/jinba_app_neo/core-concepts
The basic concepts that make up Jinba App Neo
Jinba App Neo revolves around "agents," with several concepts working together around them. This page explains what each one does and how they relate.
## The big picture
```
Workspace
├── Agents (units of conversation)
│ ├── Skills (playbooks and instructions)
│ ├── Connectors (external service integrations)
│ ├── Knowledge (reference material)
│ └── Memory (what the AI learns from conversations)
├── Chats (agent-bound / ad-hoc)
├── Scheduled tasks
└── Customize (the shared Skills, Knowledge, and Connectors tabs)
```
## Agents
An **agent** is a conversation partner that bundles skills, connectors, and knowledge. Each agent has a model and a system prompt, and you can create multiple agents in a workspace and switch between them by purpose.
* Examples: "Sales Analyst," "Meeting Notes Writer," "Code Reviewer"
* Agents can be shared with members other than their creator ([Share an agent](/en/pages/jinba_app_neo/agents/sharing))
* You can also chat without specifying an agent (an **ad-hoc chat**)
> [!NOTE]
>
> Throughout this documentation, we use "agent" for the product entity you create and manage, and "AI" for the runtime that actually generates responses and performs work.
## Skills
A **skill** is a playbook or set of instructions you want the AI to reuse. Skills are written in Markdown (SKILL.md format) and carry metadata: a name, a description, and allowed tools.
* Reuse routine know-how such as "How to create an invoice" or "Translation tone guide"
* Skills can live in two places: **workspace-shared** (available to every agent) and **agent-specific**
* Ask in a chat to save a procedure as a skill, and the AI drafts it for you to review and save
Details: [Skills](/en/pages/jinba_app_neo/skills/overview)
## Connectors
A **connector** is an integration with an external service that extends what the AI can do. Connectors provide tools via MCP (Model Context Protocol), an open standard.
* **Personal connectors** — Connect your own accounts for Gmail, Slack, Google Calendar, Notion, and more, and let the AI act on your behalf
* **jinba-flow connection** — Call published workflows as tools for the AI (one-click connect, call-only)
* **Custom MCP** — Register any MCP server, such as an internal system
* **AI operation** — Let the AI operate Jinba on your behalf (listing, creating, and running flows), with a one-time account-wide setting
Details: [Connectors](/en/pages/jinba_app_neo/connectors/overview)
## Knowledge
**Knowledge** is the reference material the AI grounds its answers in. You can register uploaded files, URLs, and Notion pages.
* Organize sources into folders, and even auto-sync an entire folder to an agent
* Registered sources are kept in sync. In a chat with an agent the AI is given a list of the agent's sources, and in any chat it reads or searches knowledge when it needs it
Details: [Knowledge](/en/pages/jinba_app_neo/knowledge/overview)
## Memory
**Memory** is where the AI stores what it learns through chat. There are two kinds:
| Type | What is stored | Who can see it |
| - | - | - |
| **Personal memory** | Your preferences, business terminology, and background | Only you (invisible to other users) |
| **Agent memory** | Procedures and caveats for that agent | Everyone who uses that agent |
You can turn learning on or off, and view, edit, or delete stored memories at any time. Details: [Memory](/en/pages/jinba_app_neo/settings/memory)
## Scheduled tasks
A **scheduled task** has an agent run a fixed instruction on a schedule — recurring or one-time — with each run captured as a chat thread you review afterwards.
Details: [Scheduled tasks](/en/pages/jinba_app_neo/tasks/overview)
## Workspaces and organizations
* A **workspace** is the unit that all your data — chats, agents, knowledge, and more — belongs to. Invite members to collaborate
* Workspaces belong to an **organization**. You can create multiple workspaces and switch between them with the switcher in the sidebar
* Members have one of two roles: **Owner** and **Member**. Administrative operations such as changing settings and managing members are restricted to owners
* Every page URL carries the workspace you are working in — `https://neo.jinba.io/w//…`. A link you copy therefore always points at one specific workspace, and it opens only for members of that workspace (anyone else sees "Page not found"). Links saved before this change still work; they are redirected to the current URL automatically. Switching workspaces in the switcher takes you to the new workspace's home
## Customize (shared resources)
Workspace-shared resources are managed on the **Customize** page: open "**Customize**" in the sidebar, then pick the **Skills**, **Knowledge**, or **Connectors** tab (the sidebar row opens the Skills tab). The title row above the tabs holds the open tab's search box and Add button, in the same place on every tab; on a phone the title row is hidden and the tabs stay. Each tab has its own address (`/w//skills`, `/knowledge`, `/connectors`), so a copied link or the browser's back button returns to the same tab. Agents pull in the resources registered here as needed.
> [!NOTE]
>
> Agent-specific resources (skills or knowledge used by only one agent) are registered from that agent's detail page. They do not appear in Customize.
## Models
Responses are generated by models from Anthropic's Claude family.
| Model | Characteristics |
| - | - |
| Claude Opus 5.5 | Top of the line — for the most complex reasoning and long-running AI work |
| Claude Sonnet 5.5 | Balanced — the default for chat and most tasks |
| Claude Haiku 5.5 | Fastest, lowest latency — for quick lookups and summaries |
* The model is **read again for every message**: one picked in the chat's composer, otherwise the agent's, otherwise the workspace default, applies from the next message ([Chat overview](/en/pages/jinba_app_neo/chat/overview))
* You can set the model per agent. Ad-hoc chats use the workspace default model
* An agent or workspace default saved on an older generation of the same line (Sonnet 5, Sonnet 4.6, …) runs on the newest one automatically — there is nothing to upgrade by hand
# Jinba App Neo FAQ
Source: https://docs.jinba.io/en/pages/jinba_app_neo/faq
Frequently asked questions about Jinba App Neo
## General
> [accordion] How is Jinba App Neo different from the previous Jinba App?
>
> Jinba App Neo is the next-generation platform that succeeds Jinba App. What's new includes an agent-centric design (Skills, Connectors, and Knowledge attach directly to agents), AI execution in isolated session environments, continuous learning through Memory, and Skill management in the SKILL.md format.
> [accordion] Will data created during the Beta carry over to the official release?
>
> Data from the Beta period is expected to carry over as a rule, but if there is a major change in the product, we may provide migration guidance. For important data, we recommend keeping the original files — such as knowledge sources — on your side as well.
> [accordion] Which AI models are used?
>
> Anthropic's Claude family (Claude Opus 5.5 / Claude Sonnet 5.5 / Claude Haiku 5.5). You can choose a model per agent or as the workspace default, and switch models within a chat from the composer's model menu; a change applies from the next message. An agent or workspace that was set to an older generation (Opus 5 / Sonnet 5 / Haiku 4.5, or Opus 4.8 / Sonnet 4.6 before them) is not left behind: its chats run on the newest generation of the same line, and its settings show that model.
> [accordion] The URL now contains /w/… — do my old links still work?
>
> Yes. Every page is now addressed per workspace (`https://neo.jinba.io/w//…`), and links saved before the change are redirected to the new URL automatically. Because the workspace is part of the URL, a link you share opens only for members of that workspace — anyone else sees "Page not found".
## Chat
> [accordion] How do I change which key sends a message?
>
> By default `Enter` sends and `Shift + Enter` inserts a newline. You can switch to the `⌘ / Ctrl + Enter` style under "Sending messages" in "Settings > Personalize" — the choice is saved per device. In either mode, the Enter combination that is not the send key inserts a line break, the Enter that confirms Japanese IME conversion never sends, and on phones and tablets Return inserts a line break (send with the send button).
> [accordion] Can I change the model or agent mid-chat?
>
> The model, yes: pick another model from the composer's model menu and it applies from your next message, for that chat. The agent, no: a chat stays bound to the agent it started with, so start a new chat to use a different one. [Older chats](/en/pages/jinba_app_neo/chat/overview#older-chats) that show a read-only model badge keep their model.
> [accordion] Can I stop the AI while it's running?
>
> Yes. Click the "Stop" button shown during a run to halt at any time. After stopping, you can keep sending follow-up instructions in the same chat.
> [accordion] I'm seeing a message that I've hit the usage limit
>
> Read the message to see which of two limits was reached. The **monthly usage limit** is shared across your whole organization: wait for the reset date shown on screen, or contact your organization admin about raising the limit. If your organization has additional credit packs (top-ups beyond the plan), they are consumed automatically once the monthly allotment runs out — packs with an expiry first — so the monthly-limit message appears only after those are used up too. The usage screens show amounts in credits, and in a personal organization the monthly allowance is 1,200 credits ([Workspace settings](/en/pages/jinba_app_neo/settings/workspace)). The message you tried to send is returned to the composer, so nothing you typed is lost.
>
> A **chat-specific 24-hour limit** affects only the current chat. Wait for the rolling window to clear, or continue in a new chat; other chats remain available. Either limit can also stop a response part-way through. Whatever had already been written stays in the chat.
## Agents and Skills
> [accordion] If I delete an agent, do its chats disappear too?
>
> No. Chats that were attached to the agent are not deleted — they remain in your history as standalone chats. However, the agent's version history and audit log are deleted.
> [accordion] A Skill shows “Not loaded by AI”
>
> There is no fixed number of Skills, but in each chat the AI is given only as many Skills as fit in its list, oldest first. A Skill past that point is marked "**Not loaded by AI**" on the Skills tab or in the agent's Skills section, and the AI cannot use it in those chats. Remove or detach Skills you no longer use, or shorten Skill descriptions ([Skills Overview](/en/pages/jinba_app_neo/skills/overview)).
> [accordion] I want to tweak a shared Skill just for my agent
>
> Use "Copy and edit for this agent only" (fork) in the Skill editor. The original shared Skill is untouched, and you get a dedicated copy to edit.
## Connections and Knowledge
> [accordion] The AI can't see my jinba-flow flows
>
> Check that the flow is **published** on the jinba-flow side. Connections re-sync automatically when you open the Flow page or the composer's connector picker, and you can force a refresh with "**Refresh**" in the workspace's index on the Flow page. If the workspace has disappeared from the "Connected" list — or shows "**Unavailable**" once you turn on "**Show inaccessible workspaces**" in the "…" menu beside the heading — its flows are hidden because the Flow workspace may have been deleted, changed to Private, or stopped allowing your access. If it still exists, ask the owner to switch its visibility to Unlisted, invite you as a member, or add an external access rule as appropriate, then refresh the connection.
> [accordion] Can I connect an MCP server running locally?
>
> No. MCP servers need a public URL that Jinba App Neo's servers can reach over the internet. `localhost` and internal-network-only addresses cannot be used, and only the http-stream type is supported.
> [accordion] The content of a URL I registered as knowledge is stale
>
> URL sources keep a snapshot taken at registration time. Run "Re-fetch" on the source to update it to the latest content.
> [accordion] If I register a lot of knowledge, does all of it get loaded?
>
> The AI does not load knowledge up front: in a chat with an agent it sees the agent's sources as a list and reads the ones it needs, and in any chat it searches for the rest. What is limited is how many files are placed in its work environment when it runs code; anything beyond that gets an "**Auto-load off**" badge, and the AI can still read it via search, so it's worth registering.
## Memory and privacy
> [accordion] There's information I don't want the AI to learn
>
> Turn off "Learn from your chats" under "Settings > Memory" to stop new writes. Content already remembered stays and is still recalled until you remove it — edit or delete individual entries from the list, or erase everything with "Delete all."
> [accordion] Can other people see my memory?
>
> No. Your personal memory is yours alone. However, a shared agent's "agent memory" is shared among everyone who uses that agent.
> [accordion] Are connector credentials passed to the AI?
>
> No. API keys and tokens are stored encrypted and are designed so the AI cannot access them.
## Other
> [accordion] I found a bug / I have a feature request
>
> Send Beta feedback to [contact@carnot.ai](mailto:contact@carnot.ai). Including a screenshot and the steps to reproduce makes investigation much smoother.
# First Login
Source: https://docs.jinba.io/en/pages/jinba_app_neo/first-login
From the invitation email to your first workspace
Before you can use Jinba App Neo for the first time, you need to **join your organization** — create an account, verify your email address, and accept the invitation. Accounts are managed by Jinba's authentication service, **JinbaAuth** ([https://auth.jinba.io](https://auth.jinba.io)), and are shared across Jinba services such as Jinba App Neo and Jinba Flow.
> [!NOTE]
>
> Jinba App Neo is in Beta. Access requires an invitation to an organization, or an account issued by your administrator.
> [!TIP]
>
> **If your organization uses SSO** — when single sign-on is enabled for your organization, steps 1–4 (joining through an invitation email) do not apply. Open the sign-in URL your administrator gave you and continue from step 5. Ask your administrator or your Jinba representative which path applies to you.
## Overview
```mermaid theme={null}
graph LR
A["① Receive invitation"] --> B["② Sign up"]
B --> C["③ Verify email"]
C --> D["④ Accept invitation"]
D --> E["⑤ Sign in to Neo"]
E --> F["⑥ Open your workspace"]
```
| Step | Where | What you do |
| - | - | - |
| 1. Receive the invitation email | Your mail client | Open the invitation and check the links it contains |
| 2. Sign up | [auth.jinba.io/signup](https://auth.jinba.io/signup) | Create an account with the invited email address |
| 3. Verify your email | Your mail client | Open the link in the verification email (**required**) |
| 4. Accept the invitation | [auth.jinba.io/organizations](https://auth.jinba.io/organizations) | Click "Accept" under "Pending invites" |
| 5. Sign in to Neo | [neo.jinba.io](https://neo.jinba.io/) | Sign in with the account you created |
| 6. Open your workspace | Jinba App Neo | Open the shared workspace (switch to it if needed) |
> [!TIP]
>
> **If you already have a JinbaAuth account** (for example because you use Jinba Flow, and your email address is already verified), skip steps 2 and 3 and start at step 4: open the organizations link in the invitation email and accept the invitation.
## 1. Receive the invitation email
When an administrator invites you to an organization, you receive an email from **Jinba `noreply@jinba.ai`** with the subject **"Invitation to join \"**.
The body contains the inviter's name, the role you are granted, and **two links**.
```text Invitation email body theme={null}
invited you to join .
Role: MEMBER
Open the organizations page to review and accept the invitation:
https://auth.jinba.io/organizations
If you are not signed in yet, sign in with the invited email address first.
If you do not have an account yet, sign up first:
https://auth.jinba.io/signup
```
> [!NOTE]
>
> The language of the invitation email follows **the UI language of the person who sent it**, not your own. If it was sent from a Japanese console, the subject reads 「〈組織名〉 への招待」 and the body is the Japanese translation of the text above. Search your inbox for both if you cannot find it.
* **No account yet** — use the second link (`/signup`) to register (go to step 2)
* **Already have an account** — open the first link (`/organizations`) and accept the invitation (go to step 4)
> [!WARNING]
>
> Invitations expire after **7 days**. If yours has expired, contact your Jinba representative — an invitation can only be resent once it has expired. If the email never arrived, check your spam folder first.
## 2. Sign up
Open [https://auth.jinba.io/signup](https://auth.jinba.io/signup) to reach the **Create Account** screen, enter your name, email address, and password, then click **Create account**. If the sign-in screen appears instead, use **"Don't have an account?"** at the bottom to switch to sign-up.
> [!WARNING]
>
> **Register with the exact email address that received the invitation.** Invitations are bound to a specific address — if you sign up with a different one you will not be able to accept the invitation (the comparison is case-insensitive).

You can also sign up with a **Google or Microsoft account** ("Continue with Google" / "Continue with Microsoft"). In that case, pick the account whose address matches the invitation.
Passwords must satisfy the following policy:
| Requirement | Detail |
| - | - |
| Length | **At least 12 characters** (up to 128) |
| Character classes | Must contain **all four**: lowercase, uppercase, digit, and symbol |
| Reuse | Your 5 most recently used passwords cannot be reused |
| Breach screening | Passwords known from public data breaches are rejected |
> [!NOTE]
>
> **Creating the account does not sign you in.** Continue with the email verification in step 3.
## 3. Verify your email address
After the account is created you receive a verification email with the subject **"Verify your email"** (this message is **English only**). Open the link in it.
* Opening the link **signs you in automatically** and takes you straight to the organizations page ([auth.jinba.io/organizations](https://auth.jinba.io/organizations))
* The link is valid for **1 hour**. If it has expired, attempt to sign in at [https://auth.jinba.io](https://auth.jinba.io) and a fresh verification email is sent
> [!WARNING]
>
> **This step is mandatory.** Until your address is verified, clicking "Accept" in step 4 fails with an error and you cannot join the organization. If you signed up with a Google or Microsoft account, your address is already verified and you can skip this step.
## 4. Accept the invitation to your organization
Open [https://auth.jinba.io/organizations](https://auth.jinba.io/organizations) (the **Organizations** screen).
Your organization appears under **Pending invites** — click **Accept**. After accepting, you join the organization and it is listed under **Your memberships**.
> [!NOTE]
>
> * This acceptance is the shared "join an organization" step for all Jinba services, not just Jinba App Neo. Until it is done, signing in at step 5 will not show your organization's workspaces
> * Only invitations addressed to the email you are signed in with are listed
> * **Your memberships** lists shared organizations only. The personal organization created for you at sign-up is not shown
## 5. Sign in to Jinba App Neo
Go to [https://neo.jinba.io/](https://neo.jinba.io/) and authenticate with one of the following:
* **Email address and password**
* **Google account**
* **Microsoft account**
* **SSO** (if enabled for your organization)
Under the email field, a hint reads "**Use the email your invitation was sent to.**", and the "**Forgot your password?**" link sits beside the Password label.

> [!TIP]
>
> Bookmark [https://neo.jinba.io/](https://neo.jinba.io/) so you can get back to it quickly.
## 6. Open your workspace
On your first sign-in, a workspace of your own (**“\’s Workspace”**) is created automatically. Because that workspace is private to you, agents, skills, and knowledge shared across your organization do not appear there.
The first time you open Jinba App Neo after accepting the invitation, it takes you into the organization you joined: the workspace the invitation placed you in — the organization-wide shared workspace (named after the organization) when the invitation included it, otherwise the workspace you were invited to or one your team manages. If the invitation named no workspace, the organization-wide shared workspace opens, then another shared workspace you belong to, and your own only when neither exists. Membership is set up for you at the same time — an organization that has an organization-wide shared workspace adds every member to it on their first sign-in, and anyone invited to a specific shared workspace beforehand becomes a member of it in the same way. The **workspace name at the top of the sidebar** tells you which workspace you are currently in; later visits reopen the workspace you used last.
To switch to the shared workspace yourself, click the **workspace name button at the top of the sidebar**. It lists your current organization and the workspaces you belong to in it — select the shared one. The agents, skills, and knowledge shared with your organization then become available.
If your organization has set a usage notice, it opens as a popup ("**Jinba App usage notes**") when you enter one of its workspaces. Read it and press "**I understand**" to continue; it appears again the next time you sign in.
> [!WARNING]
>
> If the shared workspace is not listed, check that step 4 is complete and that you have been added as a member of that workspace. Workspace members are added by a workspace owner (see [Workspace settings](/en/pages/jinba_app_neo/settings/workspace)).
## Troubleshooting
> [accordion] I can't find the invitation email
>
> Check your spam folder and search for the sender `noreply@jinba.ai`. The subject is either "**Invitation to join \**" or its Japanese equivalent 「**〈組織名〉 への招待**」 (see step 1). If it is still missing, contact your Jinba representative — an invitation can be resent once it has expired (7 days).
> [accordion] Clicking Accept fails / I can't join the organization
>
> The most common cause is that **step 3 (email verification) is not complete**. Open the link in the "Verify your email" message and try again. If you cannot find that email, attempt to sign in at [auth.jinba.io](https://auth.jinba.io) and a new one is sent.
>
> If it still fails, the invitation may have expired (7 days), or it may have already been accepted or cancelled. Contact your Jinba representative.
> [accordion] I signed up but my organization doesn't appear
>
> You may have registered with a different address than the one that received the invitation — invitations are bound to a specific email address (compared case-insensitively). Let your Jinba representative know which address you use and we will reissue the invitation to it.
>
> Note that the personal organization created for you at sign-up is never listed under "Your memberships".
> [accordion] I signed in, but a "Verify your email address" screen appears
>
> Jinba App Neo cannot load your data until your email address is verified (step 3). When an unverified address is the problem, the app takes you to a screen headed "**Verify your email address**" — open the link in the verification email it mentions, or press "**Send it again**" to receive a fresh one. If the app is already open when this happens, the message "**We can't load your data until your email address is verified.**" appears instead, with a "**Resend the email**" link that takes you to the same screen.
> [accordion] I signed in but can't find the shared workspace
>
> Right after signing in you may be in your own private workspace. Switch using the workspace name button at the top of the sidebar (see step 6). If the workspace is not listed, ask its owner to add you as a member.
> [accordion] My password is rejected
>
> Passwords need at least 12 characters and must include lowercase, uppercase, digits, and symbols. Previously used passwords and passwords known from public data breaches are also rejected. If a compliant password is still rejected, try a different one.
> [accordion] I want to switch organizations / I sign in with SSO
>
> An SSO session can be locked to the organization you signed in with. To switch to another organization, sign out and sign in again.
## Next steps
> [card] [Quickstart](/en/pages/jinba_app_neo/quickstart)
>
> Send your first chat and create an agent
> [card] [Core concepts](/en/pages/jinba_app_neo/core-concepts)
>
> Understand how agents, skills, connectors, knowledge, and memory fit together
> [card] [Workspace settings](/en/pages/jinba_app_neo/settings/workspace)
>
> Review member invitations, roles, and workspace switching
> [card] [Organizations & member invitations](/en/pages/enterprise/organization)
>
> For administrators: how to issue, resend, and cancel invitations
# What Is Jinba App Neo?
Source: https://docs.jinba.io/en/pages/jinba_app_neo/introduction
Learn the scope of Jinba App Neo Beta and find its chat, agent, knowledge, and connector guides.
> [!NOTE]
>
> **Jinba App Neo is currently in Beta.** Features and screens may change without notice. Send feedback to [contact@carnot.ai](mailto:contact@carnot.ai).
## What is Jinba App Neo?
Jinba App Neo is a next-generation AI agent platform built on Anthropic's Claude. Create an "agent" for each use case and attach skills (playbooks), connectors (external integrations), and knowledge (reference material) to it — then put that purpose-built AI to work through chat.

It is the successor to the original Jinba App, with major advances in the following areas:
* **Agent-centric design** — Create multiple "agents," each bundling a model, system prompt, skills, connectors, and knowledge, and switch between them by purpose
* **AI execution environment** — The AI runs in a session environment isolated per message, safely performing file operations, code execution, web search, and more
* **Memory** — The AI learns your preferences and business terminology through chat and applies them in future conversations
* **Native MCP support** — Connect jinba-flow workflows or any MCP server as tools for the AI
## Key features
> [card] [Chat](/en/pages/jinba_app_neo/chat/overview)
>
> Work alongside your agents in conversation, with file attachments, a reference picker, and visibility into what the AI is doing
> [card] [Agents](/en/pages/jinba_app_neo/agents/overview)
>
> Create conversation partners that bundle skills, connectors, and knowledge, and share them with your team
> [card] [Knowledge](/en/pages/jinba_app_neo/knowledge/overview)
>
> Register internal documents, URLs, and Notion pages for the AI to ground its answers in
> [card] [Skills](/en/pages/jinba_app_neo/skills/overview)
>
> Manage the playbooks and instructions you want the AI to reuse, written in Markdown
> [card] [Connectors](/en/pages/jinba_app_neo/connectors/overview)
>
> Connect personal connectors like Gmail and Slack, jinba-flow, and custom MCP servers as tools for the AI
## How to use this documentation
* **Signing in for the very first time?** Follow [First Login](/en/pages/jinba_app_neo/first-login) — from the invitation email to your first workspace
* **New here?** Start with the [Quickstart](/en/pages/jinba_app_neo/quickstart)
* **Unfamiliar with a term?** See [Core concepts](/en/pages/jinba_app_neo/core-concepts)
* **Want feature details?** Browse the feature pages in the left navigation
* **Stuck?** Check the [FAQ](/en/pages/jinba_app_neo/faq)
* You can open this documentation from inside the app at any time — choose "**Documentation**" in the account menu
## Notes on the Beta
* Some features are rolled out gradually, so what you see may differ depending on your environment
* Screens and features may change in future updates
* Access the app at [https://neo.jinba.io/](https://neo.jinba.io/). To use the product, you need a workspace invitation or an account issued by an administrator
## Who this documentation is for
This documentation is for all end users of Jinba App Neo. No technical background is required (except for a few administrative features such as connecting custom MCP servers).
# Add sources
Source: https://docs.jinba.io/en/pages/jinba_app_neo/knowledge/add-sources
Registering from files, URLs, Notion, and Google Drive
## Uploading files
**1. Open Add knowledge**
Open "**Customize**" in the sidebar, pick the "**Knowledge**" tab, press "**Add**" in the top right, and choose "**Add knowledge**."
**2. Add files**
**Drag and drop** files or folders onto the drop zone, or click it to select files (multiple allowed). "**Select a folder**" picks a whole folder and keeps its structure. There is a file-size limit; you will see an error if you exceed it.
**3. Choose the destination, then add**
Once you have folders, pick the destination under "**Folder**" (recently used folders are offered as shortcuts). Press "**Add**." Each item is titled after its file name — change the title or add a description later with "**Edit**."
> [!TIP]
>
> You can also upload by dragging and dropping files directly onto the list view.
## Registering a URL
In "Add knowledge," enter the address in the "**URL**" field at the top (e.g., `https://example.com/handbook`). HTML pages are supported, along with PDF, Atom, and RSS feeds.
A snapshot is saved on registration. To pick up changes to the original page, run "**Re-fetch**" from the ⋮ menu on its page.
## Importing Notion pages
With the Notion integration, you can import Notion pages as knowledge.
**1. Open the Notion screen**
In "Add knowledge," press "**Notion**" under "**From other apps**." The dialog switches to "**Add Notion pages**."
**2. Connect Notion**
If Notion is not connected yet, press "**Connect Notion**." Authorization opens in a popup and brings you straight back to the dialog — files and inputs you have staged are kept. (Connecting from the Connectors page works too: [Personal connectors](/en/pages/jinba_app_neo/connectors/personal-connectors).) Share the pages you want to import with the integration — only shared pages can be imported.
**3. Paste page URLs and add**
Paste a Notion page URL (`notion.so/...`) and press "**Add**" beside the field; repeat for more pages. Press "**Choose**" to go back to the form, where the pages wait under "**To add**," then press "**Add**" at the bottom of the dialog.
"**Cancel**" (or Esc) on the Notion screen returns to the form without the pages picked there.
> [!NOTE]
>
> If you see "Notion returned an error (is the page shared with the integration?).", check that the target page has been shared with the integration.
## Importing from Google Drive
When Google Drive is available for your workspace, "**From other apps**" in "Add knowledge" also shows a "**Google Drive**" button.
**1. Open the Google Drive screen**
Press "**Google Drive**." The dialog switches to "**Choose from Google Drive**."
**2. Connect Google Drive**
If Drive is not connected yet, click "**Connect Google Drive**." Authorization opens in a popup and brings you straight back to the dialog. You always authorize **your own** Google account — the connection is personal, and other members cannot see your Drive through it. Which authorization route the button takes depends on how your workspace's connectors are set up; importing works the same either way.
**3. Pick files and add**
Browse My Drive and its folders, or use "**Search in Drive**" to find files. Select the files you want (multiple allowed) and press "**Choose**." Back on the form, they wait under "**To add**" — press "**Add**" to import them.
* Each file can be up to 25 MB
* Google Docs, Sheets, and Slides are imported as Word, Excel, and PowerPoint files, and Google Drawings as PDF. Other Google-native formats cannot be imported
* Use "**Re-fetch**" to pull in the latest content of an imported file
## Handling duplicate filenames
Adding a file with the same name to the same folder brings up a confirmation dialog.
* **Overwrite** — replace the existing file's content with the new file (the old content is lost)
* **Keep both** — the new file is saved under a different name
* **Cancel** — skip this file
## Editing and deleting sources
* Use "**Edit**" in a source's ⋮ menu (on its row or on its page) to change the title or description, and "**Move to folder**" to change where it lives. **The source type and its target (such as the URL) cannot be changed** — to switch to a different source, delete it and add a new one
* For an uploaded file, the stored file name follows the title (the original extension is kept), so the name you see on the page is the name that same-folder duplicate checks and the AI go by. A title another file in the same folder already uses is refused: "**A file with this name already exists in this folder. Choose a different name.**"
* Use "**Delete**" to remove a source. You can also select multiple sources and delete them in bulk
# Organize with folders
Source: https://docs.jinba.io/en/pages/jinba_app_neo/knowledge/organize
Folder hierarchy, multi-select and bulk operations, organizing from chat, downloads, auto-sync, and the auto-load limit
## Folders
Knowledge can be organized hierarchically with folders. On the "**Knowledge**" tab, folders and files live in a single table, with folders listed above files.
* Create a folder with "**New folder**" in the "**Add**" menu at the top right, or by right-clicking a blank area of the list. "**New subfolder**" on a folder's menu creates one inside it
* **Open** a folder by double-clicking it (on a touch screen, a single tap). The folder's name takes the place of the page title, and a path starting at "**Knowledge**" appears where the tabs were — click a folder in the path to jump to it, or "**‹**" to go up one level. Going back up returns you to where you were in that level's list
* Move sources with "**Move to folder**," or by dragging them onto a folder. **Folders can be dragged too** — pick one up and it moves with everything inside it. A folder cannot be dropped on itself, on its own contents, or back into the folder it already sits in — while you drag, rows that cannot receive the drop are greyed out
* Rename or delete a folder from its menu — the ⋮ button on its row, or right-click the row
> [!WARNING]
>
> Deleting a folder permanently deletes the folder, all of its subfolders, and every source inside. This cannot be undone. If agents use the folder's contents — attached directly or via folder auto-sync — the confirmation dialog lists the affected agents before you confirm.
## Multi-select and bulk operations
In the desktop layout you can select multiple items — **folders included** — and operate on them at once. A plain click opens a file, so select with `⌘ / Ctrl`-click, select a range with `Shift`, or drag a rubber-band over the list; Esc clears the selection.
* **Move** — move the whole selection to another folder. Drag and drop works too: dropping a selected row onto a folder moves the entire selection in one gesture, and the drag ghost shows how many items are moving. Dropping onto a **file** row instead means "put it where that file lives" — which is how you move something back out to the top level — and the whole destination level is highlighted while you drag. Dropping on the blank space below the last row (or beside the rows) files the selection into the level you are looking at — the top level when you are at the top, otherwise the open folder; this is not offered while a search is active. Dragging needs a mouse or trackpad — it is not available on touch screens. If a same-name file turns up in the destination that the list did not know about (someone else added it meanwhile), the move is refused with "**A file named "…" already exists in the destination. Rename it or tidy up the destination, then try again.**"
* **Delete** — remove the whole selection with a single confirmation. If the selection includes items or folders that agents use, the affected agents are listed first
* **Download** — download the selection as a ZIP (workspace knowledge only)
In an agent's Knowledge section (configuration panel), the agent's own folders can join the selection the same way for moving and deleting; folders mirrored from the workspace stay read-only.
### Same-name collisions when moving
If files you are moving collide with same-name files already in the destination folder, a confirmation dialog asks how to handle all of them at once:
* **Keep both** — the moved files are saved under a new name
* **Overwrite** — the existing files' content is discarded
* **Cancel** — the colliding files stay where they are; everything else still moves
## Organizing from chat
You can also tidy up knowledge by asking the AI in chat — "Move the onboarding docs into the HR folder" or "Rename this file to 2026 price list."
* Moving and renaming works for both sources and folders, and applies immediately — to reverse a move, just ask again
* Naming a destination folder that doesn't exist yet creates it
* Deleting is not available from chat — use the Knowledge tab
## Downloading
* **Single file** — "**Download**" in the file's row menu, or the download button on its page
* **Multiple items** — select two or more (folders can be part of the selection) and press "Download" in the bulk toolbar to receive one ZIP
* **Folder** — "Download" on the folder's menu zips the folder's entire contents, subfolders included, preserving the folder structure
ZIP downloads (multi-select and folder) are available in workspace knowledge only — not in an agent's Knowledge section — with a limit of 500 files / 200 MB total per archive.
## Folder auto-sync (agent attachment)
When attaching knowledge to an agent, you can sync a folder **wholesale**.
* Folders set to auto-sync show an "**Auto-synced**" badge
* **Files added to the folder later are automatically reflected in the agent**
* "**Remove from this agent**" on the folder's menu detaches the folder and every item that came from it from this agent — nothing is deleted from the workspace, and an item you also attached on its own stays attached
* Agents that auto-sync a folder count toward the "**Used by**" figure in each file's "**File details**," and are included in delete warnings
> [!TIP]
>
> Auto-sync your "Sales materials" folder to a Sales agent, and the agent will always see the latest content — just drop new files into the folder.
## Columns and type icons
Each row shows an icon for what it holds: a folder, the file-type icon for an uploaded file (the same artwork the AI's knowledge-search results use), a link for a URL, or the Google Drive or Notion mark for an item imported from there. The "**Type**" column names the kind in words — Folder, a file kind (Document / PDF / Spreadsheet / Slides / Image / Code / Text / Archive / File), or the source type for URLs, Google Drive files, and Notion pages.
The table's columns are "**Name**," "**Type**," "**Sharing**" ("**Everyone in workspace**" or "**Everyone in organization**"), "**Size**," and "**Updated**." Click any column header to sort by it, and click it again to reverse the order; folders always stay above files. A narrow window hides some of the columns.
## The auto-load limit
The AI reads knowledge on demand, from the agent's list of sources in a chat with an agent, or by searching. What is limited is how many knowledge files are also placed in the AI's work environment when it runs code (to total a spreadsheet or chart a CSV, for example).
* Sources beyond the limit show an "**Auto-load off**" badge
* They are not placed in the work environment, but **the AI can still read them via search** when needed
> [!TIP]
>
> Individually attached files, agent-only files, and folder-synced files all count toward the same limit, in title order — a large synced folder can push a file you attached on purpose past it. Keep the agent's total number of knowledge files within the limit when the AI needs to work on them with code, and check for the "**Auto-load off**" badge.
## Search, filters, and file pages
* Use the search box at the top ("**Search knowledge…**") to find files and folders by name. The search filters the list in place and is scoped to the folder you are in: folders on the way to a hit open automatically, and the footer reports "**N matches**." While you search inside a folder, a "**Search everywhere (N)**" link appears with the total across the whole workspace — click it to widen the search back out
* The pills above the list — "**All**," "**Created by me**," and "**Created by others**," each with its count — narrow the list by who created each item. A folder stays listed while something inside it matches, so you can still open it, and an item whose creator is not known counts as created by others. When a pill leaves nothing, the list says so: "**No items created by you.**" / "**No items created by others.**"
* Clicking a file opens it on its own page. The bar at the top holds "**‹**" (back to the file's folder) and the path to the file — each folder in it opens that folder — followed by "**File details**" (i): folder, owner agent, type, size, when it was updated and by whom, how many agents use it ("**Used by**"), and, where they apply, when it was fetched and its description. On the right sit the controls the file's format supports (page number, search, download, zoom), "**Use in chat**," and a ⋮ menu with "**Edit**," "**Move to folder**," "**Re-fetch**" (URLs, Google Drive files, and Notion pages), and "**Delete**." The browser's Back button leaves the page too, and each file page has its own address you can link to. On a phone, search and download move into the ⋮ menu
* A URL, Google Drive file, or Notion page has no document to draw, so its page shows the source's mark, the title as a link, and what the item points at — the URL, the Drive file name, or the Notion page URL. A Google Drive file or Notion page also gets a button to the original in the bar: "**Open in Google Docs**," "**Open in Google Sheets**," or "**Open in Google Slides**" for Google's own formats, "**Open in Google Drive**" for any other Drive file, and "**Open in Notion**" for a Notion page. A cloud item whose sync failed carries a warning badge on its mark
* A file whose content cannot be rendered reads "**Preview is not available for this item.**" and offers "**Download**" when a stored file is behind it
* The footer counts what you are looking at — "N folders · N documents"
# Choose and Use Knowledge in Jinba App Neo
Source: https://docs.jinba.io/en/pages/jinba_app_neo/knowledge/overview
Understand knowledge source types, folders, sync status, and how to use an item in chat.
**Knowledge** is where you keep the material the AI reads to ground its answers. Register internal documents, URLs, Notion pages, and Google Drive files, organize them into folders, and attach them to agents. Workspace-shared knowledge is managed on the Customize page: open "**Customize**" in the sidebar and pick the "**Knowledge**" tab.
The tab lists folders and files in **one table**, folders above files, with "**Name**," "**Type**," "**Sharing**," "**Size**," and "**Updated**" columns. Click a file to open it on its own page; double-click a folder to open it, and "**‹**" takes you back up a level. See [Organize with folders](/en/pages/jinba_app_neo/knowledge/organize) for the details.
## Source types
| Type | Description |
| - | - |
| **Files** | Uploaded PDFs, Office documents (the legacy `.doc` / `.xls` formats included — their text is read and they open in the preview), text files, and more |
| **URLs** | Imported web pages (HTML / PDF / Atom / RSS) |
| **Notion pages** | Connect the Notion integration and paste a page URL to import |
| **Google Drive** | Files imported from a connected Google Drive |
> [!NOTE]
>
> Chat is an entry point too: files the AI generates — and files you attach to a chat — can be saved straight into Knowledge, either from the deliverable card's bookmark icon or simply by asking the AI ("save this attachment to Knowledge, in the Sales folder"). A confirmation card shows the name, destination folder, and sharing scope before anything is saved, warns if the name collides with an existing file (it is saved under a new name — nothing is overwritten), and offers "**Change…**" to pick a different name, folder, or scope. See [AI Activity and the Workspace Panel](/en/pages/jinba_app_neo/chat/agent-activity).
## Where knowledge lives
| Location | Where to manage it | Available to |
| - | - | - |
| **Workspace shared** | Sidebar > **Customize** > **Knowledge** tab | Every agent it is attached to |
| **Agent-specific** | The Knowledge section of the agent's configuration panel | That agent only |
Agent-specific knowledge can be shared later: in a chat with the agent, ask the AI to make an item available to the whole workspace. The item moves into the workspace-shared knowledge (to the top level, or a folder you name), and the agent keeps access to it.
## Sync status
Registered sources go through an import (sync) process before the AI can reference them. Open a source on the Knowledge tab to see where it stands:
* A Google Drive file or Notion page shows a chip in its page's bar: "**Synced**," "**Connecting…**" while the import runs, or "**Sync failed**"
* A URL, Google Drive file, or Notion page that has not finished importing says so under its title — "**Pending**," or "**Error**" followed by the reason the import failed
* While a source is still importing or its import failed, "**Use in chat**" on its page is disabled; hover it to see why (for example "**Still syncing**" or "**Sync failed — re-fetch first**")
For URLs, Notion pages, and Google Drive files, "**Re-fetch**" in the page's ⋮ menu pulls in the latest content — and retries an import that failed.
## How the AI sees knowledge
* In an agent's chats, the AI sees the knowledge attached to that agent as a list and reads an item when it needs it
* When the AI runs code, a limited number of those files are also placed in its work environment (to total a spreadsheet, for example). Sources beyond the limit show "**Auto-load off**," and the AI can still **search for and read** them, so large libraries remain useful
* You can also reference a specific file or folder on the spot with `[[` in the chat composer
## Use an item in chat
"**Use in chat**" takes you to a new chat with a file or folder already attached to the composer as a reference. Type your question and send; the AI grounds its answer in the material you started from.
* On the Knowledge tab, hover a file or folder row and press its "**Use in chat**" button. It is also the first item of the row's ⋮ menu (or right-click the row), and a file's own page has it in the bar
* Offered for sources with a stored file behind them and for folders
* If you already have a draft on the new-chat screen, the reference is added to it — nothing you typed is lost
## Next steps
> [card] [Add sources](/en/pages/jinba_app_neo/knowledge/add-sources)
>
> Registering from files, URLs, Notion, and Google Drive
> [card] [Organize with folders](/en/pages/jinba_app_neo/knowledge/organize)
>
> Folder hierarchy, auto-sync, and the auto-load limit
# Start with Chat and Agents in Jinba App Neo
Source: https://docs.jinba.io/en/pages/jinba_app_neo/quickstart
Sign in to Jinba App Neo, send a first chat message, and create an agent.
Jinba App Neo is available at **[https://neo.jinba.io/](https://neo.jinba.io/)**.
> [!NOTE]
>
> Jinba App Neo is in Beta, so access requires an invitation or an issued account.
## 1. Sign in
**1. Open the sign-in page**
Go to [https://neo.jinba.io/](https://neo.jinba.io/) and open the sign-in page.
**2. Authenticate with your account**
Sign in using one of the following methods:
* **Email address and password**
* **Google account**
* **Microsoft account**
* **SSO** (if enabled for your organization)
**3. Enter your workspace**
After signing in, the chat screen opens. If you were invited to a workspace, signing in with the email address the invitation was sent to adds you as a member automatically.
On your first sign-in you may land in a workspace of your own — use the workspace name button at the top of the sidebar to switch to a workspace shared with your organization.
> [!NOTE]
>
> If this is your first time, you first need to complete **invitation email → sign up → accepting the organization invitation**. See [First Login](/en/pages/jinba_app_neo/first-login) for the full walkthrough.
## 2. Send your first chat
**1. Open a new chat**
Select "New chat" in the sidebar. The Home that opens offers example requests and a Quick access row ([Chat overview](/en/pages/jinba_app_neo/chat/overview)), but you can simply type.
**2. Type a message**
Write your request in the input box. For example:
> Research our competitors' pricing pages and summarize them in a comparison table
> [!TIP]
>
> Press `Enter` to send and `Shift + Enter` (or `⌘ / Ctrl + Enter`) for a new line. The Enter that confirms IME input never sends by accident, and you can change the send key in Settings.
**3. Watch the AI work**
You can see the AI thinking and running tools in real time. Use "Stop" at any time to stop the current run.
## 3. Create your first agent
Once you are comfortable with chat, create an agent specialized for a specific purpose.
**1. Open the Agents page**
Select "Agents" in the sidebar and click "New agent".
**2. Set a name and role**
Enter a name (e.g., Sales Analyst) and a description. With "Auto-generate", the AI drafts a description and system prompt from the name.
**3. Attach resources**
Open the configuration panel with the **gear icon** on the new agent's detail page, then attach Skills, Connectors, and Knowledge. See [Attach resources to an agent](/en/pages/jinba_app_neo/agents/attach) for details.
**4. Chat with the agent**
Start a conversation right on the agent's detail page, or pick the agent with `@` in the chat input box.
## 4. Next steps
> [card] [Core Concepts](/en/pages/jinba_app_neo/core-concepts)
>
> Understand how agents, Skills, Connectors, Knowledge, and Memory fit together
> [card] [Connect jinba-flow](/en/pages/jinba_app_neo/connectors/jinba-flow)
>
> Make your existing workflows callable as tools for the AI
> [card] [Add Knowledge](/en/pages/jinba_app_neo/knowledge/add-sources)
>
> Register internal documents to improve the accuracy of the AI's answers
> [card] [Understand Memory](/en/pages/jinba_app_neo/settings/memory)
>
> Learn how the AI remembers things about you and how to manage it
# Account Settings
Source: https://docs.jinba.io/en/pages/jinba_app_neo/settings/account
Profile, your custom instructions, and organization usage
Under "**Personal > Account**" in Settings, you manage your own account information.

## Profile
Profile information such as your display name and email address is managed by **JinbaAuth**, the authentication platform.
* To make changes, use the "**Update in JinbaAuth**" button to go to the JinbaAuth screen
* Sign-in settings such as password changes and two-factor authentication are also managed in JinbaAuth
## Your instructions (custom instructions)
You can register instructions that are automatically applied to every chat with every agent (up to 3,000 characters).
* Examples: "Always respond in Japanese," "I prefer concise answers," "I'm a backend engineer in fintech"
* Write anything you always want followed: tone, language, format, your role, and so on
> [!TIP]
>
> Memory is rewritten automatically by the AI, but "Your instructions" **stay exactly as you wrote them**. Put rules you want enforced reliably here.
## Organization usage
You can view a snapshot of your organization's subscription usage (plan, member count, storage). The figures are aggregated across all workspaces.
# Personalize
Source: https://docs.jinba.io/en/pages/jinba_app_neo/settings/appearance
Theme, language, font size, the send key, tips while you wait, and the sidebar on small screens
Under "**Personal > Personalize**" in Settings, you can adjust how the app looks and behaves for you.
> [!NOTE]
>
> Everything on this page is stored in your browser. If you have Jinba App Neo open in several tabs, a change here takes effect in the other tabs immediately — no reload needed.
## Theme
| Option | Description |
| - | - |
| **Light** | Bright color scheme (default) |
| **Dark** | Dark color scheme |
| **System** | Follows your OS setting automatically |
## Language
Choose the app's display language: **日本語 / English**. The same choice is also offered as a "**Language**" row in the account menu at the bottom of the sidebar.
> [!NOTE]
>
> This setting changes **the display language of the interface**. In chat, the AI generally responds in the language you write in (an explicit instruction always wins).
If you have never chosen a language here, sending a prompt in Japanese triggers a one-time banner offering to switch the interface to Japanese — accept to switch, or decline to keep the current language. Once you pick a language here, the banner never appears.
## Font size
Choose the app-wide text size: **Small / Default / Large**. Spacing scales proportionally to keep the layout balanced. Browser zoom (`⌘/Ctrl` + `+` / `-`) works alongside it.
## Sending messages
Choose which key sends a chat message — the other inserts a line break.
| Option | Behavior |
| - | - |
| **Enter** (default) | `Enter` sends; `Shift + Enter` inserts a newline |
| **⌘ / Ctrl + Enter** | `⌘ / Ctrl + Enter` sends; `Enter` inserts a newline |
* In either mode, the Enter combination that is **not** the send key inserts a line break. The choice is saved **per device**
* The modifier is the one your device uses and only that one — `⌘` on macOS, `Ctrl` on Windows and Linux
* On phones and tablets, Return inserts a line break by default, regardless of the option above. Touch devices additionally show a "**Keep this behavior on touch screens**" checkbox that applies your chosen send key ("this behavior") to the touch device as well — turn it on for a tablet with a hardware keyboard
## Sidebar on small screens
Choose how the sidebar behaves on portrait devices and narrow desktop windows.
| Option | Behavior |
| - | - |
| **Keep it open** (default) | The sidebar never collapses on its own |
| **Fold to icons** | On those sizes, the sidebar folds down to an icon rail to give the page more room |
This setting only affects those sizes — you can collapse or expand the sidebar yourself at any width, and the choice is saved **per device**.
## Tips while you wait
While the AI is thinking, a one-line "**Tips:**" hint about using Jinba App can appear under the status row in the chat ([AI Activity](/en/pages/jinba_app_neo/chat/agent-activity)). "**Tips while you wait**" switches between "**Show tips**" (default) and "**Don't show**"; the choice is saved **per device**. The ✕ on a tip ("**Hide tips**") hides them for the rest of the session without changing this setting.
# Memory
Source: https://docs.jinba.io/en/pages/jinba_app_neo/settings/memory
How the AI learns about you, and how to manage what it learns
The AI in Jinba App Neo gradually learns your preferences and business terminology through chat and applies them in future conversations. Manage this **personal memory** under "**Personal > Memory**" in Settings.
> [!NOTE]
>
> Your personal memory is **invisible to other users**. The AI recalls and adds to the same personal memory in every workspace of your organization, but it does not carry over to another organization's workspaces. [Agent memory](/en/pages/jinba_app_neo/agents/memory), shared per agent, is managed separately.
## Controlling learning and recall
| Switch | Description |
| - | - |
| **Learn from your chats** | Once a chat has settled — about 30 minutes after the last exchange — the AI reads back that chat and writes down what is worth remembering. A chat you keep coming back to is read again at most once a day. During a chat it writes only when you ask it to remember something. Turning it off stops new entries; existing memories remain and are still recalled in chats — delete them under Export & delete below if you want that to stop too |
| **Recall past memory** | The AI consults past memories when responding. Turning it off keeps writing new entries but stops using them in responses |
> [!NOTE]
>
> Turning off "Learn from your chats" also stops writes to agent memory in chats with shared agents.
## Viewing and managing memories
You can review the list of everything the AI remembers about you.
* Each entry can be **edited or deleted individually**
* Recently updated entries carry a "Recent" badge
* If something incorrect was learned, edit or delete the entry
## Bulk export and deletion
For compliance needs (GDPR deletion requests, offboarding cleanup, and the like), you can operate on your memory as a whole.
* **Export all** — download your entire memory as a ZIP
* **Delete all** — permanently erase all memory (including the underlying store). This cannot be undone. Your "Learn from your chats" setting is kept: if it is on, learning starts fresh from an empty state in your next chat; if it is off, nothing new is recorded
You can also request the export from chat — ask "export my memory" and the AI replies with a download link for the same ZIP. "Delete all," by contrast, is available only on this screen; it cannot be performed from chat.
## Memory vs. "Your instructions"
| | Memory | Your instructions |
| - | - | - |
| Written by | The AI (automatic) | You (manual) |
| Contents | Preferences, terminology, and context learned from conversations | Rules you always want followed |
| Rewritten by the AI | Yes | No |
A good split: put rules you want enforced reliably in [Your instructions](/en/pages/jinba_app_neo/settings/account), and leave day-to-day context to learning.
# Workspace Settings
Source: https://docs.jinba.io/en/pages/jinba_app_neo/settings/workspace
Workspace info, default model, member management, plan, and the danger zone
The "**Workspace**" group in Settings (General / Members / Connectors / Activity) is where you manage settings that affect the whole workspace. Most operations require **owner permission**. The "**Usage**" pane and, for organization owners and admins, the "**Organization settings**" entry sit in the "**Organization**" group underneath.
Settings opens as a dialog over the page you are on. A link of the form `https://neo.jinba.io/w//settings?tab=members` opens the dialog straight on that pane (`tab` can be `account`, `memory`, `appearance`, `workspace`, `members`, `connectors`, `activity`, or `usage`); once it is open, the address bar shows the workspace home again. On a narrow screen the same panes open as a sheet, without the Connectors pane and the Organization entry.
## Workspace info
* **Workspace name** — shown in the sidebar, the account menu, and shared agents (owners only)
* **Workspace ID** — used for things like jinba-flow MCP server integration. It is also the `/w//` segment that every page URL now carries
## Default model
The model used for chats started without an agent (ad-hoc chats), and the starting model of agents newly created in the workspace.
* A change takes effect from the next message, including in existing ad-hoc chats (not [older chats](/en/pages/jinba_app_neo/chat/overview#older-chats)); a chat where a model was picked in the composer keeps that model. Saving first asks for confirmation ("**Change model**"), which warns that a chat switching models mid-conversation may change its response style and quality
* Each agent's model is set in the Settings section of that agent's configuration panel
* A default saved on an older generation (Sonnet 5, Sonnet 4.6, …) is not left there: ad-hoc chats run on the newest generation of the same line, the picker shows that model, and a **new agent** created in the workspace starts on it too
## Member management
The Members tab is a single card with a segmented control across the top — "**In workspace**," "**Invited**," and "**Not added**" — so "where does this person stand with this workspace?" is answered in one place. Each segment carries a count. Most actions require owner permission.
### Inviting by email
The "**Invite**" button (owners) opens the "**Invite a member**" dialog, where you enter an email address and a role. When someone signs in with that email address, they are added as a member automatically.
* Invitees do **not** need to belong to this workspace's organization — workspace membership itself grants access. Someone invited from outside the organization joins as a **guest**: they can work in the workspace, but the organization's shared agents and organization settings stay out of reach, and the workspace carries a "**Guest**" badge in their workspace switcher, where its organization is listed as "**\ (limited access)**" ("**Limited-access workspaces**" when the organization has no name). Hovering either explains what stays out of reach
* You cannot invite once the plan's member limit is reached
### Invited (pending invitations)
The "**Invited**" segment lists people who have been invited but haven't joined yet. Void an invitation with "Revoke."
### Not added (organization members)
The "**Not added**" segment lists members of the organization who are **not in this workspace yet**, so an owner sees the gap without going looking. It is paged rather than loaded all at once, so it scales to a large organization:
* Add one person with the per-row "**Add**," or tick several and use "**Add to workspace**" ("**Select every member shown**" and "**Clear selection**" help when a page holds many)
* "**Load more**" fetches the next page. A note — "This covers part of the organization. Load more to keep looking..." — tells you when only part of the directory has been checked so far
* People who already have an account become members right away; people who have never signed in join automatically on their first sign-in. The plan's member limit applies here too
* When no one outside the workspace turns up, the segment reads "**No one outside this workspace turned up in the part of the organization we checked.**"
### Roles
| Role | What it allows |
| - | - |
| **Owner** | Everything (changing settings, managing members, deletion, and more) |
| **Member** | Regular use (chatting, creating agents, and more) |
* Change roles with "Promote to owner" and "Demote to member"
* The last owner cannot be demoted. Promote another member first
### Removing members
Remove members from the member list. To remove another owner, demote them to member first.
## Connector access
The "**Connectors**" tab ("**Connector access**") lets a workspace owner restrict which external connectors this workspace can use, narrowing further whatever the organization allows. Each connector is a switch with its state underneath: "**Available in this workspace.**", "**Blocked in this workspace.**", or — when the organization has disabled it — "**Disabled by your organization. It can't be changed in a workspace.**" with an "**Org-disabled**" tag, which a workspace cannot lift. Members see the list read-only ("**Only the workspace owner can change connector access.**"). Press "**Save**" to apply.
* The personal connectors listed here are **Slack** and **Notion**; the other catalog services are governed at the organization level
* A blocked connector's card on the **Connectors** tab of Customize shows a lock in place of its "**+**" or "**⋮**", and its page reads "**This connector is blocked by your workspace's settings.**"; a connected one reads "**Blocked**" instead of "**Connected**". Existing connections are not removed, but the AI stops using them until the block is lifted ([Connectors overview](/en/pages/jinba_app_neo/connectors/overview))
## Workspace activity
The "**Activity**" tab is an append-only log of operations in this workspace — agents, skills, knowledge, files, tasks, members, settings and more. Where an operation recorded its before/after values (a workspace rename, the default model, a member's role, and the like), the row lists them under "**Changes**" as "name: before → after". Visible to owners only.
## Usage
The "**Usage**" tab (in the "Organization" group) shows your current plan (Free / Standard / Professional / Enterprise), usage bars for credits and storage, and the member count. Credit and storage limits are shared across the whole **organization**, and the bars read accordingly: the full bar is the organization's limit, the light red fill is organization-wide usage, and the dark red fill is this workspace's share — the percentage shown is the organization-wide figure. Hover either fill for a tooltip under the bar that leads with the fill's colour swatch: "**Org-wide usage: n% of the limit**" or "**This workspace's usage: n% of the limit**". The credits bar in the account menu at the bottom of the sidebar reads the same way. To change plans, talk to your workspace owner.
Usage is shown in **credits** on every plan: the row reads "**Org credits (monthly)**", the bar in the account menu is labelled "**Org credits**", and the task history shows each run's usage in credits. In a personal organization (the Free plan), the account-menu bar shows the credits used against the limit (for example "**480 / 1,200**") rather than a percentage. The monthly allowance of a personal organization (the Free plan) is **1,200 credits**.
If your organization has been granted additional credit packs (top-ups beyond the plan), they are drawn on automatically after the monthly allotment is used up — packs with an expiry first — and the remaining balance shown includes them.
## Organization settings
Organization owners and admins can manage the whole organization from "**Organization settings**" in the Settings screen (workspace list, members, connector / tool access controls, **Shared assets** for agents and skills shared org-wide, workspace auto-creation, usage, run history, operation logs, and more). The "**Operation Logs**" section lists each operation's before/after values under "**Changes**" and includes them in its CSV export.
The Settings section includes a "**Sign-in & home notice**" card for organization-specific usage rules or policies. Turn on "**Show the notice**," enter up to 2,000 characters, and save; line breaks are preserved. A bare `http://` or `https://` URL becomes a link, as does `[label](https://example.com)`; other markup is shown as plain text. Members see the notice as a popup ("**Jinba App usage notes**") when they open a workspace of the organization after signing in. It closes only with "**I understand**" — not with Esc or a click outside — and opens again after their next sign-in. (It is shown on the sign-in page as well only in deployments set up for a single organization, such as on-premises installs.) Turning the switch off hides it without deleting the saved text, and an empty text stays hidden even if the switch is on.
The organization's "**Usage**" section is a self-serve usage report. Switch the period between "**This month**," "**Last month**," and "**Last 30 days**" (days are counted in Japan Standard Time), and switch the view between "**Overview**," "**By workspace**," and "**By member**." Clicking a workspace row drills into that workspace's daily detail and its per-chat, per-agent, and per-model totals. The per-chat view shows chat titles so heavy consumption can be audited — never chat contents — and an organization can have titles hidden by policy, in which case rows read "Chat with \" instead.
## Danger zone
> [!WARNING]
>
> The following operations cannot be undone. Review carefully before proceeding.
* **Leave workspace** — until you are invited again, you lose all access to this workspace's chats, agents, and knowledge. The sole owner cannot leave
* **Delete workspace** — every chat, agent, skill, knowledge source, file, and connector inside is deleted. You must type the workspace name to confirm
## Creating and switching workspaces
* The workspace switcher at the top of the sidebar is organized **organization first**: the menu shows the current organization, a search box, and that organization's workspaces, with "Create workspace," "Workspace settings," and "Invite members" (owners) at the bottom
* To change organizations, click the organization name at the top of the menu (hovering it highlights the row and shows "**Select other organization**") — or the chevron at the row's end — and pick one from the list that opens; you land on the workspace you last used in that organization. Organization owners and admins also get a gear shortcut to Organization settings on the organization row. When you belong to more than one organization, that list carries its own "**Search organizations…**" box (filter by name or slug; Enter switches to the first match)
* In the creation dialog, "**Add all organization members**" loads the organization's member directory into a list you can prune (filter by name or email, remove individual rows). Everyone left on the list is added when the workspace is created — members who have never signed in join automatically on their first sign-in. This is a one-time addition, not a continuous sync with the organization
* An organization can have an **organization-wide shared workspace**, named after the organization, that every organization member joins automatically — on their first sign-in, or the next time they open the app once the workspace exists. The first member to arrive becomes its owner, everyone after that joins as a member. Someone removed from it (or who left) is not added back automatically; an owner adds them again from the Members tab
* SSO sessions may be locked to the organization you signed in with. In that case, sign out first, then switch
# Create and Edit Skills
Source: https://docs.jinba.io/en/pages/jinba_app_neo/skills/create
Using the skill editor — writing by hand, importing a SKILL.md or a folder, and managing supporting files
## Opening the skill editor
* **Workspace-shared skills**: Sidebar > **Customize** > **Skills** tab > "**Add**" > "**Create manually**"
* **Agent-specific skills**: Agent's configuration panel > **Skills** section > "**Add skills**" > "**Create new**"
The "Add" menu's other item, "**Create with AI**," does not open the editor: it takes you to a new chat with a starter message already in the composer ("Let's create a new skill together. First, ask me what the skill should be able to do. Once the content is settled, propose saving it as a skill."). Edit it if you like and send; the AI interviews you and ends with a skill suggestion card ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat)).
A new skill opens in a drawer from the right. "**Expand**" in its header widens it to nearly the full window and "**Collapse**" brings it back (the choice is remembered on that device). You can also drag the handle on the drawer's left edge to set the width, between 420 px and 92% of the window; a double-click on the handle restores the default width.
To edit an existing skill, choose "**Edit**" from its row's "⋮" menu on the Skills tab (or right-click the row), or from the "⋮" on the skill's page: the skill's page turns into the editor. An agent's Skills section opens the **same editor**, with the same fields, the same validation, and the same save.
If you leave the editor with unsaved input — "Cancel," "×," Esc, "‹ Skills," or the back arrow of an agent's configuration panel — it asks first ("**Discard changes**," or "**Discard new skill**" for a skill not yet created). Choose "**Discard**" to leave, or close the prompt to keep editing.
## The editor
**1. Name and describe the skill**
* **Skill name** — e.g., PDF Extract. Names are unique within the workspace: save a name another skill already uses (ignoring case and surrounding spaces) and it is stored with a number appended — "PDF Extract (1)", then "(2)", and so on — whether you are creating, renaming, or saving a skill from a chat suggestion. On the Skills tab, a new skill left without a name is saved as "**New Skill**"
* **Description** — what this Skill does and when it should be invoked. Be specific: the AI uses this to decide whether to use the skill
**2. Write the instructions**
Write the Markdown body in "**Instructions**." The two buttons beside the label switch between the source and a "**Preview**" of how it renders. Pasting a whole SKILL.md (starting with its `---` frontmatter) into the box fills in the form.
**3. Save it**
"**Create**" saves a new skill and "**Save**" saves your edits. Where a new skill is saved depends on where you created it:
* On the Skills tab — **workspace shared**, attachable by every agent
* From an agent's Skills section — **this agent only**
Creating a **workspace-shared** skill asks for a final confirmation ("**Create workspace skill**") — other members will be able to see and use it, so make sure it contains nothing personal or private.
## Importing a SKILL.md, a folder, or a .zip
When you create a skill on the Skills tab, a box at the top of the form reads "**Drag a SKILL.md, a skill folder or a .zip here**." Drop onto it, click it to pick a SKILL.md or a `.zip`, or click "**Choose a folder**" under it (not offered on touch devices). In an agent's Skills section the box takes a SKILL.md only ("**Drag a SKILL.md here**").
* **One SKILL.md** (up to 1 MB) fills in the form: name, description, and body (allowed tools in its frontmatter are kept)
* **A skill folder or `.zip`** — the layout Claude Desktop and Claude Code use, `SKILL.md` plus its supporting files — becomes a skill with every file after the "**Create workspace skill**" confirmation, and its page opens. `SKILL.md` must sit at the top of the folder (in a `.zip`, at the top or inside its one top-level folder). Hidden files (such as `.DS_Store` or `.git/`) and `__MACOSX/` are left out, and the message says how many
* Limits: the `.zip` up to 8 MB, `SKILL.md` up to 1 MB, each supporting file up to 5 MB, and up to 100 supporting files and 50 MB across them (`SKILL.md` not counted). If anything breaks the rules, nothing is created and the box lists each problem with the file it is about
* The name comes from the SKILL.md frontmatter, then the folder name, then the `.zip` file name; a name already in use gets a number
* **Several files or folders at once** each become a skill after one confirmation for the whole batch. A banner then counts how many were added and how many could not be imported
A SKILL.md can also be registered from chat — attach the file to a conversation and ask the AI to register it ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat)). A folder or `.zip` is imported on the Skills tab only.
> [!WARNING]
>
> One confirmation covers a whole batch: every file or folder you drop together becomes a **workspace-shared** skill. Make sure they contain nothing personal or private before you confirm.
## Supporting files
> [!NOTE]
>
> In chats, the AI starts from a skill's `SKILL.md` and opens a supporting file when the instructions point to it, so refer to each file from the instructions by its path (for example "follow the layout in `references/format.md`"). It reads text files directly. Unless your organization's "**Tool Access**" turns off "**Document generation**" or "**Code execution**," the skill's whole folder — images and Office files included — is also placed in the AI's work environment once the skill is loaded, so a script or a template there can be used. [Older chats](/en/pages/jinba_app_neo/chat/overview#older-chats) cannot read supporting files.
A skill can hold files beside `SKILL.md` — reference documents, templates, examples, scripts. On the skill's page, anyone who can edit the skill manages them in the file tree (`SKILL.md` itself is changed through "Edit"):
* "**Add file**," the first row of the tree, offers "**New text file**" (type a path from the skill's folder, such as `references/notes.md`, then write the content and save it) and "**Upload file**" (any file type, up to 5 MB; you choose the path, and a file already at that path is replaced)
* A picked file's "⋮" menu offers "**Edit**" (text files only), "**Replace file**," and "**Delete**." Renaming or moving a file is not offered: upload it at the new path and delete the old one
* "**Update from folder**" or "**Update from .zip**" in the page's "⋮" menu replaces the skill's SKILL.md and all of its supporting files at once, after a "**Replace skill**" confirmation. Supporting files the folder does not contain are removed, and the name, description, and allowed tools come from its SKILL.md (one without a name or description keeps the current ones). A folder identical to the current version adds no version. Touch devices offer "Update from .zip" only
* Every change is a new version, so an earlier version can be restored ([Skills Overview](/en/pages/jinba_app_neo/skills/overview), Version history). A version holds up to 100 supporting files and 50 MB in total, and new files count toward your organization's storage limit
* None of this is offered for a skill shared from another workspace of your organization, or while an older version is shown
"**Download**" saves the skill as a `.zip` of its folder — `SKILL.md` plus the current supporting files — in the layout Claude Desktop and Claude Code use, and you can import it back as is. Inside it, the folder takes the skill's name in lowercase letters, digits, and hyphens (for example `weekly-report`); a name in another script, such as Japanese, becomes `skill-` plus part of the skill's ID. The original name is kept in the frontmatter and comes back when you import the `.zip`. A skill shared from another workspace downloads its `SKILL.md` alone.
## Editing shared skills, and forking
> [!WARNING]
>
> Editing a workspace-shared skill **affects every agent** it is attached to.
To adapt a shared skill for a specific agent, fork it first: open it from that agent and press "**Copy and edit for this agent only**" on the warning banner in the editor. The editor stays open and switches to the copy, carrying any edits you had already typed, so you can keep working without losing your place. The original skill is unaffected.
## Deleting
Delete a skill with "**Delete**" in its row's "⋮" menu (or right-click the row) or in the "⋮" on its page. The confirmation ("**Delete skill**") lists the agents the skill is attached to — agents you cannot see are only counted ("**2 agents you don't have access to (names not shown)**") — and suggests downloading a skill you want to keep. The editor itself has no Delete.
In an agent's Skills section, deleting an agent-specific skill cannot be undone.
## Writing tips
* **One skill, one purpose** — split multiple procedures into separate skills instead of cramming them into one
* **The description is everything** — the AI reads the description to decide "should I use this skill now?" Spell out "use this when …"
* **Number your steps** — explicit ordering and conditions are more reliable than vague phrasing
# Create Skills from Chat
Source: https://docs.jinba.io/en/pages/jinba_app_neo/skills/from-chat
Turning procedures established in conversation into Skills — attaching existing ones, importing SKILL.md files, and keeping them up to date
In Jinba App Neo, Skills can grow directly out of your chat conversations. You don't have to write a playbook from scratch — the back-and-forth of real work becomes a Skill.
## Skill suggestions
When you ask the AI to save a procedure from the conversation as a skill, it drafts the skill and shows a "**Save as skill**" card. It does not offer one on its own.
**1. Review the content**
Check what will be saved in the card's "Body preview." Click "Show full body" to expand it. The tools the Skill uses are also shown. When the AI puts reference material, templates, or examples into supporting files, they are listed under "**Supporting files**" below the body, each marked as added, changed, or removed; "**View**" shows a file's text. Saving writes the body and the files together.
**2. Choose a scope**
* **This agent only** — usable only by the current agent
* **Shared with workspace** — usable from every agent
**3. Save, request changes, or dismiss**
Click "Save" to register the Skill, or "Not now" to pass on it. If the draft is close but not quite right, choose "**Request changes**" and describe what you'd like changed — the AI revises the draft and presents a new proposal card. Once saved, you can edit the skill anytime — a workspace-shared skill from the Skills tab of Customize, an agent-only one from the agent's Skills section.
A skill saved mid-conversation can also be refined in the same conversation — just keep going ("actually, add X too") and the AI proposes an update with a diff. The AI can use a saved skill from your next message, in this chat too (not in an [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats)), when the chat carries it — a skill saved for this agent in a chat with the agent, or a workspace-shared skill in a chat with no agent.
## Saving several skills at once
When one request yields more than one skill — an agent you are building from scratch, a bundle of procedures you asked to have registered — the AI first lists the planned skills in prose (the name plus one line on when each is used) so you can prune the list, then shows a single "**Save as skills (N)**" card instead of one card per skill. Grouped cards appear only when you explicitly asked to save or create skills.
* Each draft is a row with a checkbox, ticked by default; untick the ones you do not want, or use "**Select all**" / "**Clear all**". The header counts "**n of N selected**", and "**Show full body**" on a row expands the draft and the tools it uses
* The save location ("**Save to**": "**This agent only**" / "**Shared with workspace**") is chosen once for the whole card
* "**Save n**" creates the ticked rows together in one step — either all of them are created or none is. "**Not now**" skips the whole card, and "**Request changes**" sends your feedback so the AI re-proposes the full list
* Afterwards the card reads "**Created n skills**" (with "**(k skipped)**" for the rows you left out) and the AI carries on, treating the skipped drafts as not existing. A card holds up to 20 drafts; a larger set is split across cards
## Skill update suggestions
While working with an existing Skill, if the AI detects a gap between what the Skill says and what you actually did, it shows an "**Update skill**" card.
* Review the changes under "Changes," and any supporting files the update adds, changes, or removes under "**Supporting files**"
* Click "**Apply update**" to update the existing Skill
* If the target is a shared Skill, note that the change also propagates to every other agent it is attached to
* Jinba-provided skills (such as Slide creation) are read-only, so the AI does not propose updates to them; to change how one works, ask the AI to create a skill of your own
## Attaching existing skills from chat
Skills your workspace already has can be attached to an agent from the conversation, too. In a chat with the agent, ask something like "let this agent use the report-formatting skill" — a "**Skill attach proposed**" card appears with the closest-matching workspace-shared skill preselected.
* If the preselected skill isn't the one you meant, choose another from the card's "**Pick the skill to attach**" list
* "**Attach**" saves it right away, and the AI can use it from your next message, in this chat too. "**Dismiss**" passes on it
* Only workspace-shared skills can be attached this way (agent-specific skills belong to a single agent)
## Importing a SKILL.md from chat
An existing SKILL.md file can be registered without opening Customize: attach the file to the conversation and ask the AI to register it as a skill. The AI reads the file and presents the usual suggestion card with the name, description, and body filled in from the file — review and save it like any other suggestion. A skill folder or `.zip` cannot be imported from chat; import it on the Skills tab ([Create and Edit Skills](/en/pages/jinba_app_neo/skills/create)).
> [!TIP]
>
> Ask in plain words, for example: "Turn this procedure into a Skill — I'll want it again next time." The AI will draft the body from the conversation.
# Skills Overview
Source: https://docs.jinba.io/en/pages/jinba_app_neo/skills/overview
How skills — reusable playbooks and instructions for the AI — work
A **skill** is a reusable playbook or set of instructions the AI can draw on. Write routine know-how in Markdown — "How to create an invoice," "Report formatting," "Translation tone guide" — and the AI will reference it at the right moments.
Workspace-shared skills are managed on the **Skills** tab of **Customize**: open "**Customize**" in the sidebar and pick the "**Skills**" tab (the sidebar row opens this tab first).
## The Skills tab
The title row above the tabs carries the sort menu, the "**Search skills…**" box, and "**Add**" (see [Create and Edit Skills](/en/pages/jinba_app_neo/skills/create)).
* **Filter by owner** — the pills "**All**," "**Created by me**," and "**Created by others**," each with its count, narrow the list; "**Jinba**" appears when Jinba-provided skills are listed and shows only those
* **Sort** — "**Recently used**" (the default: when the AI last used the skill, or its last edit if it has never been used), "**Date created**," "**Name**," or "**Most used**." The order you pick is remembered on that device
* **Search** matches a skill's name, its description, and the member who added it
Each row shows the skill's icon, name, and description, who can use it ("**Everyone in workspace**" or "**Everyone in organization**"), the member who added it, and how many times it has been invoked (for example "**12 invocations**").
* Click a row to open the skill's page (below)
* Hover a row for "**Use in chat**," which opens a new chat with the skill already picked in the composer
* The row's "⋮" menu — also opened by right-clicking the row — offers "**Use in chat**," "**Edit**," "**Download**," "**Share with organization**," and "**Delete**." A skill shared from another workspace of your organization cannot be edited, shared, or deleted from here
* Click the icon at the start of a row to change it: pick one of 60 icons in ten groups, or search them by name ("**Search icons**"). Anyone who can edit the skill can change its icon, and the change applies for everyone. A new skill starts with an icon that matches its name. The same icon appears in the chat box's "+" menu under Skills and in an agent's "Add skills" list
## A skill's page
Clicking a row opens the skill as its own page in place of the list. "**‹ Skills**" at the top left, Esc, or the browser's back button returns you to the list where you left it.
* The title row shows the name and description, the version pulldown (see Version history below), "**Use in chat**," and the "⋮" menu: "**Edit**," "**Download**," "**Update from folder**," "**Update from .zip**," the sharing actions, and "**Delete**." Edit turns the page itself into the editor
* Below the title: "**Added by**," "**Invocations**," and "**Sharing**" ("**Everyone in workspace**" or "**Everyone in organization**"). The Invocations figure counts how many AI turns have loaded this skill since counting began (several reads within one turn count once)
* The body is shown as the skill's folder. "**Files**" on the left lists `SKILL.md` first, then folders, then other files; the file you pick opens on the right with its path above it. Markdown files open in preview with a button to switch to the source, other text files show their source, and a file with no text says it can't be previewed. The `SKILL.md` preview keeps the line breaks you wrote — a lone newline renders as a line break rather than collapsing into a space (the same in the editor's preview and an agent's Instructions preview)
* Supporting files are managed on the same page — see [Create and Edit Skills](/en/pages/jinba_app_neo/skills/create)
A skill shared from another workspace of your organization opens read-only: there is no Edit and no version history, and its file list shows `SKILL.md` alone. A link to a skill this workspace does not list (deleted, mistyped, or not visible to you) opens a page that says "**This skill could not be found.**"
## Jinba-provided skills
Rows with a "**Jinba**" badge at the top of the list are skills Jinba provides: "**Slide creation**" builds the storyline from your purpose and audience and then makes an editable PowerPoint (.pptx) deck. They are read-only: they cannot be edited, versioned, shared, or deleted, and the AI does not propose updates to them.
* Click the row to open its read-only page: the description, "**Use in chat**," and the skill's folder as a file tree with preview and source — the same files the AI is given. In a chat, the chip of a Jinba-provided skill opens the same page in a drawer beside the chat
* "**Use in chat**" on Slide creation opens a new chat with Slide creation picked in the composer and a request already in the box, asking the AI to start with your purpose, audience, number of slides, and any material you have. Edit it if you like, then send. Nothing is sent until you send it
## Anatomy of a skill
A skill follows the SKILL.md format: metadata (frontmatter) plus a body. It is also a folder: beside `SKILL.md` it can hold supporting files such as `references/…` or `templates/…`.
| Field | Description |
| - | - |
| **Name** | The skill's name (e.g., PDF Extract) |
| **Description** | What the skill does and when to use it. This is how the AI decides which skill to pick |
| **Allowed tools** (optional) | The `allowed-tools` list in the frontmatter. It is kept from an imported SKILL.md and included when you download the skill, but it does not limit which tools the AI can use in chats; the editor has no field for it |
| **Body** | The procedures and instructions, written in Markdown |
## Where skills are saved (scope)
| Location | Description |
| - | - |
| **Workspace shared** | Attachable by every agent. Listed on the Skills tab of Customize |
| **Agent-specific** | Used by one agent only. Managed in the Skills section of the agent's configuration panel |
Where a skill is saved is decided when you create it: a skill created on the Skills tab is workspace-shared, and one created from an agent's Skills section belongs to that agent. To tweak a shared skill for one agent, use "Copy and edit for this agent only" (fork).
Attaching a workspace-shared skill to an agent works from the Skills section of the agent's configuration panel — or straight from a chat with the agent ([Create Skills from Chat](/en/pages/jinba_app_neo/skills/from-chat)).
## Four ways to create a skill
> [card] [Write it in the editor](/en/pages/jinba_app_neo/skills/create)
>
> Write SKILL.md directly from "Add" > "Create manually" on the Skills tab
> [card] [Work it out with the AI](/en/pages/jinba_app_neo/skills/create)
>
> Pick "Add" > "Create with AI" to shape the skill in a chat
> [card] [Import a SKILL.md or folder](/en/pages/jinba_app_neo/skills/create)
>
> Bring in a SKILL.md, a skill folder, or a .zip, supporting files included
> [card] [Save one from chat](/en/pages/jinba_app_neo/skills/from-chat)
>
> Ask the AI to turn a procedure established in conversation into a skill
## Limits
There is no fixed number of skills a workspace or an agent can hold. What sets the limit is how much the AI can be told at once: in each chat it is given a list of the skills it can use — their names and descriptions — up to a set size, oldest first (an agent's skills in the order they were attached; in a chat with no agent, the workspace's skills in the order they were created). A skill past that point cannot be loaded in that chat:
* The Skills tab and the agent's Skills section mark such a skill "**Not loaded by AI**." Hover the mark, or open the skill's page, for what to do. A mark on the Skills tab is about chats with no agent selected, and a mark in an agent's Skills section is about chats with that agent, so the same skill can fit one and not the other
* The composer's skill picker and "**Use in chat**" leave a marked skill out, and Home's Quick access refuses it beside that agent
* To make room, remove or detach skills you don't use, or shorten skill descriptions
[Older chats](/en/pages/jinba_app_neo/chat/overview#older-chats) can use only their first 20 skills.
## Version history
A workspace skill's history lives on its page. Open the "**Select a version**" pulldown in the title row (a history icon and the version number, such as `v3`): versions are listed newest first, each with its time, its author, and what produced it. The latest is marked "**Current**" and the one on screen "**Shown**."
* What produced a version is shown as **Created**, **Edited**, **Updated from chat**, **Updated by AI**, **Restored**, or **Initial version**. "**Load earlier versions**" pulls in more
* A version that added, changed, or removed supporting files also shows a line such as "**Files: 1 added · 2 changed**," followed by up to three of those paths marked `+` (added), `~` (changed), or `-` (removed) and a count of the rest
* Open a version to see its name, description, body, and files as they were then. While an older version is shown, "Use in chat" and the "⋮" menu are hidden, since they act on the live skill
* "**Restore this version**" (left of the pulldown) brings those contents — supporting files included — back **as a new latest version**. Your current content is not discarded; it stays in the history. Agents in the workspace that have the skill attached move to the new latest version automatically
* An **agent-specific** skill has the same pulldown and Restore button when you open it from the agent's configuration panel (Skills section), provided you can edit the agent. A workspace-shared skill opened from there shows the plain detail — its history lives on its page under Customize
# Scheduled tasks
Source: https://docs.jinba.io/en/pages/jinba_app_neo/tasks/overview
Have an agent run a fixed instruction on a schedule and review each run afterwards
**Scheduled tasks** let you run work without chatting: schedule an agent to run a fixed instruction on a cadence — or once, at a set time — and review each run's result afterwards. Open the page from "**Scheduled tasks**" in the sidebar.
A task is made of three things:
| Part | What it is |
| - | - |
| **Agent** | The agent that runs — a specific agent, or the workspace default |
| **Instructions** | What the AI does on each run |
| **Schedule** | "**Recurring**" (a cron cadence) or "**One-time**" (a single date and time), with a timezone |
## Creating a task
**1. Open the form**
Press "**New task**" on the Scheduled tasks page. Suggestion chips offer common starting points.
**2. Describe the work**
Enter a **title**, write the **instruction** the AI should follow on each run, and pick the **agent to run**. Leave "**Reference past history**" unticked unless each run should pick up where the previous one left off (see "Runs and review" below).
**3. Set the schedule**
Choose "**Recurring**" or "**One-time**." For a recurring task, describe the cadence in words — "every weekday at 10:30," "every 15 minutes" — and the AI converts it into a cron expression, or fill in the five cron fields (minute / hour / day of month / month / day of week) directly. The fields accept full-width digits and symbols typed with a Japanese IME, and when you leave a field, a number outside its range is pulled back to the nearest allowed value (75 in the minute field becomes 59). The form shows the resulting cadence in plain language along with the next run time, so you can check it before saving; if your phrasing can't be read as a schedule, the form says so and leaves the fields for you to set. Pick the **timezone** the schedule follows. A one-time task takes a single "**Run at**" date and time instead.
**4. Create**
Press "**Create**." The task appears in the list with its schedule and next run time.
> [!TIP]
>
> A task's instruction runs unattended — the AI cannot ask you mid-run what you meant. Write it so it stands alone, the way you would brief a colleague who works while you are away. You can always ask the AI in a chat to help you draft it.
## Runs and review
Each firing produces a run whose reply is captured as a normal chat thread — open a run from the task's history to read the result, and continue the conversation there if you want follow-ups.
By default **every run starts in a new chat**, so one run never sees what an earlier run said or produced. Tick "**Reference past history**" on the task (in the create form or in Edit) and each run instead continues the task's previous chat, with that conversation as context — useful for work that builds on the last result, at the cost of a conversation that grows with every run and can make runs more expensive. Only the task's creator can change this setting.
* The history in the task's detail is paged **20 runs at a time**, newest first, with "Previous" / "Next" controls
* Failed runs are flagged on the task's row so they are easy to spot. A run that could not even start is recorded in the history too, with the reason. "**Not run: …**" rows name a cause that clears on its own — the agent is archived (the task fires normally again once it is unarchived), or the run failed to launch; "**Paused: …**" rows name a cause that also disables the task — the agent was deleted, it is no longer shared with this workspace, or the task's creator is gone or no longer a member
* "**Run now**" fires the task immediately, without waiting for the schedule
* If a run cannot start because the organization has reached its monthly usage limit, or because the task has reached its rolling 24-hour usage limit — counted across all of the task's chats, and for a task that references past history also per reused chat — the task retries automatically when usage becomes available again. The same happens when the previous run has not been confirmed finished (it is still running or waiting for an answer): the next run is skipped and the task resumes once it ends. The task's row shows "**Last run skipped**" with the reason until then, and "Run now" says the same if you press it meanwhile
## The Scheduled tasks page
The tasks are listed on the left — title, agent, schedule, last run, and next run — and selecting one shows its run history and instruction in the column beside the list. When the window is too narrow for both, the detail opens as a drawer over the list instead. Drag the divider between the two to resize the list; the choice is remembered on that device.
## Editing, pausing, and deleting
"**Edit**" opens in place inside the detail, with a back control to return.
* The **title, schedule, and timezone** can be changed by the task's creator or a workspace owner
* The **instruction, the agent, and "Reference past history"** can be changed only by the task's **creator** — a run executes as the creator, using their connector access, so nobody else can change what runs on their behalf
* Changes apply from the next run onward. Runs already in the history were produced by the previous instruction
* A task can be toggled between **enabled** and **disabled** without deleting it, and deleted outright (deleting stops its scheduled runs and cannot be undone). For a recurring task the switch stays usable while a "Run now" is in progress — turning it off lets that run finish and stops the next scheduled one; a one-time task's switch waits until its run has ended
> [!NOTE]
>
> Two things can happen without you doing them. A task **disables itself** when it can no longer run as configured — its creator left the workspace or their account was removed, the agent is no longer shared with them, or the agent was deleted (the task is paused at its next run, which is what records the "**Paused: the agent was deleted**" row). Fix the cause — or, for a deleted agent, point the task at another one — then re-enable it. If the creator's organization membership cannot be confirmed, runs are skipped ("**Last run skipped**" on the row) and the task is paused with a "**Paused**" badge once that has lasted 24 hours. And for a task that references past history, **changing its agent starts a fresh review thread**: the next run opens a new chat instead of continuing the old one, though earlier runs stay listed and readable. For a task that reuses an [older chat](/en/pages/jinba_app_neo/chat/overview#older-chats), the same can happen when your organization blocks "**Document generation**" under "**Tool Access**" while that chat uses a skill the block covers.
> [!NOTE]
>
> If there is no "**Scheduled tasks**" entry in your sidebar, the feature is not enabled in your environment. The AI can **create** a task from a chat (below) — and replace one of yours on the same schedule through the proposal card — but it cannot otherwise change, run, pause, or delete one; those happen on the Scheduled tasks page.
## Creating a task from chat
You can also ask in any chat — "run this every Monday morning," "remind me next Friday" — and the AI proposes the task on a "**Scheduled task proposed**" card: the agent, the title, the schedule in plain words with its timezone (or the date and time of a one-time run), the next run, and the full instruction. Press "**Create**" to save it; it starts at its next run time, and the card's "**Open the scheduled task**" link takes you to it on the Scheduled tasks page. Nothing runs at the moment you approve, and the task can be edited or deleted here like any other ([In-Chat Forms and Suggestions](/en/pages/jinba_app_neo/chat/interactive-cards)).
> [!NOTE]
>
> A task created from chat runs as you, with your connector access, exactly like one created on this page. Read the instruction on the card before approving — it is what runs unattended.
# Create and Run Your First Jinba Toolbox ToolSet
Source: https://docs.jinba.io/en/pages/toolbox/quickstart
Open your organization, create a ToolSet, write a tool, and execute it in the sandbox.
Get started with Jinba Toolbox by opening your organization, building a ToolSet, writing a tool, and executing it in a sandbox environment.
## What You'll Build
A simple ToolSet containing a tool that:
1. Accepts a text input
2. Processes it in an isolated sandbox
3. Returns structured output
## Prerequisites
* A Jinba Toolbox account ([Sign up here](https://toolbox.jinba.io/))
* No local setup required -- everything runs in the cloud
## Steps
**1. Sign in and open your Organization**
Go to [toolbox.jinba.io](https://toolbox.jinba.io/) and sign in to your account.
After signing in, the dashboard lists **Your Organizations**. An Organization is the ownership unit for all your ToolSets and team members. Organizations and their members are managed in JinbaAuth, not in the Toolbox console -- an organization appears here once you have been invited to it.
1. Click the organization you want to work in
2. You land on its **Tool Sets** page
The organization ID (visible in the URL as `/org/{orgId}/...`) is what you use in API URLs and MCP endpoints.
**2. Create a ToolSet**
A **ToolSet** is a collection of related tools with a shared execution environment -- similar to an npm package or a Docker image.
1. Navigate to **Tool Sets** in the organization sidebar
2. Click **"New Tool Set"**
3. Fill in the details:
* **Name**: e.g., `Text Utils` (the **Slug**, e.g. `text-utils`, is generated from the name and can be edited)
* **Description**: e.g., "Text processing utilities"
* **Visibility**: Private (default) or Public
* **Provider**: E2B
* **Language**: Choose Python or TypeScript
* **Timeout (seconds)**: optional, default 900 (max 3600)
4. Click **"Create Tool Set"**
**3. Write your first Tool**
A **Tool** is an individual executable unit inside a ToolSet. Each tool has an input schema, output schema, and code. The schemas are not entered separately -- they are extracted from the `input` and `output` definitions in your code every time you save.
1. Open your newly created ToolSet
2. Click **"Add Tool"**
3. Configure the tool:
* **Name**: `Word Count` (the **Slug** `word-count` is generated from the name)
* **Description**: "Counts words in a given text"
4. Click **"Create Tool"** -- the tool editor opens
5. Replace the starter template with the **tool code** (TypeScript):
```typescript theme={null}
import { z } from "zod";
export const input = z.object({
text: z.string().describe("The text to count words in"),
});
export const output = z.object({
wordCount: z.number().describe("Number of words in the text"),
});
export async function run(data: z.infer) {
const words = data.text.trim().split(/\s+/).filter(Boolean);
return { wordCount: words.length };
}
```
6. Click **"Save"** (or press `Cmd/Ctrl + S`). The input and output JSON Schemas are generated from the Zod definitions on save.
**4. Test the Tool**
Before publishing, test your tool to make sure it works correctly.
1. In the test panel at the bottom of the editor, open the **Input** tab and enter a sample input:
```json theme={null}
{
"text": "Hello world from Jinba Toolbox"
}
```
2. Click **"Run"** (or press `Cmd/Ctrl + Enter`)
3. The panel switches to the **Output** tab. Verify the output:
```json theme={null}
{
"wordCount": 5
}
```
The tool runs inside an isolated sandbox container. Test runs are recorded in the organization's **Runs** page (with version `test`), where you can inspect stdout, stderr, and execution duration.
**5. Publish a Version**
Once testing is successful, publish an immutable version of your ToolSet.
1. Go to the **Versions** tab in your ToolSet
2. Click **"New Version"** (or **"Publish"** in the ToolSet header)
3. Enter a semver version number (e.g., `1.0.0`; the console suggests the next patch version) and optional release notes
4. Click **"Publish"**
Published versions are immutable snapshots, and the new version immediately becomes the active version for the selected environment. Any future changes require publishing a new version.
**6. Execute via API or MCP**
Now your tool is ready to be called programmatically.
First create an API key under **API Keys** in the organization sidebar.
**Using the REST API** (the input goes under an `input` key):
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/text-utils/tools/word-count/run \
-H "Authorization: Bearer jtb_your_api_key" \
-H "Content-Type: application/json" \
-d '{"input": {"text": "Hello world from Jinba Toolbox"}}'
```
**Using the TypeScript SDK:**
```typescript theme={null}
import { createClient } from "@jinba-toolbox/sdk";
const client = createClient({
baseUrl: "https://toolbox-api.jinba.io",
apiKey: process.env.JINBA_TB_API_KEY!,
organizationId: "your-org-id",
});
const result = await client.run("text-utils", "word-count", {
text: "Hello world from Jinba Toolbox",
});
console.log(result.output); // { wordCount: 5 }
```
**Using the MCP endpoint** (for AI agents):
Turn on the **MCP** switch in the ToolSet header. Your ToolSet is then available as an MCP server at:
```
POST /v1/orgs/{orgId}/toolsets/{toolsetSlug}/mcp
```
(Public ToolSets can also be reached at `POST /v1/public/{orgId}/{toolsetSlug}/mcp`.) AI agents that support the Model Context Protocol can call your tools directly.
## What's Next?
> [card] [Core Concepts](./core-concepts)
>
> Understand the domain model and key terminology
> [card] [Web Console](./console/organization)
>
> Explore the full web console for managing your tools
> [card] [API Reference](./developer/api)
>
> Browse the complete REST API documentation
> [card] [SDK Guide](./developer/sdk)
>
> Integrate Jinba Toolbox into your applications
# What is Jinba Toolbox?
Source: https://docs.jinba.io/en/pages/toolbox/what-is-jinba-toolbox
A centralized tool management and execution platform for AI agents
> [!NOTE]
>
> Jinba Toolbox is currently in **beta**. Features and APIs may change. Try it out at [toolbox.jinba.io](https://toolbox.jinba.io/).
Jinba Toolbox is a centralized tool management and execution platform for AI agents. Register, version, and share tools across your organization, then execute them in isolated sandbox environments. Think of it as npm for AI tools -- publish, discover, and run tools with a simple workflow.
## Why Jinba Toolbox?
Building AI agents requires reliable, reusable tools. Jinba Toolbox solves the common challenges of tool management:
* **Fragmented tooling** -- Tools are scattered across repos, teams, and formats. Jinba Toolbox provides a single registry to organize them all.
* **Unsafe execution** -- Running arbitrary code from AI agents is risky. Jinba Toolbox executes every tool in an isolated sandbox container.
* **No versioning** -- Breaking changes silently break agents. Jinba Toolbox enforces semver-based immutable versioning for every ToolSet.
* **No team sharing** -- Tools built by one engineer are invisible to others. Jinba Toolbox enables organization-wide tool discovery and access control.
## Key Features
**1. Register & Discover**
**Centralized tool registry for your organization**
> [card] ToolSet Management
>
> Group related tools into ToolSets with metadata, tags, and descriptions
> [card] Explore Public Tools
>
> Browse and reuse publicly shared ToolSets from other organizations
> [card] Semver Versioning
>
> Publish immutable snapshots with semantic versioning
**2. Execute Safely**
**Sandbox execution in isolated containers**
> [card] Multi-Sandbox Support
>
> Run tools in E2B sandboxes (Daytona is available through the API)
> [card] TypeScript & Python
>
> Write tools in TypeScript or Python with full dependency support
> [card] Schema Validation
>
> Input and output schemas are generated from your Zod (TypeScript) or Pydantic (Python) definitions, and inputs are validated before execution
**3. Integrate & Scale**
**Multiple integration paths for any workflow**
> [card] REST API
>
> Full-featured API for programmatic tool management and execution
> [card] MCP Endpoints
>
> Native Model Context Protocol support for AI agent integration
> [card] TypeScript SDK
>
> Client SDK for seamless integration into your applications
## Use Cases
> [card] AI Agent Tooling
>
> Give your AI agents a curated set of tools with strict input/output contracts and safe sandbox execution
> [card] Team Tool Sharing
>
> Publish tools within your organization so every team member can discover and reuse them
> [card] Workflow Automation
>
> Combine Jinba Toolbox tools with Jinba Flow to build end-to-end automated workflows
## Architecture Overview
Jinba Toolbox is structured as a layered system:
| Layer | Description |
| - | - |
| **API Layer** | REST endpoints for ToolSets, Tools, Runs, and MCP integration |
| **Core Services** | Registry, Access Control, and Execution services |
| **Sandbox Providers** | Pluggable adapters for E2B and Daytona container environments |
| **Database** | PostgreSQL with JSONB support for schemas and execution logs |
The Web Console provides a visual interface for managing your ToolSets, while the SDK and API enable programmatic access.
## Get Started
> [card] [Toolbox Console](https://toolbox.jinba.io/)
>
> Open the Jinba Toolbox console to start managing your tools
> [card] [Quickstart](./quickstart)
>
> Create your first ToolSet and run a tool in minutes
> [card] [Core Concepts](./core-concepts)
>
> Learn the key terms and domain model behind Jinba Toolbox
# Scrape Web Pages into Markdown with Firecrawl in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/cms/firecrawl
Use FIRECRAWL_SCRAPE to crawl a web page and return its content as markdown using a Firecrawl API key.
The Firecrawl tool provides functionality for automating website crawling and data collection.
* `FIRECRAWL_SCRAPE`
* Scrape web pages and extract data
* Supports various output formats (markdown, HTML, JSON, links, screenshot)
* Selective content extraction with includeTags (use only when specific elements are requested)
* Content filtering with excludeTags
* Customizable crawling parameters
## Connect with a Firecrawl API key
If you do not have an API key, you can still run Firecrawl tools by using Jinba API credit. If you'd like to use your own API key, you can obtain one from the [official Firecrawl website](https://www.firecrawl.dev/) and follow the developer documentation.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Scrape a web page
```yaml theme={null}
- id: scrape
tool: FIRECRAWL_SCRAPE
config:
- name: token
value: "{{secrets.FIRECRAWL_API_KEY}}"
input:
- name: url
value: https://news.ycombinator.com
- name: formats
value: '["markdown","html","links"]'
- name: includeTags
value: '[".title a",".score",".age"]'
- name: excludeTags
value: '[".comment"]'
- name: waitFor
value: "1000"
```
# Create a WordPress Draft or Post from Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/cms/wordpress
Use WORDPRESS_POST_ARTICLE with a site URL, username, application password, title, and HTML content.
Use `WORDPRESS_POST_ARTICLE` to create a post on a WordPress site. Configure the site's base `url`, a `username`, and a WordPress application `password`. The required `title` and `content` inputs define the post; `content` is HTML. The optional `draft` input defaults to `true`, so a new post remains a draft unless you choose to publish it.
## Create a draft
```yaml theme={null}
- id: create_post
tool: WORDPRESS_POST_ARTICLE
config:
- name: url
value: "https://example.wordpress.com/"
- name: username
value: ""
- name: password
value: ""
input:
- name: title
value: "Release notes"
- name: content
value: "Changes in this release.
"
```
Replace the sample site and credentials. On success, inspect `result.id`, `result.slug`, and `result.status`; the status should be `draft`. Set `draft` to `false` only when the flow should publish the post immediately. If the step fails, check the site URL, application password, account permissions, and HTML content.
# Run Flows and Manage Files and Tables in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/jinba/jinba
Use JINBA_FLOW_RUN to run a flow, JINBA_FILE_UPLOAD, JINBA_FILE_GET, JINBA_FILE_SEARCH, and JINBA_FILE_DELETE for files, and JINBA_TABLE_ADD_RECORD, JINBA_TABLE_GET_RECORDS, and JINBA_TABLE_UPDATE_RECORD for tables.
You can run Jinba Flows using the Jinba Flow tool. This tool allows you to execute flows that have been published on Jinba within another flow. Jinba tools also let you manage files in Jinba storage and read/write records in Jinba tables.
* `JINBA_FLOW_RUN`
* This tool allows you to run Jinba Flows by providing the flow ID and any necessary arguments.
* `JINBA_FILE_UPLOAD` / `JINBA_FILE_GET` / `JINBA_FILE_SEARCH` / `JINBA_FILE_DELETE`
* Upload, retrieve, search, and delete files in Jinba storage.
* `JINBA_TABLE_LIST_TABLES` / `JINBA_TABLE_CREATE_TABLE`
* List the workspace's tables with their column schemas, and create a new table.
* `JINBA_TABLE_ADD_RECORD` / `JINBA_TABLE_GET_RECORDS` / `JINBA_TABLE_UPDATE_RECORD` / `JINBA_TABLE_DELETE_RECORD`
* Insert, read, update, and delete records in Jinba tables.
## Run a Jinba flow
`JINBA_FLOW_RUN` requires no tool configuration. It runs a published flow in the same workspace: authentication uses the workspace API key (`secrets.JINBAFLOW_WS_API_KEY`), which is handled automatically on the server, and the API base URL is resolved from the server environment. Make sure the target flow is published before running it.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
### Example: Run Other Jinba Flows
```yaml theme={null}
- name: Run flow
id: run_flow
tool: JINBA_FLOW_RUN
input:
- name: id
value: ecd528ac-fc53-44ad-8535-7051507e4958
- name: Run flow with args
id: run_flow_with_args
tool: JINBA_FLOW_RUN
input:
- name: id
value: ecd528ac-fc53-44ad-8535-7051507e4958
- name: args
value: '[{"name":"input_1","value":"Hello, world!"}]'
```
## Upload, get, and search files
The file tools authenticate with a Jinba Flow Workspace API Token via the `token` config, which defaults to `{{ secrets.JINBAFLOW_WS_API_KEY }}` — you usually do not need to set it explicitly.
That workspace token only reaches the workspace running the flow. To upload to or search a different workspace, set `token` to a personal API key whose owner is a member of that workspace; with the default token such a step fails with 404.
### JINBA_FILE_UPLOAD
Upload a file to Jinba storage.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `file` | string | Yes | Base64 encoded file content or file URL starting with `https://` or `jinbaflow://` |
| `filename` | string | Yes | Name of the file (extension will be auto-detected from the file) |
| `workspaceId` | string | Yes | Target workspace ID (see the token note above for other workspaces) |
**Output**: File metadata including `id`, `name`, `size`, `extension`, `mimeType`, `createdAt`, `updatedAt`, `workspaceId`, `userId`, and `signedUrl`.
### JINBA_FILE_GET
Retrieve a file's metadata and a signed URL by file ID.
**Input**:
* `fileId` (string, required): The ID of the file to retrieve
**Output**: Same file metadata fields as `JINBA_FILE_UPLOAD`, including `signedUrl`.
### JINBA_FILE_SEARCH
Search files in Jinba storage.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `workspaceId` | string | No | Workspace to search; defaults to the workspace running the flow (see the token note above for other workspaces) |
| `query` | string | No | Query to search for |
| `limit` | number | No | Maximum number of files to return (default: 50) |
| `cursor` | string | No | Cursor for pagination |
**Output**: `items` (array of file metadata) and `nextCursor` for pagination.
### JINBA_FILE_DELETE
Delete a file from Jinba storage.
**Input**:
* `fileId` (string, required): The ID of the file to delete
**Output**: `id` and `success`.
### Example: Upload and Retrieve a File
`generate_report` stands for an earlier step in your flow that produces a file; its result is assumed to contain the file URL in `url`.
```yaml theme={null}
- id: upload_file
tool: JINBA_FILE_UPLOAD
input:
- name: file
value: "{{steps.generate_report.result.url}}"
- name: filename
value: "monthly_report.pdf"
- name: workspaceId
value: "{{secrets.WORKSPACE_ID}}"
- id: get_file
tool: JINBA_FILE_GET
needs: [upload_file]
input:
- name: fileId
value: "{{steps.upload_file.id}}"
```
## Add, read, and update table records
The table tools are workspace-scoped: the workspace's API key is injected automatically, so no config is required.
### JINBA_TABLE_LIST_TABLES
List the workspace's tables together with their column schemas. Takes no input.
**Output**: `result.tables` — an array of `{ id, name, columns }`. `id` is the value to pass as `tableId` to the other table tools. Each column has `name` (use it as the key in `fields`), `type` (one of `TEXT`, `LONG_TEXT`, `LINK`, `NUMBER`, `BOOLEAN`, `DATETIME`, `ENUM`, `MULTISELECT`, `JSON`), `required`, and — for `ENUM` / `MULTISELECT` columns only — `options`, the allowed values.
### JINBA_TABLE_CREATE_TABLE
Create a new Jinba table, optionally with its initial columns.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `name` | string | Yes | Display name for the new table (1-120 characters) |
| `initialColumns` | array | No | Columns to create with the table (up to 100), e.g. `[{ "name": "Status", "type": "ENUM", "config": { "options": ["todo", "done"] } }, { "name": "Score", "type": "NUMBER" }]`. Each entry has `name` (1-120 characters, unique within the table), `type` (one of the column types above), and an optional `config`. `ENUM` / `MULTISELECT` columns require `config.options` (a non-empty array of strings); every type accepts `config.required` (boolean) and `config.description` (string). Omit to create an empty table. To add more columns later, use `JINBA_TABLE_ADD_COLUMNS` |
**Output**: `result.tableId` (pass it as `tableId` to the other table tools) and `result.name`.
### JINBA_TABLE_ADD_COLUMNS
Append columns to an existing Jinba table. Use it to grow a table past the columns it was created with.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `tableId` | string | Yes | The table to add columns to |
| `columns` | array | Yes | Columns to append, in order (1-100 per step). Same entry shape as `initialColumns` of `JINBA_TABLE_CREATE_TABLE`. A column whose name already exists on the table with the same type is skipped as-is (its `config` is not compared or updated); one that exists with a different type fails the step before any column is added |
**Output**: `result.tableId`, `result.added` (the created columns as `{ id, name, type }`, in order), and `result.skipped` (names of requested columns that already existed). If adding a column fails partway, the step fails and its error names the columns already added; running the step again skips them.
### JINBA_TABLE_ADD_RECORD
Insert a record into a Jinba table.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `tableId` | string | Yes | The table to insert a record into |
| `fields` | object | Yes | Map of column name → value for the new record (e.g. `{ "Status": "done", "Score": 42 }`). Omitted columns default to the column's default value, or NULL if none is set |
**Output**: `result.recordId` — the ID of the newly inserted record.
### JINBA_TABLE_GET_RECORDS
Read records from a Jinba table.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `tableId` | string | Yes | The table to read records from |
| `filter` | object | No | Equality filter: `{ : }`. Multiple keys are AND-combined |
| `sortColumn` | string | No | Column display name to sort by. Omit to use the table's manual row order (the order shown in the grid) |
| `sortDirection` | string | No | `asc` or `desc` (default: `desc`) |
| `limit` | number | No | Number of records to return (1-100, default: 100) |
| `offset` | number | No | Number of records to skip (default: 0) |
**Output**: `result` with `items` (records as `{ __id, __created_at, __updated_at, __version, : , ... }`), `total`, `limit`, and `offset`. NUMBER columns are serialized as strings to preserve precision — coerce with `Number(value)` downstream if you need numeric arithmetic.
### JINBA_TABLE_UPDATE_RECORD
Update a record in a Jinba table.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `tableId` | string | Yes | The table containing the record |
| `recordId` | string | Yes | The ID of the record to update |
| `fields` | object | Yes | Map of column name → new value (e.g. `{ "Status": "done" }`). Omitted columns are left unchanged; pass null to clear a column |
**Output**: `result.recordId`.
### JINBA_TABLE_DELETE_RECORD
Delete a record from a Jinba table.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `tableId` | string | Yes | The table containing the record |
| `recordId` | string | Yes | The ID of the record to delete |
**Output**: `result.recordId` and `result.alreadyDeleted` — `true` when the record was not found — already in the trash (for example on a retry of a delete that had already taken effect) or a `recordId` that never existed; the step still succeeds either way, so `true` is not proof the record existed.
### Example: Add and Update Table Records
```yaml theme={null}
- id: add_record
tool: JINBA_TABLE_ADD_RECORD
input:
- name: tableId
value: "{{secrets.TABLE_ID}}"
- name: fields
value: '{ "Status": "pending", "Title": "New task" }'
- id: get_records
tool: JINBA_TABLE_GET_RECORDS
input:
- name: tableId
value: "{{secrets.TABLE_ID}}"
- name: filter
value: '{ "Status": "pending" }'
- name: limit
value: 100
- id: update_record
tool: JINBA_TABLE_UPDATE_RECORD
needs: [add_record]
input:
- name: tableId
value: "{{secrets.TABLE_ID}}"
- name: recordId
value: "{{steps.add_record.result.recordId}}"
- name: fields
value: '{ "Status": "done" }'
```
### Example: Create a Table and Delete a Record
```yaml theme={null}
- id: create_table
tool: JINBA_TABLE_CREATE_TABLE
input:
- name: name
value: Tasks
- name: initialColumns
value: '[{ "name": "Title", "type": "TEXT", "config": { "required": true } }, { "name": "Status", "type": "ENUM", "config": { "options": ["pending", "done"] } }]'
- id: add_record
tool: JINBA_TABLE_ADD_RECORD
input:
- name: tableId
value: "{{steps.create_table.result.tableId}}"
- name: fields
value: '{ "Title": "New task", "Status": "pending" }'
- id: delete_record
tool: JINBA_TABLE_DELETE_RECORD
input:
- name: tableId
value: "{{steps.create_table.result.tableId}}"
- name: recordId
value: "{{steps.add_record.result.recordId}}"
```
# Extract, Parse, and Validate Documents with Jinba Modules in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/jinba/jinba_modules
Use JINBA_MODULES_EXTRACT and JINBA_MODULES_PARSE for document extraction and parsing, and JINBA_MODULES_CHECKER_V2 for validation, with FAST, BALANCED, or QUALITY modes and TEXT, MARKDOWN, or STRUCTURED output formats.
Jinba Modules provide LLM-powered data processing capabilities including extraction, parsing, and rule-based checking. These tools analyze files with large language models to handle complex data transformation and validation tasks with high accuracy and flexibility.
## Tools
### JINBA_MODULES_EXTRACT
Uses an LLM to analyze a file and extract structured data according to a JSON Schema you define.
| Parameter | Type | Required | Description |
| - | - | - | - |
| `name` | string | Yes | Task name |
| `fileUrl` | string | Yes | The URL of the file to extract data from |
| `dataSchema` | object | No | The schema of the data to extract. Must be a valid [JSON Schema](https://json-schema.org/understanding-json-schema/reference) |
| `extractionMode` | string | No | `FAST`, `BALANCED` (default), or `QUALITY` |
Output: `result` — the extracted data, shaped by your `dataSchema`.
### JINBA_MODULES_PARSE
A dynamic parser in which the LLM automatically adjusts the parsing approach based on the file type and outputs the extracted content.
| Parameter | Type | Required | Description |
| - | - | - | - |
| `fileUrl` | string | Yes | The URL of the file to parse |
| `outputFormat` | string | No | `MARKDOWN` (default), `TEXT`, or `STRUCTURED` |
| `extractionMode` | string | No | `FAST`, `BALANCED` (default), or `QUALITY` |
Output: `result` — the parsed content as a string.
### JINBA_MODULES_CHECKER_V2
An enhanced LLM-based checker that validates a target file against JSON-defined rules. v2 supports flexible rule structures, higher-precision evaluation, and detailed reasoning for each judgment.
| Parameter | Type | Required | Description |
| - | - | - | - |
| `target_file` | string | Yes | The file to check (PDF, text, JSON, XML, CSV, or DOCX) |
| `task` | string | Yes | The task name |
| `description` | string | No | Task description. Use when you want to add instructions specialized for a specific task |
| `rules` | array | No | JSON array of rule objects (see [Rule Format](#rule-format)) |
| `references` | array | No | Up to 10 reference file URLs. To suppress hallucinations, you can embed company regulations, legal documents, RAG search results, etc. |
| `additionalDataSchema` | object | No | JSON Schema describing additional data to return with each check result |
Output: `result` — an array of check results, one per rule, each with `uniqueId`, `rule`, `status` (`accepted` / `rejected` / `pending`), `range`, `reason`, and optional `additionalData`.
No authentication or tool configuration is required. The Jinba Modules API credentials are managed server-side.
## Extract data from a document
```yaml theme={null}
- id: upload_document
name: upload_document
tool: INPUT_FILE
input:
- name: description
value: "Upload document for intelligent extraction"
- id: extract_structured_data
name: extract_structured_data
tool: JINBA_MODULES_EXTRACT
needs: [upload_document]
input:
- name: name
value: "Invoice Data Extraction"
- name: fileUrl
value: "{{steps.upload_document.result}}"
- name: dataSchema
value: |
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"invoice_number": {
"type": "string",
"description": "Invoice number or ID"
},
"date": {
"type": "string",
"format": "date",
"description": "Invoice date"
},
"vendor": {
"type": "object",
"properties": {
"name": {"type": "string"},
"address": {"type": "string"},
"phone": {"type": "string"},
"email": {"type": "string"}
}
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {"type": "string"},
"quantity": {"type": "number"},
"unit_price": {"type": "number"},
"total": {"type": "number"}
}
}
},
"total_amount": {
"type": "number",
"description": "Total invoice amount"
},
"tax_amount": {
"type": "number",
"description": "Tax amount if present"
}
},
"required": ["invoice_number", "date", "total_amount"]
}
- name: extractionMode
value: "QUALITY" # Options: FAST, BALANCED, QUALITY
- id: validate_document
name: validate_document
tool: JINBA_MODULES_CHECKER_V2
needs: [upload_document]
input:
- name: target_file
value: "{{steps.upload_document.result}}"
- name: task
value: "Invoice Validation"
- name: description
value: "Check that the uploaded invoice satisfies the rules below."
- name: rules
value: |
[
{
"uniqueId": "invoice-001",
"name": "Invoice number present",
"description": "The document must contain an invoice number or ID."
},
{
"uniqueId": "invoice-002",
"name": "Positive total amount",
"description": "The total amount must be a positive number."
},
{
"uniqueId": "invoice-003",
"name": "Valid invoice date",
"description": "The invoice date must be present and in a valid date format."
},
{
"uniqueId": "invoice-004",
"name": "Valid vendor email",
"description": "If a vendor email address is present, it must be in a valid email format."
}
]
- id: process_extraction_results
name: process_extraction_results
tool: PYTHON_SANDBOX_RUN
needs: [extract_structured_data, validate_document]
input:
- name: code
value: |
import json
# Process extraction and check results
extracted_data = json.loads('''{{steps.extract_structured_data.result}}''')
check_results = json.loads('''{{steps.validate_document.result}}''')
print("Document Extraction Results")
print("=" * 35)
# Display extracted data
print("Extracted Information:")
print(f"Invoice Number: {extracted_data.get('invoice_number', 'N/A')}")
print(f"Date: {extracted_data.get('date', 'N/A')}")
print(f"Vendor: {extracted_data.get('vendor', {}).get('name', 'N/A')}")
print(f"Total Amount: ${extracted_data.get('total_amount', 0):,.2f}")
if 'items' in extracted_data:
print(f"Items Count: {len(extracted_data['items'])}")
print("\nCheck Results:")
accepted_count = sum(1 for r in check_results if r.get('status') == 'accepted')
total_rules = len(check_results)
print(f"Accepted: {accepted_count}/{total_rules}")
# Show any rejected rules
rejected = [r for r in check_results if r.get('status') == 'rejected']
if rejected:
print("\nRejected Rules:")
for r in rejected:
print(f" - {r.get('rule', 'Unknown')}: {r.get('reason', 'No reason provided')}")
else:
print("All rules accepted")
- id: export_processed_data
name: export_processed_data
tool: OUTPUT_FILE
needs: [extract_structured_data]
input:
- name: content
value: "{{steps.extract_structured_data.result}}"
- name: filename
value: "extracted_invoice_data.json"
- name: fileType
value: "json"
```
## Example: Batch Document Processing
```yaml theme={null}
- id: process_document_batch
name: process_document_batch
tool: JINBA_MODULES_EXTRACT
input:
- name: name
value: "Batch Document Processing"
- name: fileUrl
value: "{{input.batch_file_url}}"
- name: dataSchema
value: |
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"document_type": {"type": "string"},
"date": {"type": "string"},
"amount": {"type": "number"},
"vendor": {"type": "string"},
"metadata": {
"type": "object",
"additionalProperties": true
}
},
"required": ["document_type", "date", "amount"]
}
}
}
}
- name: extractionMode
value: "BALANCED"
- id: parse_document_content
name: parse_document_content
tool: JINBA_MODULES_PARSE
input:
- name: fileUrl
value: "{{input.batch_file_url}}"
- name: outputFormat
value: "MARKDOWN" # Options: MARKDOWN, TEXT, STRUCTURED
- name: extractionMode
value: "BALANCED"
- id: comprehensive_validation
name: comprehensive_validation
tool: JINBA_MODULES_CHECKER_V2
input:
- name: target_file
value: "{{input.batch_file_url}}"
- name: task
value: "Batch Document Check"
- name: rules
value: |
[
{
"uniqueId": "doc-001",
"name": "Known document types only",
"description": "Every document must be an invoice, a receipt, or a contract."
},
{
"uniqueId": "doc-002",
"name": "Amount within range",
"description": "Every document amount must be between 0 and 1,000,000."
},
{
"uniqueId": "doc-003",
"name": "Date within range",
"description": "Every document date must be between 2020-01-01 and 2025-12-31."
},
{
"uniqueId": "doc-004",
"name": "Vendor name length",
"description": "Every vendor name must be between 2 and 200 characters."
}
]
- name: additionalDataSchema
value: |
{
"type": "object",
"properties": {
"documentType": {
"type": "string",
"description": "The type of the document the rule was evaluated against"
}
}
}
- id: generate_processing_report
name: generate_processing_report
tool: PYTHON_SANDBOX_RUN
needs: [process_document_batch, parse_document_content, comprehensive_validation]
input:
- name: code
value: |
import json
from datetime import datetime
# Compile processing report
extracted = json.loads(r'''{{steps.process_document_batch.result}}''')
parsed = '''{{steps.parse_document_content.result}}'''
check_results = json.loads(r'''{{steps.comprehensive_validation.result}}''')
report = {
"processing_summary": {
"timestamp": datetime.now().isoformat(),
"total_documents": len(extracted.get('documents', [])),
"extraction_mode": "BALANCED",
"parsed_characters": len(parsed),
"all_rules_accepted": all(r.get('status') == 'accepted' for r in check_results)
},
"document_breakdown": {},
"check_summary": {
"total_rules": len(check_results),
"accepted": sum(1 for r in check_results if r.get('status') == 'accepted'),
"rejected": sum(1 for r in check_results if r.get('status') == 'rejected'),
"pending": sum(1 for r in check_results if r.get('status') == 'pending')
},
"recommendations": []
}
# Document type breakdown
if 'documents' in extracted:
doc_types = {}
total_amount = 0
for doc in extracted['documents']:
doc_type = doc.get('document_type', 'unknown')
doc_types[doc_type] = doc_types.get(doc_type, 0) + 1
total_amount += doc.get('amount', 0)
report['document_breakdown'] = doc_types
report['processing_summary']['total_amount'] = total_amount
# Add recommendations
if report['check_summary']['rejected'] > 0:
report['recommendations'].append("Review rejected rules and correct data issues")
if report['check_summary']['pending'] > 0:
report['recommendations'].append("Review pending rules manually")
print(json.dumps(report, indent=2))
- id: save_processing_report
name: save_processing_report
tool: OUTPUT_FILE
needs: [generate_processing_report]
input:
- name: content
value: "{{steps.generate_processing_report.result.data}}"
- name: filename
value: "batch_processing_report.json"
- name: fileType
value: "json"
```
## Choose an extraction mode
The `extractionMode` parameter is shared by `JINBA_MODULES_EXTRACT` and `JINBA_MODULES_PARSE`:
* **FAST**: Extracts data quickly. Best for high-volume processing of simple documents
* **BALANCED** (default): Extracts data with a balance of speed and accuracy. A good general-purpose choice
* **QUALITY**: Extracts data with the highest accuracy. Best for critical documents and complex layouts
## Choose an output format
The `outputFormat` parameter of `JINBA_MODULES_PARSE` controls the shape of the parsed result:
* **MARKDOWN** (default): Output in Markdown format, preserving headings, tables, and lists
* **TEXT**: Output as plain text
* **STRUCTURED**: Output in a structured format
## Data Schema Design
The `dataSchema` parameter of `JINBA_MODULES_EXTRACT` accepts any valid JSON Schema.
### Basic Schema Structure
```json theme={null}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"field_name": {
"type": "string|number|object|array",
"description": "Clear description of the field",
"format": "date|email|uri|etc",
"pattern": "regex_pattern_if_needed"
}
},
"required": ["list_of_required_fields"]
}
```
### Advanced Schema Features
* **Nested objects**: Complex data structures
* **Arrays**: Multiple items of the same type
* **Conditional fields**: Fields dependent on other values
* **Pattern matching**: Regex validation
* **Format validation**: Date, email, URL formats
## Rule Format
The `rules` parameter of `JINBA_MODULES_CHECKER_V2` is a JSON array of rule objects. Each rule is evaluated against the target file by the LLM.
| Field | Type | Required | Description |
| - | - | - | - |
| `uniqueId` | string | Yes | Identifier echoed back in the corresponding check result |
| `name` | string | Yes | Short rule name |
| `description` | string | Yes | What the rule checks, written in natural language |
| `references` | array | No | Rule-specific references: objects with `type` (`text` or `url`) and a matching `text` or `url` field |
| `examples` | array | No | Example judgments to guide the evaluation |
### Check Results
Each entry in the `result` output corresponds to one rule:
* **`uniqueId`**: The rule's identifier
* **`rule`**: The rule that was evaluated
* **`status`**: `accepted`, `rejected`, or `pending`
* **`range`**: The location in the target the judgment refers to
* **`reason`**: Detailed reasoning behind the judgment
* **`additionalData`**: Extra fields matching `additionalDataSchema`, when provided
## Use Cases
* **Invoice Processing**: Automated invoice data extraction and validation
* **Document Digitization**: Convert paper documents to structured data
* **Data Migration**: Extract data from legacy systems
* **Compliance Checking**: Validate documents against regulations
* **Research Data**: Extract structured data from research documents
* **Form Processing**: Automate form data extraction
* **Contract Analysis**: Extract key terms from contracts
* **Financial Processing**: Process financial statements and reports
## Best Practices
### Schema Design
* Keep schemas simple and focused
* Use clear, descriptive field names
* Include comprehensive descriptions
* Test schemas with sample data
* Version your schemas for consistency
### Extraction Optimization
* Choose the appropriate extraction mode for your use case
* Provide high-quality input documents
* Use consistent document formats when possible
* Monitor extraction accuracy and adjust as needed
### Checking Strategy
* Write rule descriptions in clear, unambiguous natural language
* Give each rule a stable `uniqueId` so results can be traced over time
* Attach `references` (regulations, legal documents, RAG search results) to suppress hallucinations
* Review `pending` results manually and refine rules based on the `reason` output
### Performance Considerations
* Batch similar documents together
* Use FAST mode for simple, high-volume processing
* Use QUALITY mode only where accuracy is critical
* Implement error handling for failed extractions
# Jinba Toolbox
Source: https://docs.jinba.io/en/pages/tools/jinba/jinba_toolbox
Register Python tools in Jinba Toolbox from a flow
## Overview
The Jinba Toolbox tool registers a Python tool in [Jinba Toolbox](/en/pages/toolbox/quickstart) from within a flow. It creates the toolset on first use and creates or updates the tool on every run, so a flow can keep a generated tool in sync with its source.
## Key Features
* `JINBA_TOOLBOX_REGISTER_TOOL`
* Register or update a Python tool identified by `org_id`, `tool_set_slug`, and `tool_slug`
* Creates the toolset (private, Python sandbox) when it does not exist yet, using `tool_set_name` and `tool_set_description`
* Sends `tool_name`, `tool_description`, and `code` on every run — changing `tool_name` between runs renames the tool
* Does not publish a version: publish from the Toolbox web console once the tool is registered
## Authentication
Set the `api_key` config to a Jinba Toolbox API key (secret type `JINBA_TOOLBOX_API_KEY`). The optional `base_url` config overrides the Toolbox API URL configured for your Jinba Flow deployment.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Usage Examples
### Example: Register a Tool
```yaml theme={null}
- id: register_tool
name: register_tool
tool: JINBA_TOOLBOX_REGISTER_TOOL
config:
- name: api_key
value: "{{secrets.JINBA_TOOLBOX_API_KEY}}"
input:
- name: org_id
value: my-org
- name: tool_set_slug
value: greetings
- name: tool_set_name
value: Greetings
- name: tool_slug
value: hello
- name: tool_name
value: Hello
- name: tool_description
value: Return a greeting for the given name.
- name: code
value: |
from pydantic import BaseModel
class Input(BaseModel):
name: str
class Output(BaseModel):
message: str
def run(input: Input) -> Output:
return Output(message=f"Hello, {input.name}!")
```
## Notes
* Inputs: `org_id` (Toolbox organization id or slug), `tool_set_slug` and `tool_slug` (lowercase letters, digits, and hyphens; up to 64 characters), `tool_set_name` and `tool_name` (up to 256 characters), `tool_set_description` and `tool_description` (optional, up to 4,096 characters), and `code` (up to 65,536 characters).
* `code` must define `Input` and `Output` pydantic `BaseModel` classes and a `run(input: Input) -> Output` function — Toolbox extracts the tool's I/O schema from them and rejects code that is missing any of them.
* `tool_set_name` and `tool_set_description` are used only when the toolset is created; an existing toolset is not renamed. An empty `tool_set_description` falls back to `tool_set_name`. An empty `tool_description` leaves an existing tool's description unchanged.
* `result` contains `tool_set_slug`, `tool_slug`, `tool_set_created`, and `tool_created` (`true` when the run created the toolset or tool rather than updating it).
* Concurrent registrations of the same `tool_set_slug` / `tool_slug` are not coordinated — serialize them in the flow.
# Update and Manage Knowledge Bases in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/jinba/knowledge_base
Use JINBA_KNOWLEDGE_BASE_FILE_ADD to add files and JINBA_KNOWLEDGE_BASE_UPDATE to update an existing file, in SYNCHRONOUS or ASYNCHRONOUS mode.
The Jinba Knowledge Base tools allow you to add files to and update files in knowledge bases within the Jinba ecosystem. These tools enable you to maintain up-to-date information repositories that can be accessed by other tools and workflows (such as vector search) for enhanced AI-powered operations.
* `JINBA_KNOWLEDGE_BASE_FILE_ADD`: Add a file to a knowledge base, with configurable chunking
* `JINBA_KNOWLEDGE_BASE_UPDATE`: Update an existing file in a knowledge base with new content
* Integration with vector search capabilities
* Synchronous or asynchronous execution (wait for chunking or return immediately)
These tools authenticate with a workspace secret key via the `token` config, which defaults to `{{ secrets.JINBAFLOW_WS_API_KEY }}` — you usually do not need to set it explicitly.
## Tools
### JINBA_KNOWLEDGE_BASE_FILE_ADD
Add a file to a knowledge base.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `knowledgeBaseId` | string | Yes | Target knowledge base |
| `file` | string | Yes | Base64 encoded file content or file URL starting with `https://` or `data:` |
| `filename` | string | Yes | Name of the file (extension will be auto-detected from the file) |
| `metadata` | string (JSON) | No | Optional metadata to attach to the file |
| `chunkerSettings` | object | No | Chunking settings: `chunkSize` (1-8192, default: 512), `chunkOverlap` (0-2048, default: 128), `chunkingIdentifier` (default: `"\\n\\n"`) |
| `executionMode` | string | No | `SYNCHRONOUS` to wait for chunking or `ASYNCHRONOUS` to return immediately (default: `ASYNCHRONOUS`) |
**Output**:
| Field | Type | Description |
| - | - | - |
| `knowledgeBaseId` | string | ID of the knowledge base |
| `fileId` | string | ID of the added file |
| `filename` | string | Name of the added file |
| `status` | string | Processing status: `pending`, `processing`, `completed`, or `failed` |
| `contentType` | string | Content type of the file |
| `size` | string | File size |
| `chunkCount` | number | Number of chunks created |
| `createdAt` | string | Creation timestamp |
### JINBA_KNOWLEDGE_BASE_UPDATE
Update an existing file in a knowledge base with new content.
**Input**:
| Parameter | Type | Required | Description |
| - | - | - | - |
| `knowledgeBaseId` | string | Yes | Target knowledge base |
| `knowledgeBaseFileId` | string | Yes | Existing knowledge base file ID to update |
| `fileUrl` | string | Yes | URL of the file content to update with |
| `updateType` | string | No | Update strategy; `FULL_REFRESH` replaces the file in the knowledge base (default: `FULL_REFRESH`) |
| `executionMode` | string | No | `SYNCHRONOUS` to wait for chunking or `ASYNCHRONOUS` to return immediately (default: `SYNCHRONOUS`) |
**Output**:
| Field | Type | Description |
| - | - | - |
| `knowledgeBaseId` | string | ID of the knowledge base |
| `fileId` | string | ID of the updated file |
| `filename` | string | Name of the updated file |
| `status` | string | Processing status: `pending`, `processing`, `completed`, or `failed` |
| `chunkCount` | number | Number of chunks created |
## Add files to a knowledge base
```yaml theme={null}
- id: add_file_to_kb
tool: JINBA_KNOWLEDGE_BASE_FILE_ADD
input:
- name: knowledgeBaseId
value: "{{secrets.KNOWLEDGE_BASE_ID}}"
- name: file
value: "https://example.com/product-manual.pdf"
- name: filename
value: "product-manual.pdf"
- name: executionMode
value: "SYNCHRONOUS"
- name: chunkerSettings
value:
chunkSize: 512
chunkOverlap: 128
chunkingIdentifier: "\\n\\n"
```
### Example: Generate a Report and Store It in a Knowledge Base
`summarize_tickets` stands for an earlier step in your flow; its result is assumed to contain the summary text in `content`.
```yaml theme={null}
- id: create_report
tool: OUTPUT_FILE
input:
- name: content
value: |
# Weekly Support Summary
{{steps.summarize_tickets.result.content}}
- name: filename
value: "support_summary.md"
- name: fileType
value: "md"
- id: add_report_to_kb
tool: JINBA_KNOWLEDGE_BASE_FILE_ADD
needs: [create_report]
input:
- name: knowledgeBaseId
value: "{{secrets.KNOWLEDGE_BASE_ID}}"
- name: file
value: "{{steps.create_report.result.signedUrl}}"
- name: filename
value: "support_summary.md"
- name: executionMode
value: "ASYNCHRONOUS"
```
## Update a knowledge base
```yaml theme={null}
- id: update_kb_file
tool: JINBA_KNOWLEDGE_BASE_UPDATE
input:
- name: knowledgeBaseId
value: "{{secrets.KNOWLEDGE_BASE_ID}}"
- name: knowledgeBaseFileId
value: "{{secrets.FILE_ID}}"
- name: fileUrl
value: "https://example.com/updated-product-manual.pdf"
- name: updateType
value: "FULL_REFRESH"
- name: executionMode
value: "SYNCHRONOUS"
```
## Use Cases
* Maintaining product documentation and changelogs
* Building comprehensive troubleshooting guides
* Creating workflow documentation repositories
* Storing best practices and guidelines
* Building FAQ and support knowledge bases
* Keeping RAG search sources up to date automatically
## Best Practices
* Use descriptive filenames so files are easy to identify later
* Tune `chunkerSettings` for your content: smaller chunks (256-512) for precise retrieval, larger chunks (1024-2048) for maintaining context
* Use `SYNCHRONOUS` execution when downstream steps depend on the file being searchable
* Use `ASYNCHRONOUS` execution for large files to avoid blocking the flow
* Check the `status` output (`pending` / `processing` / `completed` / `failed`) before relying on the file in searches
* Update existing files with `JINBA_KNOWLEDGE_BASE_UPDATE` instead of adding duplicates
# Run Semantic Search on Knowledge Bases in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/jinba/vector_search
Use JINBA_VECTOR_SEARCH to run semantic queries against a knowledge base using vector embeddings in a Jinba Flow workflow.
Jinba Vector Search enables semantic search capabilities for knowledge bases using vector embeddings. This tool uses OpenAI's text-embedding-3-large to vectorize queries and retrieve relevant data from your knowledge base based on similarity scores, providing powerful RAG (Retrieval-Augmented Generation) functionality.
* **Semantic Search**: Find conceptually similar content, not just exact matches
* **Knowledge Base Integration**: Search across uploaded documents and files
* **Similarity Scoring**: Filter results by similarity threshold
* **Configurable Results**: Control the number of results returned
* **RAG Support**: Perfect for building question-answering and information retrieval workflows
This tool authenticates with a workspace secret key via the `token` config, which defaults to `{{ secrets.JINBAFLOW_WS_API_KEY }}` — you usually do not need to set it explicitly.
**Configuration:**
* `token` (string): Jinba Flow workspace API key (stored as a secret; defaults to `{{ secrets.JINBAFLOW_WS_API_KEY }}`)
## Input Parameters
| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `query` | string | Yes | - | Search query for semantic search |
| `knowledgeBaseId` | string | Yes | - | ID of the knowledge base to search |
| `topK` | number | No | 3 | Number of top results to return (1-50) |
| `threshold` | number | No | 0.3 | Similarity threshold for filtering results (0-1) |
| `filter` | object | No | - | Filter options; `filter.metadata` is a key-value map that restricts results by chunk metadata |
## Output Structure
The output has the following top-level fields (`steps..results`, `steps..query`, `steps..totalResults` — not under `result`):
| Field | Type | Description |
| - | - | - |
| `results` | array | Search results; each entry has `chunk` (`id`, `fileId`, `content`, `contentType`, `metadata`, `createdAt`), `score` (0-1, higher is more similar), and `file` (`id`, `filename`, `contentType`, `metadata`) |
| `query` | string | The original search query |
| `totalResults` | number | Total number of results found |
## Build a document Q\&A system
```yaml theme={null}
- id: search_knowledge_base
name: search_knowledge_base
tool: JINBA_VECTOR_SEARCH
config:
- name: token
value: "{{secrets.JINBA_API_TOKEN}}"
input:
- name: query
value: "What is our company's return policy?"
- name: knowledgeBaseId
value: "{{secrets.KNOWLEDGE_BASE_ID}}"
- name: topK
value: 5
- name: threshold
value: 0.4
- id: generate_answer
name: generate_answer
tool: OPENAI_INVOKE
needs: [search_knowledge_base]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Based on the following search results from our knowledge base, answer the user's question about our return policy.
Search Results:
{% for r in steps.search_knowledge_base.results %}
**From: {{r.file.filename}}**
Content: {{r.chunk.content}}
Similarity: {{r.score}}
{% endfor %}
Question: {{steps.search_knowledge_base.query}}
Please provide a comprehensive answer based on the search results above.
```
## Example: Research Assistant
```yaml theme={null}
- id: research_query
name: research_query
tool: INPUT_TEXT
input:
- name: description
value: "Enter your research question"
- id: search_research_base
name: search_research_base
tool: JINBA_VECTOR_SEARCH
needs: [research_query]
config:
- name: token
value: "{{secrets.JINBA_API_TOKEN}}"
input:
- name: query
value: "{{steps.research_query.result}}"
- name: knowledgeBaseId
value: "{{secrets.RESEARCH_KB_ID}}"
- name: topK
value: 10
- name: threshold
value: 0.3
- id: analyze_findings
name: analyze_findings
tool: PYTHON_SANDBOX_RUN
needs: [search_research_base]
input:
- name: code
value: |
import json
# Previous step outputs are injected as the `steps` object
results = steps.search_research_base.results
query = steps.search_research_base.query
total_results = steps.search_research_base.totalResults
print("=== Research Findings ===")
print(f"Query: {query}")
print(f"Total Results: {total_results}")
print()
# Group results by source file
sources = {}
for result in results:
filename = result['file']['filename']
if filename not in sources:
sources[filename] = []
sources[filename].append({
'content': result['chunk']['content'][:200] + "...",
'score': result['score']
})
print("=== Sources Found ===")
for filename, chunks in sources.items():
print(f"\n📄 {filename}")
for i, chunk in enumerate(chunks[:3]): # Top 3 chunks per file
print(f" {i+1}. Score: {chunk['score']:.3f}")
print(f" {chunk['content']}")
# Calculate average similarity
avg_score = sum(r['score'] for r in results) / len(results)
print(f"\n📊 Average Similarity: {avg_score:.3f}")
- id: synthesize_response
name: synthesize_response
tool: ANTHROPIC_INVOKE
needs: [search_research_base]
config:
- name: token
value: "{{secrets.ANTHROPIC_API_KEY}}"
input:
- name: prompt
value: |
You are a research assistant. Synthesize the following search results into a comprehensive response.
Original Query: {{steps.search_research_base.query}}
Search Results:
{% for r in steps.search_research_base.results %}
**Source: {{r.file.filename}}** (Similarity: {{r.score}})
{{r.chunk.content}}
---
{% endfor %}
Please provide:
1. A direct answer to the question
2. Key insights from multiple sources
3. Any conflicting information found
4. Suggestions for further research
```
## Example: Content Recommendation
```yaml theme={null}
- id: get_user_interests
name: get_user_interests
tool: INPUT_TEXT
input:
- name: description
value: "Describe topics or content you're interested in"
- id: find_related_content
name: find_related_content
tool: JINBA_VECTOR_SEARCH
needs: [get_user_interests]
config:
- name: token
value: "{{secrets.JINBA_API_TOKEN}}"
input:
- name: query
value: "{{steps.get_user_interests.result}}"
- name: knowledgeBaseId
value: "{{secrets.CONTENT_KB_ID}}"
- name: topK
value: 8
- name: threshold
value: 0.25
- id: format_recommendations
name: format_recommendations
tool: PYTHON_SANDBOX_RUN
needs: [find_related_content]
input:
- name: code
value: |
# Previous step outputs are injected as the `steps` object
results = steps.find_related_content.results
query = steps.find_related_content.query
total_results = steps.find_related_content.totalResults
print("🔍 **Content Recommendations**")
print(f"Based on: *{query}*\n")
recommendations = []
for i, result in enumerate(results[:5], 1):
chunk = result['chunk']
file_info = result['file']
score = result['score']
# Extract first sentence or 100 characters
content_preview = chunk['content'][:100].split('.')[0] + "..."
recommendations.append({
'rank': i,
'title': file_info['filename'],
'preview': content_preview,
'relevance': f"{score:.1%}",
'content_type': file_info['contentType']
})
for rec in recommendations:
print(f"**{rec['rank']}. {rec['title']}**")
print(f" 📋 {rec['preview']}")
print(f" 🎯 Relevance: {rec['relevance']}")
print(f" 📄 Type: {rec['content_type']}")
print()
if len(results) == 0:
print("No relevant content found. Try adjusting your search terms or lowering the threshold.")
```
## Best Practices
### Query Optimization
* **Use natural language**: Write queries as you would ask a human
* **Be specific**: More specific queries often yield better results
* **Include context**: Add relevant keywords and context terms
### Threshold Selection
* **0.7-1.0**: Very high similarity, exact or near-exact matches
* **0.4-0.7**: High similarity, closely related content
* **0.2-0.4**: Moderate similarity, potentially relevant content
* **0.0-0.2**: Low similarity, may include tangentially related content
### Performance Tips
* **Limit topK**: Don't retrieve more results than needed
* **Adjust threshold**: Higher thresholds = fewer, more relevant results
* **Use metadata**: Leverage chunk metadata for additional filtering
## Set up a knowledge base
Before using vector search, ensure your knowledge base contains relevant documents:
1. **Upload Documents**: Add PDFs, text files, or other supported formats
2. **Processing**: Allow time for document chunking and vectorization
3. **Test Queries**: Start with simple queries to understand your data
4. **Iterate**: Refine queries and thresholds based on results
## Use Cases
* **Customer Support**: Find relevant documentation for user questions
* **Research Assistant**: Discover related research papers and documents
* **Content Discovery**: Recommend similar articles or resources
* **FAQ Automation**: Automatically answer common questions
* **Document Analysis**: Find specific information across large document sets
* **Knowledge Management**: Quick access to institutional knowledge
* **Legal Research**: Search through contracts and legal documents
* **Product Information**: Find technical specifications and manuals
# Generate Videos and Images from Text in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/media/video_generation
Use KLING_TEXT_TO_VIDEO and LUMA_TEXT_TO_VIDEO to generate video, and LUMA_TEXT_TO_IMAGE to generate images from text descriptions.
AI Video Generation tools allow you to create high-quality videos from simple text descriptions using advanced AI models. These tools support multiple video formats, aspect ratios, and durations for various use cases.
* `LUMA_TEXT_TO_VIDEO`
* Generate videos using Luma AI's models (`model`: `ray-2` (default), `ray-flash-2`, `ray-1-6`)
* `resolution`: `540p`, `720p` (default), `1080p`, or `4k`; `aspect_ratio`: `16:9` (default), `9:16`, `1:1`, `4:3`, `3:4`, `21:9`
* `duration`: `5s` (default) or `10s`; set `loop` to `true` for a seamlessly looping video
* Returns `video_url`, `thumbnail_url`, `generation_id`, `status`, `width`, `height`, and `duration`
* `LUMA_TEXT_TO_IMAGE`
* Generate images from text descriptions (`model`: `photon-1` (default) or `photon-flash-1`; `aspect_ratio`: `1:1`, `3:4`, `4:3`, `9:16`, `16:9` (default), `9:21`, `21:9`)
* Returns `image_url`, `generation_id`, `status`, `width`, and `height`
* `KLING_TEXT_TO_VIDEO`
* Generate videos using Kling AI's models (`model`: `v2/master` (default) or `v1.6/standard`)
* `duration`: `5` (default) or `10` seconds; `aspect_ratio`: `16:9` (default), `9:16`, `1:1`; optional `negative_prompt` and `cfg_scale` (0–1, default `0.5`)
* Returns `video_url`, `status`, `duration`, and `aspect_ratio`
All generation options are step inputs; the only configuration field is the `api_key`.
For further details, [click here](/en/pages/credentials/luma) and [click here](/en/pages/credentials/kling).
To use video generation tools, you need API keys from the respective services:
* Luma AI: Obtain from [Luma AI website](https://lumalabs.ai/)
* Kling AI: Obtain from [Kling AI website](https://klingai.kuaishou.com/)
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Generate a video from text
```yaml theme={null}
- id: generate_marketing_video
name: generate_marketing_video
tool: LUMA_TEXT_TO_VIDEO
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: |
A professional product showcase video featuring a sleek smartphone
rotating slowly on a white background with soft lighting. The phone
displays a modern app interface. Camera slowly zooms in to highlight
the premium build quality and design details.
- name: model
value: "ray-2"
- name: aspect_ratio
value: "16:9"
- name: resolution
value: "1080p"
- name: duration
value: "10s"
- name: loop
value: false
- id: generate_social_media_video
name: generate_social_media_video
tool: KLING_TEXT_TO_VIDEO
config:
- name: api_key
value: "{{secrets.KLING_API_KEY}}"
input:
- name: prompt
value: |
A vibrant animated scene of a person working at a coffee shop,
typing on a laptop with steam rising from their coffee cup.
Warm afternoon sunlight streaming through the window.
Perfect for social media content about productivity and lifestyle.
- name: aspect_ratio
value: "9:16"
- name: duration
value: "5"
```
### Example: Video Content Creation Pipeline
```yaml theme={null}
- id: get_video_brief
name: get_video_brief
tool: INPUT_JSON_WITH_VALIDATION
input:
- name: value
value: '{"video_type": "product_demo", "product_name": "Smart Watch", "target_audience": "fitness enthusiasts", "duration": "10s", "style": "modern_minimal"}'
- id: generate_video_script
name: generate_video_script
tool: OPENAI_INVOKE
needs: [get_video_brief]
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Create a detailed video description/prompt for AI video generation based on this brief:
Product: {{steps.get_video_brief.result.product_name}}
Target Audience: {{steps.get_video_brief.result.target_audience}}
Duration: {{steps.get_video_brief.result.duration}}
Style: {{steps.get_video_brief.result.style}}
Type: {{steps.get_video_brief.result.video_type}}
Requirements:
1. Write a detailed visual description for AI video generation
2. Include camera movements, lighting, and composition details
3. Specify product positioning and key features to highlight
4. Ensure the description fits the target duration
5. Match the requested visual style
Format the output as a single, detailed prompt suitable for AI video generation.
- id: create_main_video
name: create_main_video
tool: LUMA_TEXT_TO_VIDEO
needs: [get_video_brief, generate_video_script]
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: "{{steps.generate_video_script.result.content}}"
- name: model
value: "ray-2"
- name: aspect_ratio
value: "16:9"
- name: duration
value: "{{steps.get_video_brief.result.duration}}"
- id: create_social_variant
name: create_social_variant
tool: KLING_TEXT_TO_VIDEO
needs: [generate_video_script]
config:
- name: api_key
value: "{{secrets.KLING_API_KEY}}"
input:
- name: prompt
value: |
Vertical social media version: {{steps.generate_video_script.result.content}}
Optimized for mobile viewing with close-up shots and dynamic movement.
- name: aspect_ratio
value: "9:16"
- name: duration
value: "5"
```
### Example: Video Generation with Quality Control
```yaml theme={null}
- id: generate_video_options
name: generate_video_options
tool: PYTHON_SANDBOX_RUN
input:
- name: data_type
value: OBJECT
- name: code
value: |
import json
base_prompt = "A professional presentation of a new mobile app interface"
# Generate variations for A/B testing
variations = [
{
"name": "version_a_minimal",
"prompt": f"{base_prompt} with minimal design, clean white background, subtle animations",
"model": "ray-2",
"aspect_ratio": "16:9"
},
{
"name": "version_b_dynamic",
"prompt": f"{base_prompt} with dynamic camera movements, colorful gradient background, energetic transitions",
"model": "ray-flash-2",
"aspect_ratio": "16:9"
},
{
"name": "version_c_social",
"prompt": f"{base_prompt} optimized for social media, vertical format, engaging visual effects",
"model": "ray-2",
"aspect_ratio": "9:16"
}
]
print(json.dumps({"variations": variations}))
- id: create_version_a
name: create_version_a
tool: LUMA_TEXT_TO_VIDEO
needs: [generate_video_options]
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: "{{steps.generate_video_options.result.data.variations[0].prompt}}"
- name: model
value: "{{steps.generate_video_options.result.data.variations[0].model}}"
- name: aspect_ratio
value: "{{steps.generate_video_options.result.data.variations[0].aspect_ratio}}"
- name: duration
value: "10s"
- id: create_version_b
name: create_version_b
tool: LUMA_TEXT_TO_VIDEO
needs: [generate_video_options]
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: "{{steps.generate_video_options.result.data.variations[1].prompt}}"
- name: model
value: "{{steps.generate_video_options.result.data.variations[1].model}}"
- name: aspect_ratio
value: "{{steps.generate_video_options.result.data.variations[1].aspect_ratio}}"
- name: duration
value: "10s"
- id: analyze_results
name: analyze_results
tool: PYTHON_SANDBOX_RUN
needs: [create_version_a, create_version_b]
input:
- name: data_type
value: OBJECT
- name: code
value: |
import json
# Compile results
results = {
"version_a": {
"url": "{{steps.create_version_a.result.video_url}}",
"status": "{{steps.create_version_a.result.status}}",
"style": "minimal"
},
"version_b": {
"url": "{{steps.create_version_b.result.video_url}}",
"status": "{{steps.create_version_b.result.status}}",
"style": "dynamic"
}
}
print(json.dumps({"video_results": results}))
```
## Generate an image and videos from text
```yaml theme={null}
- id: create_hero_image
name: create_hero_image
tool: LUMA_TEXT_TO_IMAGE
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: |
A stunning hero image for a tech startup website. Modern office space
with diverse team members collaborating around a large display showing
data visualizations. Professional lighting, clean design, inspiring
atmosphere. High-resolution, photorealistic.
- name: model
value: "photon-1"
- name: aspect_ratio
value: "16:9"
- id: create_background_video
name: create_background_video
tool: LUMA_TEXT_TO_VIDEO
config:
- name: api_key
value: "{{secrets.LUMA_API_KEY}}"
input:
- name: prompt
value: |
Subtle background video for website hero section. Gentle floating
abstract particles and soft geometric shapes in corporate blue colors.
Minimal motion, professional feel, seamless loop. Perfect for website
background without being distracting.
- name: model
value: "ray-flash-2"
- name: aspect_ratio
value: "16:9"
- name: duration
value: "10s"
- name: loop
value: true
- id: create_product_showcase
name: create_product_showcase
tool: KLING_TEXT_TO_VIDEO
config:
- name: api_key
value: "{{secrets.KLING_API_KEY}}"
input:
- name: prompt
value: |
Square format product showcase for Instagram. Modern laptop computer
on a clean desk setup with plants and coffee. Smooth 360-degree
rotation showing all angles. Premium aesthetic with natural lighting
and minimal shadows.
- name: aspect_ratio
value: "1:1"
- name: duration
value: "5"
```
## Tips and Best Practices
* Use specific, detailed prompts for better video quality
* Choose the right model based on your needs (quality vs speed)
* Consider aspect ratio based on intended platform (16:9 for web, 9:16 for mobile)
* Test different prompt variations to find the best results
* Use looping for background videos and website elements
* Plan video duration based on platform requirements
* Include lighting, camera movement, and composition details in prompts
* Consider creating multiple versions for A/B testing
* Monitor API usage and costs for high-volume generation
# Fetch Categories and Suppliers from Netsea in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/netsea
Use NETSEA_GET_CATEGORIES to list categories and NETSEA_GET_SUPPLIERS to fetch suppliers via the Netsea API.
Netsea is a platform that provides access to a wide range of products and suppliers. This tool allows you to connect with the Netsea API, enabling you to retrieve product information, supplier details, and manage your inventory programmatically. This integration is useful for automating workflows and enhancing productivity within your e-commerce operations.
* `NETSEA_GET_SUPPLIERS`
* Retrieve a list of suppliers from the Netsea platform.
* `NETSEA_GET_CATEGORIES`
* Retrieve a list of product categories from the Netsea platform.
## Connect to the Netsea API
For further details, [click here](/en/pages/credentials/netsea).
To use the Netsea API, you need to set up an API key for buyers. You can sign up up for an account on the [Netsea website](https://netsea.jp/) and generate your API key.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## Fetch suppliers and list categories
```yaml theme={null}
- id: get_suppliers
tool: NETSEA_GET_SUPPLIERS
config:
- name: token
value: "{{secrets.NETSEA_API_TOKEN}}"
input:
[]
- id: get_categories
tool: NETSEA_GET_CATEGORIES
config:
- name: token
value: "{{secrets.NETSEA_API_TOKEN}}"
- name: all_levels
value: false
input:
[]
```
# Create and List Products in Shopify in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/productivity/shopify
Use SHOPIFY_CREATE_PRODUCT to create products and SHOPIFY_LIST_PRODUCTS to list them.
The Shopify tools allow you to work with products in your Shopify store through the Admin GraphQL API: list existing products and create new ones.
* `SHOPIFY_LIST_PRODUCTS`
* Retrieve a list of products from your Shopify store.
* `SHOPIFY_CREATE_PRODUCT`
* Create a new product in your Shopify store.
## Connect with Shopify credentials
For further details, [click here](/en/pages/credentials/shopify).
To use the Shopify API, you need to create a private app in your Shopify store. This will provide you with the necessary credentials (API key and password) to authenticate your requests.
**Note**: Treat API keys as sensitive information and never commit them to public repositories.
## List and create products
```yaml theme={null}
- name: Get Product List
id: list_products
tool: SHOPIFY_LIST_PRODUCTS
config:
- name: token
value: "{{secrets.SHOPIFY_API_TOKEN}}"
- name: api_version
value: 2025-01
input:
- name: shop_domain
value: jinbaflow.myshopify.com
- name: limit
value: 5
- name: Create New Product
id: create_product
tool: SHOPIFY_CREATE_PRODUCT
config:
- name: token
value: "{{secrets.SHOPIFY_API_TOKEN}}"
- name: api_version
value: 2025-01
input:
- name: shop_domain
value: gzb31e-yv.myshopify.com
- name: title
value: Jinba Flow Test Product
- name: description
value: This is a test product created from Jinba Flow.
- name: vendor
value: Jinba Flow
- name: product_type
value: Test
- name: status
value: DRAFT
```
# Automate Browser Tasks in a Sandbox
Source: https://docs.jinba.io/en/pages/tools/sandbox/browser_use_sandbox
AI-powered browser automation running in an E2B sandbox
The Browser Use Sandbox tool runs the open-source [browser-use](https://browser-use.com) framework inside a secure E2B sandbox. Describe what you want the agent to do in plain language, and it will navigate the web, fill forms, extract data, and more — all powered by OpenAI models.
For Human-in-the-Loop workflows, set `keep_session: true` to pause after the task and receive a `sandbox_id`. Pass that `sandbox_id` back to a subsequent `BROWSER_USE_SANDBOX_RUN_TASK` step to reconnect to the same browser session and continue.
## Configuration
| Field | Description |
| - | - |
| `openai_api_key` | Your OpenAI API key. Leave blank to use Jinba Credit. |
| `timeout` | Execution timeout in milliseconds (default: 600000 = 10 min) |
## Inputs
| Field | Type | Description |
| - | - | - |
| `task` | string | Natural-language description of what to do in the browser |
| `sandbox_id` | string | E2B sandbox ID from a previous run with `keep_session: true`. When provided, reconnects to that session and continues. Use `{{steps..result.sandbox_id}}`. Leave empty to start a new session. Only a sandbox started in the same workspace can be resumed; any other ID is rejected before connecting. |
| `llm_model` | enum | OpenAI model to use (`gpt-4.1` / `gpt-4.1-mini` / `gpt-5.1`) |
| `max_steps` | number | Maximum agent steps (default: 20, maximum: 100). A larger value runs as 100. |
| `capture_screenshot` | boolean | Return a signed URL to the final browser screenshot |
| `keep_session` | boolean | Keep the browser session alive after the task completes. Only used when starting a new session (no `sandbox_id`). Returns `sandbox_id` and `current_url` for use in a subsequent step. |
## Credit cost
When `openai_api_key` is blank, the step is billed in Jinba Credit per token, at the rate of the `llm_model` you pick — not a flat fee per step. Supplying your own key bills OpenAI directly and costs no credits.
* **Before the run**, credits are reserved: `max_steps` × the tokens one browser step typically sends (each step re-sends the page DOM and the run history), at that model's rate. The reservation is also the admission check — a balance below it refuses the step before the sandbox starts.
* **After the run**, the reservation is replaced by the token usage the agent actually reported, whether the task succeeded or failed. Only the reservation is capped at `max_steps: 100`; the final charge follows real usage.
* A run that ends without reporting any usage is charged the tool's fixed minimum. This is not a per-run price: a run that reports its usage is charged for its tokens.
* **A step that runs over a list (`forEach`) is settled per iteration.** Each iteration is billed by the two rules above as if it had run alone: its own reported tokens, or the minimum when it reported none. The step's charge is the sum over all iterations. Only the **reservation** is still a single iteration's figure — so the admission check does not bound the final charge, and a 20-iteration loop can settle at up to 20× what one iteration costs. Budget a `forEach` browser-use step at one iteration's cost × the number of items, not at its reservation. Inside a flow run, the balance is checked again before each batch of iterations: a batch starts only as many iterations as the remaining balance covers at one reservation each, after what the finished iterations cost, so a loop on a low balance runs with less parallelism. When not even one more reservation fits, the loop stops there — the next iteration fails with `InsufficientCredits`, the rest are skipped, and the iterations that ran keep their results and are charged. "Run Step" has no such check, and neither does a loop placed inside a subflow.
Every run reserves at least the tool's minimum charge. Above that, the reservation grows with `max_steps` and with the price of `llm_model`, so raising `max_steps` raises what your balance must cover up front, even for a task that finishes in a few steps. The step's badge reads "Dynamic pricing"; the usage page shows what each run was charged ([How tools are priced](/en/pages/basics/credit-costs#how-tools-are-priced)).
## Outputs
| Field | Type | Description |
| - | - | - |
| `output` | string | The agent's final answer |
| `is_done` | boolean | Whether the agent completed the task |
| `steps` | array | Per-step `action` / `extracted_content` / `error` |
| `screenshot` | string | Signed URL to the final screenshot |
| `files` | array | Files the agent downloaded. Absent when nothing was downloaded |
| `sandbox_id`, `current_url` | string | Set when `keep_session: true` |
### `files[]`
| Field | Description |
| - | - |
| `filename` | Name the site gave the download |
| `url` | Signed Jinba URL. Pass it to a later step |
| `size` | Size in bytes |
| `content_type` | Guessed MIME type |
| `error` | Why this file has no `url` |
A file is never dropped silently — if it cannot be carried out, the entry comes back with `error` instead of `url`. Reasons: over 10 MB, the run total over 20 MB, more than 20 files, the download was still in progress when the agent stopped, or the extension is outside the accepted set.
Accepted extensions: `csv`, `html`, `json`, `txt`, `xml`, `yaml`, `yml`, `md`, `tsv`, `log`, `sql`, `xls`, `xlsx`, `pdf`, `docx`, `pptx`, `png`, `svg`, `jpg`, `jpeg`, `gif`, `webp`.
## Typing a secret the agent must not see
Write `MY_SECRET` in `task`, where `MY_SECRET` is the name of a **workspace** secret. The agent and the LLM only ever see the placeholder; the real value is restored in the browser action that types it, and the step output records `Typed sensitive data` rather than the value.
```yaml theme={null}
- id: login
tool: BROWSER_USE_SANDBOX_RUN_TASK
input:
- name: task
value: |
Go to https://portal.example.com and sign in with
PORTAL_ID and PORTAL_PASS,
then download the latest CSV.
```
> [!WARNING]
>
> **Do not write `{{secrets.MY_SECRET}}` in `task`.** It is expanded before the step runs, so the value is recorded in the step's input and sent to the LLM. The step fails with a `ConfigurationError` when it detects one — including in flows that worked this way before this behaviour existed.
> [!NOTE]
>
> Only **workspace** and **organization** secrets can be used. Personal (user-scoped) secrets are not visible to this tool.
>
> The secret is scoped to the agent, not to a site: browser-use will type it on whatever page the agent reaches. Keep the task specific about which sites to visit, and prefer a credential whose blast radius you accept.
## Example — Simple task
```yaml theme={null}
- id: browse
tool: BROWSER_USE_SANDBOX_RUN_TASK
input:
- name: task
value: "Go to https://example.com and return the page title and main heading text."
- name: llm_model
value: gpt-4.1-mini
- name: max_steps
value: 10
```
## Example — Human-in-the-Loop form submission
```yaml theme={null}
- id: fill_form
tool: BROWSER_USE_SANDBOX_RUN_TASK
input:
- name: task
value: "Go to https://example.com/contact, fill in the name and email fields, then stop before clicking submit."
- name: llm_model
value: gpt-4.1
- name: keep_session
value: "true"
- id: wait_for_approval
tool: WAIT_FOR_APPROVAL
input:
- name: message
value: "Please review the filled form and approve to submit."
- id: submit_form
tool: BROWSER_USE_SANDBOX_RUN_TASK
needs: [fill_form, wait_for_approval]
input:
- name: sandbox_id
value: "{{steps.fill_form.result.sandbox_id}}"
- name: task
value: "Click the submit button. Reviewer comment: {{steps.wait_for_approval.result.comment}}"
- name: llm_model
value: gpt-4.1
- name: capture_screenshot
value: "true"
```
# Run Local and Remote Tools via MCP in Jinba Flow
Source: https://docs.jinba.io/en/pages/tools/sandbox/mcp_tools
Use MCP_LOCAL_RUN and MCP_REMOTE_RUN with the Model Context Protocol to integrate local and remote tools into Jinba Flow workflows for tool execution.
MCP (Model Context Protocol) Tools enable integration with MCP servers for extended functionality. These tools allow you to connect to both local (stdio) and remote (Streamable HTTP) MCP servers, fetch the list of tools the server exposes, pick one, and execute it with your inputs. The call itself runs in the Python sandbox with the MCP Python SDK.
## Tools
### MCP_LOCAL_RUN
* Starts a local MCP server as a subprocess (stdio transport) and calls one of its tools
* Single `mcp` input (configured in the step editor) with `command` (default `npx`), `args` (default `["-y"]`), optional `env`, the fetched `tools` list, the `selectedTool` ID, and `toolInputs` for that tool
* `command`, `selectedTool`, and `toolInputs` are required at run time; otherwise the step fails with `Missing required fields: command, selectedTool, or toolInputs`
### MCP_REMOTE_RUN
* Connects to a remote MCP server over Streamable HTTP and calls one of its tools
* Single `mcp` input with `server_url`, optional `headers` (for example an `Authorization` header), the fetched `tools` list, the `selectedTool` ID, and `toolInputs`
* `server_url`, `selectedTool`, and `toolInputs` are required at run time; otherwise the step fails with `Missing required fields: server_url, selectedTool, or toolInputs`
Both tools have no configuration fields. The setup is interactive: open the step in the editor, fetch the server's tools, select one, and fill in its inputs. The selected tool and its inputs are then saved on the step.
## Authentication
MCP tools have no `config` of their own. Pass credentials through the `mcp` input: `env` for a local server (for example an API key the server reads from its environment) or `headers` for a remote server. Store secrets as Flow secrets and reference them with `{{secrets.NAME}}`.
## Call a tool on a local MCP server
Replace `your-mcp-server-package`, `read_document`, and the `toolInputs` with the package, tool name, and input schema of the MCP server you fetched in the step editor.
```yaml theme={null}
- id: read_document
name: read_document
tool: MCP_LOCAL_RUN
input:
- name: mcp
value:
command: npx
args: ["-y", "your-mcp-server-package"]
env:
EXAMPLE_API_KEY: "{{secrets.EXAMPLE_API_KEY}}"
selectedTool: read_document
toolInputs:
path: "/data/report.txt"
- id: summarize_document
name: summarize_document
tool: OPENAI_INVOKE
needs: [read_document]
input:
- name: prompt
value: |
Summarize the following document:
{{steps.read_document.result}}
```
## Call a tool on a remote MCP server
```yaml theme={null}
- id: input_data
name: input_data
tool: INPUT_FILE
input:
- name: description
value: "Data file to analyze"
- id: execute_remote_analysis
name: execute_remote_analysis
tool: MCP_REMOTE_RUN
needs: [input_data]
input:
- name: mcp
value:
server_url: "https://mcp-server.example.com/mcp"
headers:
Authorization: "Bearer {{secrets.MCP_AUTH_TOKEN}}"
selectedTool: data_analyzer
toolInputs:
data_source: "{{steps.input_data.result}}"
analysis_type: "statistical_summary"
- id: save_analysis_results
name: save_analysis_results
tool: OUTPUT_FILE
needs: [execute_remote_analysis]
input:
- name: content
value: "{{steps.execute_remote_analysis.result}}"
- name: filename
value: "mcp_analysis_results.json"
- name: fileType
value: "json"
```
## Read the result
`result` holds what the MCP tool returned:
* If the tool returns `structuredContent`, `result` is that object.
* Otherwise, `result` is the text of the tool's content blocks: a single string when there is one block, or an array of strings when there are several. If that text is JSON, it is parsed, so `result` can be an object or array.
* If the tool returns no content, `result` is `null`.
Inspect the actual value of `steps..result` for your server before referencing nested fields in later steps.
## Error Handling
* **Missing fields**: `MissingFieldsError` when `command` / `server_url`, `selectedTool`, or `toolInputs` are not set — open the step, fetch tools, and complete the setup.
* **Server or tool errors**: an exception raised while connecting to the server or calling the tool fails the step with `An error occurred while the tool was executing: ...` in the step error (`MCP_REMOTE_RUN` reports `An error occurred while the tool was executing.` without the detail).
## Use Cases
* **Data Processing**: Advanced data transformation and analysis
* **Document Processing**: Complex document parsing and extraction
* **AI/ML Integration**: Machine learning model execution
* **Custom Workflows**: Domain-specific business logic execution
* **External API Integration**: Wrapper for external services
* **Batch Processing**: Large-scale data processing operations
* **Specialized Tools**: Industry-specific processing tools
* **Research Tools**: Academic and scientific computing tools
## Best Practices
### Performance Optimization
* Use local servers for frequent operations
* Use remote servers for compute-intensive tasks
* Keep `toolInputs` small; pass file URLs rather than file contents where the server supports it
### Security Considerations
* In an organization with an egress policy, a local MCP server runs in the same kind of locked-down sandbox as Python code: no `sudo`, no global `npm install -g`, and HTTP(S) only to allowed hosts. `npx -y ` still works when the npm registry is an allowed host. See [Python Sandbox](/en/pages/tools/sandbox/python_sandbox_run#in-an-organization-with-an-egress-policy).
* Secure authentication tokens: pass them through `env` or `headers` from Flow secrets
* Validate all inputs and outputs
* Use HTTPS for remote connections
* Implement proper error handling
### Development Guidelines
* Document custom MCP tools thoroughly
* Implement proper logging and monitoring
* Use consistent input/output schemas
* Test tools thoroughly before deployment
# Building a RAG Chat System
Source: https://docs.jinba.io/en/pages/tutorials/rag-chat-system
A step-by-step tutorial to build a Retrieval-Augmented Generation chat system using Jinba Flow — from knowledge base setup to deploying a live chat interface
Build a fully functional AI chat system that answers questions using your own documents. This tutorial walks you through every step: creating a knowledge base, building a RAG workflow, and deploying it as a chat interface.
## What You'll Build
A chat system that:
1. Accepts a user question (via chat, API, or AI assistant)
2. Searches your knowledge base for relevant information
3. Uses an AI model to generate an accurate answer grounded in your documents
4. Returns the answer with source references
```mermaid theme={null}
flowchart LR
Q["💬 User Question"] --> S["🔍 Vector Search
Knowledge Base"]
S --> C["📋 Context
Assembly"]
C --> G["🤖 AI Generation
with Context"]
G --> A["✅ Grounded
Answer"]
```
## Prerequisites
* A Jinba Flow account ([Sign up here](https://flow.jinba.io/))
* Documents to upload — PDFs, DOCX, or text files you want your chat to reference
* Basic familiarity with [Jinba Flow concepts](/en/pages/basics/core-concepts) — Flows, Steps, and Tools
> [!NOTE]
>
> No coding experience is required. You can build the entire system using the chat panel or graph editor. The YAML manifests shown below are for reference and can be copied directly.
## Architecture Overview
Before we start building, here's how all the pieces fit together:
```mermaid theme={null}
flowchart TB
subgraph input["Chat Input"]
A1["Jinba App Chat"]
A2["REST API"]
A3["MCP / AI Assistant"]
end
subgraph flow["Jinba Flow — RAG Pipeline"]
B1["Receive Question
INPUT_TEXT"]
B2["Search Knowledge Base
JINBA_VECTOR_SEARCH"]
B3["Generate Answer
OPENAI_INVOKE or ANTHROPIC_INVOKE"]
end
subgraph kb["Knowledge Backend"]
C1["Jinba Knowledge Base"]
C2["Pinecone"]
C3["Azure AI Search"]
end
A1 & A2 & A3 --> B1
B1 --> B2
B2 --> C1
B2 -.-> C2
B2 -.-> C3
C1 & C2 & C3 --> B3
B3 --> A1 & A2 & A3
```
> [!TIP]
>
> This tutorial uses **Jinba Knowledge Base** as the primary backend. For other backends, see [Alternative Backends](#alternative-backends) near the end.
***
## Part 1: Set Up Your Knowledge Base
### Step 1: Create a Knowledge Base
**1. Navigate to Storage**
In your workspace sidebar, click **Storage**, then select the **Knowledge Bases** tab.

**2. Create a New Knowledge Base**
Click **Create Knowledge Base**. Enter a descriptive name (for example, "Product Documentation" or "Company FAQ").

**3. Note Your Knowledge Base ID**
After creation, open your new knowledge base and confirm it appears in the list. In this tutorial, the example knowledge base is named **RAG Tutorial KB**.

### Step 2: Upload Documents
**1. Open Your Knowledge Base**
Click on your newly created knowledge base from the Storage page.
**2. Upload Files**
Click **Add files** to open the upload dialog. Select your PDFs, DOCX, Markdown, or text files from your computer.

**3. Wait for Processing**
Files are automatically processed through the following pipeline:
| Stage | What Happens |
| - | - |
| **Parsing** | Text is extracted from your documents |
| **Chunking** | Documents are split into searchable chunks |
| **Embedding** | Chunks are converted to vector embeddings |
| **Indexing** | Vectors are stored for fast similarity search |
Wait until all files show **Ready** status.

> [!WARNING]
>
> Processing may take a few minutes depending on file size. Do not proceed until your files show a completed status.
### Step 3: Store Your Credentials
Before building the flow, store the required secrets in your workspace.
**1. Navigate to Credentials**
Go to your [workspace credentials](/en/pages/credentials/index) page.
**2. Add Secrets**
Add the following secrets:
| Secret Name | Value | Purpose |
| - | - | - |
| `JINBA_API_TOKEN` | Your Jinba API token | Authenticates vector search |
| `KNOWLEDGE_BASE_ID` | Your knowledge base ID from Step 1 | Identifies which knowledge base to search |
| `ANTHROPIC_API_KEY` | Your Anthropic API key *(optional)* | For Claude-based generation |
> [!NOTE]
>
> If you do not have an OpenAI API key, you can still use `OPENAI_INVOKE` with [Jinba API credit](/en/pages/tools/ai/openai).
***
## Part 2: Build the RAG Flow
Now let's create the workflow that powers the chat system.
### The Complete Manifest
You can paste this directly into the [YAML Coding Panel](/en/pages/basics/manifest):
```yaml theme={null}
# Step 1: Receive the user's question
- id: user_question
name: Receive Question
tool: INPUT_TEXT
input:
- name: value
value: ""
# Step 2: Search the knowledge base for relevant content
- id: search_knowledge
name: Search Knowledge Base
tool: JINBA_VECTOR_SEARCH
config:
- name: token
value: "{{secrets.JINBAFLOW_WS_API_KEY}}"
input:
- name: query
value: "{{steps.user_question.result}}"
- name: knowledgeBaseId
value: YOUR_KB_ID_HERE
- name: topK
value: 5
- name: threshold
value: 0.3
needs:
- user_question
# Step 3: Generate an answer using the retrieved context
- id: generate_answer
name: Generate Answer
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
## Instructions
You are a helpful assistant. Answer the user's question based ONLY
on the provided context. If the context doesn't contain the answer,
say "I don't have enough information to answer that question."
Always cite which source document(s) your answer comes from.
## Context (from knowledge base)
{{steps.search_knowledge.results | dump}}
## User Question
{{steps.user_question.result}}
Please provide a clear, concise answer based on the context above.
needs:
- search_knowledge
# Step 4: Output the answer
- id: output_answer
name: Output Answer
tool: OUTPUT_TEXT
input:
- name: value
value: "{{steps.generate_answer.result.content}}"
needs:
- generate_answer
```
> [!TIP]
>
> Fastest path: paste the full YAML manifest above. If you prefer building flows visually, you can also add the four nodes manually in the editor and configure them one by one.
### Alternative: Build the Flow Manually in the Editor
If you want to learn how each node is assembled visually, follow this manual path instead of pasting YAML.
**1. Add the Input Text node**
Open the node picker, search for **Input Text**, and add it as the first node in the graph.

After adding it, rename the node to **Receive Question** so it matches the tutorial manifest.

**2. Add and configure the Vector Search node**
Click the **+** connector under the first node, search for **Vector Search**, and add the `JINBA_VECTOR_SEARCH` node.

Then configure it with:
* **Token**: `JINBAFLOW_WS_API_KEY` secret
* **Query**: `{{steps.user_question.result}}`
* **Knowledge Base ID**: your knowledge base ID
* **Top K**: `5`
* **Threshold**: `0.3`

**3. Add and configure the OpenAI Invoke node**
Add an **Invoke** node and choose `OPENAI_INVOKE`.

Set the model version to `gpt-5.2`, then paste the same prompt shown in the YAML example so the model answers only from retrieved knowledge base context.

**4. Add and configure the Output Text node**
Add an **Output Text** node as the final step.

Rename it to **Output Answer**, and set its value to:
```text theme={null}
{{steps.generate_answer.result.content}}
```

### Step-by-Step Walkthrough
#### Step 1: Receive Question (`INPUT_TEXT`)
```yaml theme={null}
- id: user_question
name: Receive Question
tool: INPUT_TEXT
input:
- name: value
value: ""
```
The `INPUT_TEXT` tool creates an input parameter for the flow. When executed manually, it shows a text box. When called via API, this becomes a parameter in the request body. Learn more about [input tools](/en/pages/tools/files/input).
#### Step 2: Search Knowledge Base (`JINBA_VECTOR_SEARCH`)
```yaml theme={null}
- id: search_knowledge
name: Search Knowledge Base
tool: JINBA_VECTOR_SEARCH
config:
- name: token
value: "{{secrets.JINBAFLOW_WS_API_KEY}}"
input:
- name: query
value: "{{steps.user_question.result}}"
- name: knowledgeBaseId
value: YOUR_KB_ID_HERE
- name: topK
value: 5
- name: threshold
value: 0.3
needs:
- user_question
```
This step performs semantic search — finding content by meaning, not just keywords.
| Parameter | Value | Why |
| - | - | - |
| `topK` | 5 | Returns the 5 most relevant chunks |
| `threshold` | 0.3 | Filters out low-relevance results |
The `needs: [user_question]` ensures the search waits for the user's question before executing. See [Step Module Options](/en/pages/basics/step-options) for more details.
> [!TIP]
>
> Start with `topK: 5` and `threshold: 0.3`. If answers lack context, increase `topK`. If irrelevant content appears, increase `threshold`. See the [Vector Search reference](/en/pages/tools/jinba/vector_search) for more guidance.
#### Step 3: Generate Answer (LLM)
```yaml theme={null}
- id: generate_answer
name: Generate Answer
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
## Instructions
You are a helpful assistant. Answer the user's question based ONLY
on the provided context. If the context doesn't contain the answer,
say "I don't have enough information to answer that question."
Always cite which source document(s) your answer comes from.
## Context (from knowledge base)
{{steps.search_knowledge.results | dump}}
## User Question
{{steps.user_question.result}}
Please provide a clear, concise answer based on the context above.
needs:
- search_knowledge
```
The `| dump` filter serializes the search results into the prompt so the LLM can read all retrieved chunks and their sources. Learn more about [Variables & Templates](/en/pages/basics/variables).
#### Step 4: Output Answer (`OUTPUT_TEXT`)
```yaml theme={null}
- id: output_answer
name: Output Answer
tool: OUTPUT_TEXT
input:
- name: value
value: "{{steps.generate_answer.result.content}}"
needs:
- generate_answer
```
The `OUTPUT_TEXT` step captures the final answer as the flow's output, making it available when calling the flow via API or chat.
> [accordion] Using Anthropic Claude instead of OpenAI
>
> Replace the generation step with:
>
> ```yaml theme={null}
> - id: generate_answer
> name: Generate Answer
> tool: ANTHROPIC_INVOKE
> config:
> - name: version
> value: claude-sonnet-5-5
> - name: token
> value: "{{secrets.ANTHROPIC_API_KEY}}"
> input:
> - name: prompt
> value: |
> ... (same prompt as above)
> needs:
> - search_knowledge
> ```
>
> See the [Anthropic tool reference](/en/pages/tools/ai/anthropic) for details.
> [accordion] Using Google Gemini instead of OpenAI
>
> Replace the generation step with:
>
> ```yaml theme={null}
> - id: generate_answer
> name: Generate Answer
> tool: GEMINI_INVOKE
> config:
> - name: version
> value: gemini-flash-latest
> - name: token
> value: "{{secrets.GEMINI_API_KEY}}"
> input:
> - name: prompt
> value: |
> ... (same prompt as above)
> needs:
> - search_knowledge
> ```
>
> See the [Gemini tool reference](/en/pages/tools/ai/gemini) for details.
### Test Your Flow
**1. Execute the Flow**
Build the four-step flow in the editor, then click the **Run** button in the top right.

**2. Enter a Test Question**
When prompted, enter a question that your uploaded documents should be able to answer.

**3. Review Results**
Check the execution results. The answer should reference information from your knowledge base.

***
## Part 3: Deploy as a Chat Interface
Your RAG flow works. Now make it accessible to users.
> [card] Jinba App Chat
>
> Best for: End users who need a ready-made chat UI
> [card] REST API
>
> Best for: Custom applications and integrations
> [card] MCP Tool
>
> Best for: AI assistant integration
### Option A: Jinba App Chat (Recommended)
Deploy your RAG flow as a chat connector in Jinba App for the simplest end-user experience.
**1. Publish Your Flow**
In the flow editor, click the **Publish** button. A dialog will ask **"Who will trigger this workflow?"**:

| Option | Description | When to choose |
| - | - | - |
| **My team** | Simple interface anyone can use | ✅ Choose this for the chat UI path (Option A) |
| **Engineers** | Call it from code via API | Choose this for the API path (Option B) |
| **Automatic** | Runs on schedule or when events happen | Choose this for scheduled/event-driven flows |
Select **My team** and click **Continue →**.

**2. Understand the Jinba Flow → Jinba App Relationship**
After selecting "My team", an education screen appears explaining that **Jinba Flow** (where you build) and **Jinba App** (where your team uses it) are separate products:
* **Separate products, by design** — Jinba Flow is the builder; Jinba App is the chat interface your team uses
* **Enterprise-grade security** — Jinba App has its own authentication and access controls
* **Simple for your team** — No code, no complexity — just a familiar chat interface
Click **Got it, continue** to proceed to the MCP setup.

**3. Enable MCP and Connect to Jinba App**
The **Create an MCP** dialog appears. This shows a preview of how your flow will appear as a chat tool:
* A chat preview showing `@your_flow_name` with a description
* A **Demo** button to preview the chat experience
* An **Enable MCP for this flow** toggle

> [!WARNING]
>
> You **must** turn on the **Enable MCP for this flow** toggle. This is what creates the connection between Jinba Flow and Jinba App — the "Connect with Jinba App" button only appears after you enable it.
Once enabled, additional options appear:
* **Workspace Token** — used for authentication
* **Connection Snippet** — JSON config for MCP clients (Claude Desktop, Cursor, etc.)
* **Connect with Jinba App** button — click this to open the connector in Jinba App
> [!TIP]
>
> Enabling MCP also lets AI assistants (Claude, Cursor, etc.) call this flow as a tool — you get both Jinba App chat **and** MCP tool access with a single toggle.
See [Publish](/en/pages/basics/publish) for details.
**4. Configure MCP Connection Settings**
After enabling MCP, you'll be taken to the **MCP → Connect** tab. This page has several important sections:
1. **Your Token** — your workspace authentication token (keep this secret)
2. **1-Click Connect** — click **Connect** to instantly link this flow to Jinba App
3. **Visibility** — defaults to "Unlisted" (only users in your access rules can use it). Change to "Listed" if you want all workspace members to see it
4. **Access Scope Settings** — configure who can access this tool using JWT claims (e.g., email whitelist)
5. **MCP Configuration JSON Snippet** — copy this to use the flow in external MCP clients (Claude Desktop, Cursor, etc.)

> [!WARNING]
>
> You **must** click the **1-Click Connect** button to make the flow available as a tool in Jinba App. Without this step, the tool won't appear in Jinba App even though MCP is enabled.
> [!TIP]
>
> Add your team members' emails to the **Access Scope Settings** so they can also use this tool. Click **+ Add Rule** to add more email rules.
**5. Chat with Your RAG System**
Open [Jinba App](https://app.jinba.io/) and start a new chat:
1. Click **New Chat**
2. Click the **connectors** icon (⚙️) at the bottom of the chat input
3. In the "Search agents and connectors..." dropdown, find your workspace's **MCP connector** (e.g., "Tutorial Demonstrations MCP ... 1 tool")
4. Click into the MCP connector to see your **RAG Chat Demo** tool listed
5. Select the tool — it appears as a tag in the chat input bar
6. Type your question and press Enter

The tool runs automatically — you'll see the **Arguments** (your `user_question`) and **Result** (the RAG response content) in an expandable section, followed by the AI's formatted answer.

> [!TIP]
>
> You can also use **Auto Select** mode — Jinba App will automatically choose the right tool based on your question, so you don't need to manually select the connector each time.
See [Jinba Flow Connectors](/en/pages/jinba_app/connectors/jinbaflow) for the full guide.
> [!TIP]
>
> You can also create a [Jinba App Agent](/en/pages/jinba_app/agents/overview) that bundles this connector with custom instructions.
### Option B: REST API
Expose your RAG flow as an API endpoint for custom applications.
**1. Publish Your Flow**
Follow the same publish steps as above, but select **Engineers** in the "Who will trigger this workflow?" dialog instead. This optimizes the flow for API access.
**2. Get Your API Key**
After publishing, navigate to your flow's settings to find the auto-generated API key.

**3. Call the API**
```bash theme={null}
curl -X POST https://api.jinba.dev/api/v2/external/flows/{flow-id}/published-run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"args": [
{"name": "user_question", "value": "What is your return policy?"}
],
"mode": "sync"
}'
```
**Python example:**
```python theme={null}
import requests
response = requests.post(
"https://api.jinba.dev/api/v2/external/flows/{flow-id}/published-run",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"args": [
{"name": "user_question", "value": "What is your return policy?"}
],
"mode": "sync"
}
)
answer = response.json()
print(answer)
```
See the full [API reference](/en/pages/basics/api) for async mode, error handling, and more.
### Option C: MCP Tool (AI Assistant Integration)
Make your RAG flow available as a tool for AI assistants like Claude Desktop.
**1. Publish as MCP**
Publish your flow with MCP enabled. Navigate to the **MCP** tab in your workspace settings.

**2. Configure Your AI Assistant**
Add the Jinba Flow MCP server to your AI assistant's configuration:
```json theme={null}
{
"mcpServers": {
"jinbaflow": {
"command": "npx",
"args": [
"-y",
"supergateway",
"--streamableHttp",
"https://api.jinba.io/api/v2/workspaces/YOUR_WORKSPACE_ID/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN"
]
}
}
}
```
See the [MCP guide](/en/pages/basics/mcp) for the full setup process.
**3. Use from Your AI Assistant**
Your RAG flow now appears as a tool. The AI assistant can invoke it to answer questions using your knowledge base.
***
## Part 4: Advanced Patterns
### Multi-Step RAG with Query Refinement
For complex questions, add a refinement step that improves search results:
```yaml theme={null}
- id: user_question
name: Receive Question
tool: INPUT_TEXT
input:
- name: value
value: ""
- id: initial_search
name: Initial Search
tool: JINBA_VECTOR_SEARCH
config:
- name: token
value: "{{secrets.JINBAFLOW_WS_API_KEY}}"
input:
- name: query
value: "{{steps.user_question.result}}"
- name: knowledgeBaseId
value: YOUR_KB_ID_HERE
- name: topK
value: 10
needs:
- user_question
- id: refine_query
name: Refine Query
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Based on the initial search results, generate a more specific search query.
Original Question: {{steps.user_question.result}}
Initial Results:
{{steps.initial_search.results | dump}}
Generate a refined search query that will find more specific information.
Output ONLY the refined query, nothing else.
needs:
- initial_search
- id: refined_search
name: Refined Search
tool: JINBA_VECTOR_SEARCH
config:
- name: token
value: "{{secrets.JINBAFLOW_WS_API_KEY}}"
input:
- name: query
value: "{{steps.refine_query.result.content}}"
- name: knowledgeBaseId
value: YOUR_KB_ID_HERE
- name: topK
value: 5
- name: threshold
value: 0.4
needs:
- refine_query
- id: final_answer
name: Generate Final Answer
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
Answer the user's question using the refined search results.
Question: {{steps.user_question.result}}
Refined Search Results:
{{steps.refined_search.results | dump}}
Provide a detailed, accurate answer with source citations.
needs:
- refined_search
- id: output_answer
name: Output Answer
tool: OUTPUT_TEXT
input:
- name: value
value: "{{steps.final_answer.result.content}}"
needs:
- final_answer
```
### Handling No Results Found
Use [conditional execution](/en/pages/basics/step-options) to handle cases where the knowledge base has no relevant content:
```yaml theme={null}
- id: check_results
name: Check Results
tool: PYTHON_SANDBOX_RUN
input:
- name: code
value: |
results = {{steps.search_knowledge.result}}
has_results = len(results.get('results', [])) > 0
print(has_results)
- name: data_type
value: STRING
needs:
- search_knowledge
- id: generate_answer
name: Generate Answer
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
... standard RAG prompt with context ...
needs:
- check_results
when: "'{{steps.check_results.result}}' == 'True'"
- id: no_results_response
name: No Results Response
tool: PYTHON_SANDBOX_RUN
input:
- name: code
value: |
result = "I couldn't find relevant information in the knowledge base to answer your question. Please try rephrasing your question or contact support for assistance."
- name: data_type
value: STRING
needs:
- check_results
when: "'{{steps.check_results.result}}' == 'False'"
```
### Keeping Your Knowledge Base Updated
Create a scheduled flow that automatically updates your knowledge base with new documents:
```yaml theme={null}
- id: fetch_new_docs
name: fetch_new_docs
tool: PYTHON_SANDBOX_RUN
input:
- name: code
value: |
new_docs = [
"https://example.com/updated-faq.pdf",
"https://example.com/new-product-guide.pdf"
]
result = new_docs
- name: data_type
value: STRING
- id: add_to_kb
name: Add to Knowledge Base
tool: JINBA_KNOWLEDGE_BASE_FILE_ADD
needs: [fetch_new_docs]
forEach: "{{steps.fetch_new_docs.result}}"
config:
- name: token
value: "{{secrets.JINBAFLOW_WS_API_KEY}}"
input:
- name: knowledgeBaseId
value: YOUR_KB_ID_HERE
- name: file
value: "{{item}}"
- name: filename
value: "{{ item.split('/') | last }}"
- name: executionMode
value: "SYNCHRONOUS"
- name: chunkerSettings
value:
chunkSize: 512
chunkOverlap: 128
```
You can [schedule this flow](/en/pages/basics/scheduling) to run daily or weekly.
***
## Alternative Backends
The primary tutorial uses Jinba Knowledge Base, but two additional backends are available for teams with specific requirements.
### When to Choose Each Backend
```mermaid theme={null}
flowchart TD
Start["Which backend
should I use?"] --> Q1{"Enterprise with
Azure ecosystem?"}
Q1 -->|Yes| Azure["☁️ Azure AI Search
Enterprise"]
Q1 -->|No| Q2{"Need metadata
filtering, namespaces,
or reranking?"}
Q2 -->|Yes| Pinecone["🌲 Pinecone"]
Q2 -->|No| Q3{"Want simplest
possible setup?"}
Q3 -->|Yes| Jinba["⚡ Jinba Knowledge Base"]
Q3 -->|No| Pinecone
```
| Feature | Jinba Knowledge Base | Pinecone | Azure AI Search |
| - | - | - | - |
| **Setup complexity** | ⭐ Simplest | ⭐⭐ Moderate | ⭐⭐⭐ Advanced |
| **External dependency** | None | Pinecone account | Azure subscription |
| **Document upload** | UI + API | API only | Azure portal / ADLS |
| **Metadata filtering** | ❌ | ✅ Rich filter syntax | ✅ OData filters |
| **Namespace isolation** | ❌ | ✅ | ✅ Indexes |
| **Reranking** | ❌ | ✅ Built-in models | ✅ Semantic ranker |
| **Indexer / pipeline** | Automatic | Manual | ✅ Built-in indexers |
| **Cost** | Included in Jinba plan | Separate Pinecone billing | Azure billing |
| **Best for** | Most use cases, quick start | Advanced search requirements | Enterprise / Azure-native organizations |
### Alternative A: Pinecone
If you need metadata filtering, namespace isolation, or reranking, use [Pinecone](/en/pages/tools/search/pinecone) as your vector backend.
#### Pinecone RAG Manifest
Replace the search step with Pinecone:
```yaml theme={null}
- id: search_pinecone
name: Search Pinecone
tool: PINECONE_QUERY
config:
- name: apiKey
value: "{{secrets.PINECONE_API_KEY}}"
input:
- name: indexName
value: my-knowledge-base
- name: query
value: "{{steps.user_question.result}}"
- name: topK
value: 5
- name: includeMetadata
value: true
- name: rerankModel
value: bge-reranker-v2-m3
- name: rerankTopN
value: 3
needs:
- user_question
```
Then adjust the generation step to use Pinecone's output format:
```yaml theme={null}
- id: generate_answer
name: Generate Answer
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-5.2
input:
- name: prompt
value: |
You are a helpful assistant. Answer based on the provided context.
## User Question
{{steps.user_question.result}}
## Relevant Documentation
{{steps.search_pinecone.result.matches | dump}}
Answer accurately based on the documentation above.
needs:
- search_pinecone
```
See the full [Pinecone tool reference](/en/pages/tools/search/pinecone) for index creation and document upsert.
### Alternative B: Azure AI Search (Enterprise)
For enterprise organizations already using the Azure ecosystem, Jinba Flow supports **Azure AI Search** as an external knowledge base backend. This option provides advanced indexing, semantic ranking, and integration with Azure Data Lake Storage Gen2.
> [!WARNING]
>
> Azure AI Search integration is an **enterprise feature**. Contact your Jinba administrator or the Jinba sales team to enable this for your workspace.
#### How It Works
Azure AI Search integration operates differently from the built-in knowledge base:
1. **Documents are stored in Azure** — uploaded to Azure Data Lake Storage Gen2
2. **Indexing is handled by Azure** — Azure AI Search indexers process and index documents
3. **Search queries go through Azure** — either directly or via Azure API Management (APIM)
4. **Results flow back to Jinba Flow** — where the LLM generates answers
```mermaid theme={null}
flowchart LR
Upload["📄 Upload Document"] --> ADLS["Azure Data Lake
Storage Gen2"]
ADLS --> Indexer["Azure AI Search
Indexer"]
Indexer --> Index["Azure AI Search
Index"]
Query["🔍 User Query"] --> Index
Index --> Results["📋 Search Results"]
Results --> LLM["🤖 LLM Generation"]
```
#### Setup Overview
**1. Configure Azure Connection**
In your workspace settings, navigate to the **External Knowledge Base** configuration. You can connect in two modes:
| Mode | When to Use |
| - | - |
| **APIM Mode** | Routes through Azure API Management — recommended for production |
| **Direct Mode** | Connects directly to Azure AI Search — simpler for development |
**2. Set Up Azure Resources**
Ensure you have:
* An Azure AI Search service with an index configured
* Azure Data Lake Storage Gen2 for document storage
* API keys or APIM subscription keys
* An indexer configured to process uploaded documents
**3. Upload Documents**
Upload documents through the Jinba workspace UI. Files are automatically sent to Azure Data Lake Storage, and the configured indexer processes them into the search index.
**4. Search in Your Flow**
The search step uses the External Knowledge Base configuration from your workspace. The exact tool and parameters depend on your enterprise deployment.
#### Key Configuration Options
| Setting | Description |
| - | - |
| **Endpoint URL** | Azure AI Search or APIM endpoint |
| **API Key** | Authentication key |
| **Index API Path** | Path for index operations |
| **Search API Path** | Path for search queries |
| **ADLS API Path** | Path for file storage operations |
| **Indexer Name** | Indexer to trigger after file uploads |
> [!NOTE]
>
> Connection settings can be configured per workspace through the UI, with environment variables as fallbacks.
#### Azure AI Search Advantages
* **Semantic ranking**: Azure's built-in semantic ranker improves result relevance
* **Hybrid search**: Combine vector search with keyword search
* **Built-in indexers**: Automatically extract and index content from various file formats
* **Enterprise compliance**: Data stays within your Azure tenant
* **Azure ecosystem integration**: Works well with other Azure services such as Azure OpenAI
***
## Tuning & Best Practices
### Chunking Configuration
When adding files, tune chunk parameters for your content:
| Content Type | Chunk Size | Overlap | Why |
| - | - | - | - |
| FAQ / Short answers | 256–512 | 64 | Precise, focused retrieval |
| Technical docs | 512–1024 | 128 | Balance precision and context |
| Long-form content | 1024–2048 | 256 | Maintain narrative context |
### Similarity Threshold Guide
| Threshold | Behavior | Use When |
| - | - | - |
| 0.7–1.0 | Very strict, near-exact matches only | Precise factual lookups |
| 0.4–0.7 | High relevance, closely related | Most Q\&A use cases |
| 0.2–0.4 | Moderate, may include tangential results | Exploratory or broad questions |
| 0.0–0.2 | Very broad, many results | Not recommended for production |
### Prompt Engineering Tips
1. **Be explicit about grounding**: Tell the LLM to answer only from the provided context
2. **Request citations**: Ask the LLM to reference source filenames
3. **Handle uncertainty**: Instruct the LLM to say "I don't know" when context is insufficient
4. **Set the tone**: Add persona instructions for your use case (formal, casual, technical)
***
## What's Next?
> [card] [Knowledge Base Docs](/en/pages/basics/knowledge)
>
> Deep dive into knowledge base management, chunking, and RAG patterns
> [card] [Vector Search Reference](/en/pages/tools/jinba/vector_search)
>
> Full parameter reference and advanced search examples
> [card] [Pinecone Reference](/en/pages/tools/search/pinecone)
>
> External vector database with filtering and reranking
> [card] [API Reference](/en/pages/basics/api)
>
> Complete guide to calling flows via REST API
> [card] [MCP Integration](/en/pages/basics/mcp)
>
> Connect flows to AI assistants via MCP
> [card] [Jinba App Agents](/en/pages/jinba_app/agents/overview)
>
> Wrap your RAG flow in an agent for enhanced chat
# Sandbox Providers
Source: https://docs.jinba.io/en/pages/toolbox/advanced/sandbox
Learn about the provider-agnostic sandbox architecture and how to configure E2B and Daytona execution environments
## Overview
Jinba Toolbox executes tool code in **isolated sandbox environments**. The sandbox system is designed around a provider-agnostic architecture: a shared interface package (`@jinba-toolbox/sandbox-core`) defines the contract, and individual provider packages (`sandbox-e2b`, `sandbox-daytona`) implement it.
This separation means you can switch providers or add new ones without modifying any business logic.
## Architecture
```
┌─────────────────────────────────────────────────────────────┐
│ API Server │
│ │
│ Execution Service ──▶ SandboxProvider interface │
│ │
├─────────────────────────────────────────────────────────────┤
│ Provider Implementations │
│ ┌────────────────┐ ┌─────────────────┐ │
│ │ sandbox-e2b │ │ sandbox-daytona │ │
│ │ (E2B Code │ │ (Daytona SDK) │ │
│ │ Interpreter) │ │ │ │
│ └────────────────┘ └─────────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ sandbox-core │
│ (Interfaces & Types only) │
└─────────────────────────────────────────────────────────────┘
```
## Core Interface
The `@jinba-toolbox/sandbox-core` package contains only interfaces and types -- no concrete implementations. All providers must conform to these contracts.
### SandboxProvider
The factory that creates and resumes sandbox instances:
```typescript theme={null}
interface SandboxProvider {
/** Create a new sandbox instance */
create(options: SandboxCreateOptions): Promise;
/** Resume an existing sandbox by ID */
resume(sandboxId: string, options?: SandboxResumeOptions): Promise;
}
```
### SandboxInstance
A running sandbox environment with code execution, shell commands, and filesystem access:
```typescript theme={null}
interface SandboxInstance {
readonly sandboxId: string;
readonly commands: SandboxCommands;
readonly filesystem: SandboxFilesystem;
executeCode(
code: string,
language: SandboxLanguage,
options?: CodeExecutionOptions
): Promise;
kill(): Promise;
pause(): Promise;
getHost(port: number): Promise;
}
```
### SandboxCommands
Shell command execution within the sandbox:
```typescript theme={null}
interface SandboxCommands {
run(
command: string,
options?: SandboxCommandOptions
): Promise;
}
```
### SandboxFilesystem
File operations within the sandbox:
```typescript theme={null}
interface SandboxFilesystem {
read(path: string): Promise;
readBytes(path: string): Promise;
write(path: string, content: string | Uint8Array): Promise;
list(path: string): Promise;
exists(path: string): Promise;
mkdir(path: string): Promise;
remove(path: string): Promise;
}
```
### Key Types
```typescript theme={null}
type SandboxLanguage = "python" | "typescript";
interface SandboxCreateOptions {
language: SandboxLanguage;
runtime?: string; // Runtime version (e.g. "python3.11", "node22")
packages?: string[]; // Packages to install
envs?: Record; // Environment variables
workingDirectory?: string; // Working directory inside sandbox
timeoutMs?: number; // Timeout in milliseconds
egressProxy?: SandboxEgressProxyConfig; // Network egress lockdown settings
}
interface CodeExecutionResult {
success: boolean;
output?: unknown; // Parsed JSON output if available
stdout: string;
stderr: string;
durationMs: number;
error?: {
name: string;
message: string;
traceback?: string;
};
}
interface SandboxExecutionResult {
exitCode: number;
stdout: string;
stderr: string;
}
```
## E2B Provider
The `@jinba-toolbox/sandbox-e2b` package implements the sandbox interface using the [E2B Code Interpreter](https://e2b.dev) SDK.
### Configuration
```typescript theme={null}
import { createE2BProvider } from "@jinba-toolbox/sandbox-e2b";
const provider = createE2BProvider({
apiKey: process.env.E2B_API_KEY!,
templateId: "custom-template", // Optional custom sandbox template
egressTemplateId: "...", // Optional template with the egress proxy tunnel
timeoutMs: 300000, // Default: 5 minutes
});
```
| Option | Type | Default | Description |
| - | - | - | - |
| `apiKey` | `string` | (required) | E2B API key |
| `templateId` | `string` | `undefined` | Custom sandbox template ID |
| `egressTemplateId` | `string` | built-in template | Template that contains the egress proxy tunnel setup |
| `timeoutMs` | `number` | `300000` | Default timeout (5 minutes); the API server passes the ToolSet timeout (default 15 minutes) |
### How It Works
1. **Sandbox creation**: The provider creates an E2B sandbox, optionally using a custom template. When the egress proxy is enabled for your organization, tool runs use the egress template and are hardened before any user code runs.
2. **Package installation**: If packages are specified, `pip install` (Python) or `npm install` (TypeScript) runs inside the sandbox. Python standard-library modules are filtered out; for TypeScript, `zod` and `tsx` are always added.
3. **Egress lockdown** (only when the egress proxy is enabled for the organization): Outbound network traffic from the sandbox is routed through the Jinba egress proxy; the proxy credential never enters the tool's environment.
4. **Code execution**: Python tool code is written to a file and executed through E2B's `runCode` API in the Jupyter-like kernel; under egress lockdown it is run instead as a plain `python3 ` process as the sandbox user. TypeScript tool code is written to a `.mts` file and run with `npx tsx` as a regular Node.js process, so npm packages resolve normally.
5. **Lifecycle**: The sandbox is killed as soon as the run finishes.
### Tool Code Wrapping
The API wraps your code before execution: the input JSON is passed to the entrypoint (`run` by default) as `Input(**data)` in Python or as a plain object in TypeScript, and the return value is printed as JSON on the last line of stdout, which becomes the run's `output`.
## Daytona Provider
The `@jinba-toolbox/sandbox-daytona` package implements the sandbox interface using the [Daytona](https://daytona.io) SDK.
### Configuration
```typescript theme={null}
import { createDaytonaProvider } from "@jinba-toolbox/sandbox-daytona";
const provider = createDaytonaProvider({
apiKey: process.env.DAYTONA_API_KEY!,
apiUrl: "https://app.daytona.io/api", // Default
target: "us", // Region: "us" or "eu"
timeoutMs: 300000, // Default: 5 minutes
});
```
| Option | Type | Default | Description |
| - | - | - | - |
| `apiKey` | `string` | (required) | Daytona API key |
| `apiUrl` | `string` | `https://app.daytona.io/api` | Daytona API URL |
| `target` | `string` | `us` | Target region (`us` or `eu`) |
| `timeoutMs` | `number` | `300000` | Default timeout (5 minutes) |
### How It Works
1. **Sandbox creation**: The provider initializes the Daytona SDK and creates a sandbox with the specified language.
2. **Package installation**: If packages are specified, the provider runs `pip install` or `npm install` inside the sandbox.
3. **Code execution**: Tool code is executed via Daytona's `process.codeRun` API.
4. **Lifecycle**: Sandboxes can be started, stopped, and deleted.
The Daytona provider does not implement the egress proxy lockdown and refuses egress-restricted runs. The console only offers E2B when creating a ToolSet; `daytona` can be selected through the API.
## ToolSet Sandbox Configuration
When creating a toolset, you specify which sandbox provider and settings to use:
```typescript theme={null}
await client.createToolSet({
slug: "data-tools",
name: { default: "Data Tools" },
description: { default: "Data processing tools" },
sandbox: {
provider: "e2b", // or "daytona"
language: "python", // or "typescript"
packages: [
{ name: "pandas", version: "2.0" },
{ name: "numpy" }
],
resources: {
cpu: "2",
memory: "4Gi",
timeout: 120000 // milliseconds; max 3600000, default 900000 (15 min)
}
}
});
```
Only `resources.timeout` currently affects execution (it bounds sandbox creation and the tool run); `cpu` and `memory` are accepted and stored but not applied by the providers.
The `SandboxConfig` stored on each toolset:
```typescript theme={null}
interface SandboxConfig {
provider: "e2b" | "daytona";
language: "python" | "typescript";
runtime?: string;
packages: { name: string; version?: string }[];
resources: {
cpu?: string;
memory?: string;
timeout?: number;
};
providerConfig?: Record;
}
```
## Error Handling
All sandbox packages use a unified `SandboxError` type:
```typescript theme={null}
class SandboxError extends Error {
constructor(
message: string,
code: SandboxErrorCode,
cause?: unknown
);
}
type SandboxErrorCode =
| "CONNECTION_FAILED" // Failed to connect to provider
| "TIMEOUT" // Execution timed out
| "EXECUTION_FAILED" // Code execution failed
| "NOT_FOUND" // Sandbox not found (resume)
| "PERMISSION_DENIED" // Operation not permitted
| "RESOURCE_EXHAUSTED" // Provider resources exhausted
| "INTERNAL"; // Unexpected internal error
```
## Adding a New Provider
The architecture is designed for extensibility. To add a new sandbox provider:
**1. Create a new package**
Create `packages/sandbox-` with the standard package structure.
**2. Implement the SandboxProvider interface**
Implement `create()` and `resume()` methods that return a `SandboxInstance`.
**3. Register the provider**
Add the provider case to the API server's `getSandboxProvider` function. No changes to `sandbox-core` or business logic are needed.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Endpoints for managing toolsets and running tools
* [Versioning & Publishing](/en/pages/toolbox/advanced/versioning) -- How sandbox config is frozen in versions
* [Security & Access Control](/en/pages/toolbox/advanced/security) -- Isolation and tenant boundaries
# Security & Access Control
Source: https://docs.jinba.io/en/pages/toolbox/advanced/security
Understand RBAC, authentication methods, and organization-based isolation in Jinba Toolbox
## Overview
Jinba Toolbox implements a security model centered on **organization-based isolation**. Every resource -- toolsets, tools, versions, runs, API keys, and webhooks -- belongs to an organization and is protected by role-based access control (RBAC) and authenticated sessions or API keys.
## Authentication
Jinba Toolbox supports two authentication methods, each designed for a different access pattern:
> [card] Session-Based (Web)
>
> Used by the web console. Users sign in through **JinbaAuth** (the shared Jinba sign-in service, including tenant SSO); the console sends a JinbaAuth JWT to the API, which verifies it and resolves the user's organization role from JinbaAuth.
>
> * For human users managing toolsets
> * Required for testing draft code, publishing versions and creating API keys
> * Role-based access to organization resources
> [card] API Key (Programmatic)
>
> Used by the SDK, AI agents, and external integrations. Passed as a Bearer token.
>
> * `Authorization: Bearer jtb_xxxxxxxxxxxx`
> * For automated and programmatic access
> * Scoped to a single organization, Member-level permissions, bound to one ToolSet environment
### API Key Management
API keys are scoped to an organization and track their issuer:
```
Organization
└── API Keys
├── production (issued by: alice) Last used: 2 hours ago
├── development (issued by: bob) Last used: 30 days ago
└── ci-cd (issued by: alice) Last used: never
```
Key properties:
* **No expiration** -- keys remain valid until manually deleted.
* **Hashed at rest** -- only a SHA-256 hash is used for verification; an encrypted copy allows the full key to be revealed again from the console.
* **Last-used timestamp** is recorded for each key.
* **Issuer tracking** -- the member who created the key is recorded.
* **Environment binding** -- each key selects the ToolSet environment (variables and active version) used by its executions.
If the member who issued a key leaves the organization, the key remains active to avoid breaking integrations. The console displays an "Issuer is no longer a member" warning, and an Owner or Admin can delete the key and issue a new one.
### API Key Endpoints
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/api-keys` | List API keys |
| POST | `/v1/orgs/:orgId/api-keys` | Create API key (session only) |
| GET | `/v1/orgs/:orgId/api-keys/:keyId/reveal` | Reveal the full key (session only) |
| DELETE | `/v1/orgs/:orgId/api-keys/:keyId` | Delete API key (session only; own keys, Owner/Admin: any key) |
## Role-Based Access Control (RBAC)
### Role Hierarchy
Jinba Toolbox defines roles at two levels:
```
Platform Level
└── admin # Service-wide administration (Toolbox admin console)
Organization Level
├── Owner # Organization owner
├── Admin # Organization administrator
└── Member # Regular member
```
Organization roles are assigned in JinbaAuth and read by Toolbox on every request.
### Organization Roles
| Role | Description |
| - | - |
| **Owner** | Full control over the organization's Toolbox resources, including webhooks, credits and every API key. |
| **Admin** | Same as Owner within Toolbox: manages webhooks, credits and all API keys. |
| **Member** | Can create and manage toolsets and tools and its own API keys. Cannot manage webhooks, purchase credits or delete others' keys. |
### Permission Matrix
| Resource | Owner | Admin | Member |
| - | - | - | - |
| Organization details | Read | Read | Read |
| Members | Read | Read | Read |
| ToolSet / Tool (incl. publish) | CRUD | CRUD | CRUD |
| Webhooks | CRUD | CRUD | Read |
| API keys (own) | CRUD | CRUD | CRUD |
| API keys (others') | Read / Delete | Read / Delete | Read |
| Purchase credits | Yes | Yes | No |
| View credit balance | Yes | Yes | Yes |
Organization and member management (rename, delete, invite, change roles, remove) is performed in JinbaAuth; the corresponding Toolbox API routes return `403`.
### Role Rules
* Roles and ownership are managed in JinbaAuth.
* Members can create and delete their own API keys and can see all keys of the organization, but cannot delete keys created by others.
* API keys act as **Member** regardless of the issuer's role.
## Organization-Based Isolation
Every resource in Jinba Toolbox is scoped to an organization. The isolation is enforced in the API server: for every organization-scoped request it resolves the caller's membership (session) or verifies that the API key belongs to the requested organization, and only then queries that organization's resources. Requests from non-members are answered with `404`, and permission failures with `403`.
Run records keep both the caller and the provider organization. When another organization executes one of your public tools, you can see the run's status and timing but not its input, output or logs; only the caller organization can.
## Run Logging
Tool executions are tracked in run records with the input, output, error and captured stdout/stderr. Credit consumption is recorded as credit transactions that the Credits page lists.
## Sandbox Isolation
Tool execution occurs in isolated sandbox environments (E2B or Daytona). Each execution runs in a fresh sandbox instance with:
* **Process isolation** -- each sandbox is a separate container or VM.
* **Egress control** -- when the egress proxy is enabled for your organization (a JinbaAuth organization setting), E2B sandboxes are hardened before user code runs and route outbound traffic through the Jinba egress proxy; the proxy credential is masked out of anything returned to the caller. Without that setting the sandbox keeps the provider's default outbound network access.
* **Configurable environment variables** -- secrets are injected per toolset environment, not shared across toolsets; secret values are stored encrypted.
* **Automatic cleanup** -- sandboxes are killed as soon as execution completes or times out.
## Best Practices
* **Use separate API keys** for different environments (production, staging, CI/CD) to limit blast radius if a key is compromised.
* **Audit API key usage** -- review the last-used timestamp regularly and delete keys that are no longer needed.
* **Assign the least-privilege role** -- use Member for developers who only need to create and edit tools.
* **Review run history** periodically to detect unexpected usage patterns.
* **Do not share API keys** between organizations -- each key is scoped to a single organization.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Authentication details and endpoint reference
* [Webhooks](/en/pages/toolbox/developer/webhooks) -- Event notification security (signature verification)
* [Sandbox Providers](/en/pages/toolbox/advanced/sandbox) -- Execution environment isolation
# Versioning & Publishing
Source: https://docs.jinba.io/en/pages/toolbox/advanced/versioning
Understand how Jinba Toolbox manages immutable toolset versions with semantic versioning
## Overview
Jinba Toolbox uses a **semver-based versioning system** with immutable snapshots. Each toolset maintains a draft (the editable working copy) and a list of published versions. When you publish, a complete snapshot of the toolset -- including all tool code, schemas, and sandbox configuration -- is frozen as an immutable version that can never be modified.
This design ensures **reproducibility**: running version `1.0.0` always executes the same code, regardless of when or where it is called.
## Concepts
### Draft vs. Versions
```
ToolSet
├── Draft (editable working copy)
└── Versions (immutable releases)
├── v1.2.0 [published]
├── v1.1.0
└── v1.0.0
```
| State | Description |
| - | - |
| **Draft** | The editable working copy. Modified through the web UI or API. Can only be executed via the `test` endpoint (console session only). |
| **Version** | An immutable release. Once published, it cannot be changed. Used by the `run` and MCP endpoints. |
| **Published** | The currently active version served by the API. Each ToolSet **environment** (`default` plus any you add) has its own active version; `latestVersion` is shared. |
### Immutable Snapshots
Each version captures a complete snapshot of the toolset at the time of publishing:
* All tool code and entrypoints
* Input and output schemas
* Tool names and descriptions
* Sandbox configuration (provider, language, packages, resources)
This means even if you later update the draft, existing versions remain unchanged.
## Publishing Workflow
**1. Edit the draft**
Make changes to tools in the draft through the web console or the API, and verify the behavior with the Test panel in the console. The underlying endpoint is `POST /v1/orgs/{orgId}/toolsets/slack-tools/tools/post-message/test` with `{ "input": { ... } }`; it requires a signed-in user session, so it cannot be called with an API key.
**2. Publish a new version**
When the draft is ready, publish it with a semver version number and optional release notes (publishing also requires a signed-in session; use the console's **New Version** dialog):
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/versions \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"version": "1.3.0",
"releaseNotes": "Added thread reply support"
}'
```
An API key (`jtb_...`) is rejected here with `400` ("User context required"), and the SDK's `publishVersion()` sends the API key, so it fails the same way.
**3. Set the published version**
A newly published version automatically becomes the active version of the environment given by `environmentSlug` (default `default`), unless you pass `"setAsPublished": false`. To activate a different version later -- or to activate a version in another environment -- set it explicitly:
```bash theme={null}
curl -X PUT https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/published-version \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "version": "1.3.0", "environmentSlug": "default" }'
```
The change takes effect immediately. In the console, use **Set Active** on the Versions tab.
**4. Continue developing**
The draft remains intact after publishing, so you can keep iterating on the next version without affecting the live published version.
## Version Resolution
When a tool is executed via the `run` endpoint, Jinba Toolbox resolves which version to use:
1. If the request body includes a `version` field, that exact version is used.
2. Otherwise, the active version of the ToolSet environment is used. The environment comes from the request's `environmentSlug` field, or else from the environment bound to the API key (`default` for session requests).
3. If that environment has no active version, the organization `run` and MCP endpoints fall back to `latestVersion`; the public endpoints do not and respond with "No published version available".
```bash theme={null}
# Uses the published version
curl -X POST .../tools/post-message/run \
-d '{ "input": { "channel": "#general", "text": "Hello" } }'
# Uses a specific version
curl -X POST .../tools/post-message/run \
-d '{ "input": { "channel": "#general", "text": "Hello" }, "version": "1.2.0" }'
```
## Rollback
Rolling back is simply a matter of changing the active version of an environment to a previous one:
```bash theme={null}
# Switch the default environment back to v1.2.0
curl -X PUT https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/published-version \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "version": "1.2.0", "environmentSlug": "default" }'
```
Because versions are immutable, no data is lost during a rollback. The newer version remains available and can be re-activated at any time.
## Version API
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions` | List all versions (with `runCount` for the last 30 days, the active version per environment and `hasUnpublishedChanges`) |
| POST | `/v1/orgs/:orgId/toolsets/:slug/versions` | Publish a new version (`version`, `releaseNotes?`, `setAsPublished` = `true`, `environmentSlug` = `default`); session only |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions/:version` | Get version details (`isPublished`, `isLatest`) |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions/:version/export` | Download the version as a ZIP archive |
| PUT | `/v1/orgs/:orgId/toolsets/:slug/published-version` | Set the active version of an environment (`version`, `environmentSlug` = `default`) |
## Version Data Model
Each published version stores a full snapshot:
```typescript theme={null}
interface ToolSetVersion {
id: string;
toolSetId: string;
version: string; // Semver string (e.g., "1.3.0")
sandbox: SandboxConfig; // Frozen sandbox configuration
tools: ToolSnapshot[]; // Frozen tool definitions and code
releaseNotes?: string | null;
publishedBy: string; // User ID of the publisher
publishedAt: string; // ISO 8601 timestamp
}
interface ToolSnapshot {
id: string;
slug: string;
name: LocalizedText;
description: LocalizedText;
inputSchema: JSONSchema;
outputSchema: JSONSchema;
code: string;
entrypoint?: string;
}
```
## Usage Tracking
Jinba Toolbox counts the runs of each version over the last 30 days. The console shows this count next to every version on the Versions tab, and the version list endpoint returns it as `runCount`. For a complete history, retrieve runs through the API:
```typescript theme={null}
const runs = await client.listRuns();
// Filter by `toolSetVersion` in your application logic
```
Usage data helps you determine when it is safe to deprecate older versions.
## Best Practices
* **Follow semantic versioning** -- use major bumps for breaking schema changes, minor bumps for new tools or features, and patch bumps for fixes.
* **Write release notes** -- they help your team understand what changed between versions.
* **Test before publishing** -- use the `test` endpoint to validate the draft before creating an immutable version.
* **Do not skip the publish step for MCP** -- MCP endpoints serve the published version, not the draft.
* **Monitor per-version usage** -- before deprecating a version, verify that no consumers still depend on it.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Full endpoint reference including version routes
* [SDK](/en/pages/toolbox/developer/sdk) -- Programmatic version management
* [Security & Access Control](/en/pages/toolbox/advanced/security) -- Who can publish versions
# API Key Management
Source: https://docs.jinba.io/en/pages/toolbox/console/api-keys
Create, view, and revoke API keys for authenticating with the Jinba Toolbox API
API keys authenticate programmatic requests to the Jinba Toolbox API -- executing a tool, managing ToolSets, or reading run history. Keys are scoped to an organization, grant **Member**-level access to that organization's resources, and are bound to one ToolSet environment (`default` unless you choose another one).
## How API Keys Work
```
Authorization: Bearer jtb_xxxxxxxxxxxx
```
All API keys use the `jtb_` prefix. When you create a key, the full key value is shown in the creation dialog. Afterwards the list shows only a masked prefix (the first 12 characters, e.g. `jtb_abc12345...`); the copy button next to it retrieves the full key again for keys created after key encryption was introduced.
API keys are tied to the organization where they were created. A key for Organization A cannot access resources belonging to Organization B (except for executing public tools, which any valid key can do).
## Creating an API Key
**1. Navigate to API Keys**
Go to **API Keys** in the organization sidebar. You will see the list of existing keys (if any).
**2. Click Create Key**
Click the **Create API Key** button at the top of the page. A modal will appear.
**3. Enter a Name and Environment**
Give the key a descriptive name to identify its purpose (e.g. "Production Backend", "CI/CD Pipeline", "Local Development"). This name is for your reference only and does not affect the key's permissions.
Choose the **Environment** the key connects to (default: `default`). Executions made with this key use that ToolSet environment's variables and active version.
**4. Copy the Key**
After clicking **Create Key**, the full API key is displayed. Copy it immediately and store it in a secure location.
> [!WARNING]
>
> Treat the key as a secret. If it was created before key encryption was enabled on your Toolbox, it cannot be retrieved again later.
**5. Done**
Click **Done** to close the modal. The new key will appear in the list with its name, masked prefix, environment, issuer, last used date and creation date.
## API Key List
The API Keys page displays a table with the following columns:
| Column | Description |
| - | - |
| **Name** | The descriptive name you gave the key |
| **Key** | A masked preview of the key (e.g. `jtb_abc12345...`) with a button to copy the full key |
| **Environment** | The ToolSet environment slug the key is bound to |
| **Issuer** | The member who created the key; a warning badge appears if that person is no longer a member |
| **Last Used** | The date of the most recent API call made with this key (or "Never") |
| **Created** | When the key was created |
## Deleting an API Key
To delete a key, click the delete action next to the key in the list. A **Delete API Key** confirmation dialog will appear. Once deleted:
* The key is immediately invalidated.
* All API requests using this key will return a `401 Unauthorized` error.
* The action is permanent and cannot be undone.
Members can delete only the keys they issued themselves; Owners and Admins can delete any key in the organization.
> [!NOTE]
>
> Deleting a key does not affect past run records or data. It only prevents future API calls using that key.
## Permissions
API keys do not have individual scopes. Every key acts with the **Member** role of its organization: it can read, create, update, delete and publish ToolSets and tools, run published tools and call MCP endpoints, and read runs and credits. Operations that need a signed-in user -- testing draft code (`/test`), publishing versions, creating, revealing or deleting API keys -- and Owner/Admin-only operations (webhooks, purchasing credits, deleting others' keys) are not available to API keys.
## Using API Keys
### REST API
Include the key in the `Authorization` header:
```bash theme={null}
curl -X POST \
https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/{slug}/tools/{toolSlug}/run \
-H "Authorization: Bearer jtb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"input": {"name": "Alice"}}'
```
### TypeScript SDK
Pass the key when creating the SDK client:
```typescript theme={null}
import { createClient } from "@jinba-toolbox/sdk";
const client = createClient({
baseUrl: "https://toolbox-api.jinba.io",
apiKey: process.env.JINBA_TB_API_KEY!,
organizationId: "your-org-id",
});
const result = await client.run("slack-tools", "post-message", {
channel: "#general",
text: "Hello from Jinba Toolbox!",
});
```
### MCP Endpoint
When connecting an AI agent to a ToolSet's MCP endpoint, provide the API key as part of the connection configuration. The MCP endpoint URL is shown on the ToolSet's Tools tab when the MCP switch is on and a version is published. The **Connect with JinbaApp** button there creates (or reuses) a key named `JinbaApp Connection ({environment})` for you.
## Where API Keys Are Managed
All API keys belong to an organization. Two console pages manage the same keys:
| Page | Location | Notes |
| - | - | - |
| **Organization API Keys** | Organization sidebar > API Keys | Full view: environment, issuer, last used, copy full key |
| **Dashboard API Keys** | User menu > API Keys (`/dashboard/api-keys`) | Pick an organization from the drop-down, then create or delete its keys |
## Best Practices
* **Use descriptive names** -- Name keys by their purpose and environment (e.g. "Production API Server", "Staging CI") so you can identify which key to revoke if needed.
* **Rotate keys regularly** -- Create new keys and revoke old ones periodically to limit the impact of a potential leak.
* **Never commit keys to source control** -- Store keys in environment variables or a secrets manager.
* **Use separate keys per environment** -- Create distinct keys for development, staging, and production.
* **Revoke unused keys** -- If a key is no longer needed, revoke it immediately. Check the "Last Used" column to identify dormant keys.
* **Use one key per environment profile** -- A key is bound to a ToolSet environment, so create separate keys for `default` and any additional environments you add.
# Credits
Source: https://docs.jinba.io/en/pages/toolbox/console/credits
How tool executions are metered, who pays for them, and how to check the balance and buy credits in the Jinba Toolbox console
Tool executions in Jinba Toolbox are metered in **credits**. Every organization has its own balance; executions draw from it and purchases add to it.
## How Credits Are Consumed
* **One successful execution costs one credit.** This applies to runs through the REST API, the public endpoints, MCP and the Jinba Flow integration alike.
* **Failed runs are free.** The balance is checked before a run starts, but a credit is only deducted when the run succeeds.
* **Test runs are free.** Running draft code from the tool editor's Test panel does not consume credits.
* **The caller pays.** When an organization executes another organization's public ToolSet, the credit is taken from the caller's balance. Publishing a public ToolSet never costs the provider anything.
Credits never expire.
## Free Credits
A personal organization starts with **500 free credits**. They are added automatically the first time its balance is loaded, and appear in the transaction history as **Free credits**. Team organizations receive no free grant; their members use the team's purchased balance.
## Checking the Balance
The bottom of the console sidebar shows a **Credits** widget with the current balance. Click it to open the **Credits** page, which has three sections:
* **Credit Balance** -- the current balance. A **Low credit balance** warning appears below 100 credits.
* **Purchase Credits** -- the available credit packages (see below).
* **Transaction History** -- every change to the balance, ten at a time with **Load more**. Entries are labelled **Tool execution**, **Credit purchase**, **Free credits**, **Refund** or **Adjustment**.
The balance is also available from the API: `GET /v1/orgs/:orgId/credits`.
## Purchasing Credits
| Package | Price | Per credit |
| - | - | - |
| 1,000 credits | \$10 | \$0.010 |
| 5,000 credits | \$45 | \$0.009 |
| 10,000 credits | \$80 | \$0.008 |
Click **Purchase** on a package to be taken to Stripe Checkout. After payment you return to the Credits page with "Payment successful! Your credits have been added to your account." and the new balance; a cancelled checkout shows "Payment was canceled. No charges were made."
> [!NOTE]
>
> Purchasing requires the **Owner** or **Admin** role. Members can see the balance and history but a purchase attempt is rejected. On deployments without Stripe the page shows "No credit packages available at the moment." instead of packages, and credits are granted by the platform administrator.
## Insufficient Credits
When the balance is lower than the cost of a run, the run is refused before any code executes.
* The REST API and the public endpoints return `402`:
```json theme={null}
{
"type": "insufficient-credits",
"title": "Insufficient Credits",
"status": 402,
"detail": "Insufficient credits. Current balance: 0, required: 1",
"currentBalance": 0,
"required": 1
}
```
* Over MCP, the tool call returns an error result (`isError: true`) whose text is `Insufficient credits. Current balance: 0, required: 1`.
## Related
* [Security & Access Control](/en/pages/toolbox/advanced/security) -- which roles can purchase credits
* [Discovering Public ToolSets](/en/pages/toolbox/console/explore) -- using other organizations' tools with your own credits
* [REST API](/en/pages/toolbox/developer/api) -- the credits endpoint and error format
# Execution & Testing
Source: https://docs.jinba.io/en/pages/toolbox/console/execution
Run tools in sandbox environments, view execution results, and browse run history in the Jinba Toolbox console
Jinba Toolbox executes every tool in an isolated sandbox container. You can test tools interactively from the editor or review the full execution history of your organization.
## Testing from the Tool Editor
The Tool Editor includes a built-in **Test Panel** for running your tool against a live sandbox.
**1. Enter Test Input**
In the Test Panel (bottom section of the editor), type or paste a JSON object that matches the tool's input schema. For example:
```json theme={null}
{
"name": "Alice",
"greeting": "Hi"
}
```
**2. Run the Tool**
Click the **Run** button or press `Cmd/Ctrl + Enter`. The tool will execute in a sandbox with the ToolSet's configured language, packages, and environment variables.
**3. View Results**
The Test Panel automatically switches to the **Output** tab, showing the JSON object returned by the `run` function on success, or the error name and message if the tool failed, together with the execution duration. The captured `stdout` / `stderr` logs are available on the run's detail page in **Runs** and are passed to the AI Copilot.
> [!NOTE]
>
> Testing from the editor uses the code currently in the editor (even unsaved changes), not the published version. This lets you iterate quickly before publishing. Test runs are recorded with version `test`, do not consume credits and do not trigger webhooks. The `/test` endpoint requires a signed-in user session; it cannot be called with an API key.
### Test Execution Flow
When you click Run, the following happens behind the scenes:
1. The console sends the editor code and input JSON to the API's `/test` endpoint.
2. The API spins up a sandbox instance using the ToolSet's configured provider (E2B or Daytona).
3. Packages defined in the ToolSet are installed in the sandbox.
4. Environment variables are injected into the sandbox process.
5. The code is executed with the provided input.
6. The sandbox captures the return value, stdout, stderr, and any errors.
7. Results are sent back to the console and displayed in the Test Panel.
## Run History
Every tool execution -- whether triggered from the editor, the REST API, or an MCP call -- produces a **Run** record. The Run History page provides a centralized view of all executions within your organization.
### Browsing Runs
Navigate to **Runs** in the organization sidebar to see the execution history. Switch between **As Caller** (runs your organization executed, full details) and **As Provider** (runs of your tools executed by other organizations, limited details). **Export CSV** downloads the current list.
The runs list displays:
| Column | Description |
| - | - |
| **Tool** | The slug and version of the tool that was executed, plus the provider organization / ToolSet (caller view) or the caller organization (provider view) |
| **Status** | Current state: `success`, `failed`, `running`, or `pending` |
| **Duration** | Execution time in milliseconds |
| **Time** | When the run was created |
Runs are sorted by creation date with the most recent first.
### Status Indicators
Each run has a status that reflects where it is in the execution lifecycle:
> [card] Pending
>
> The run has been created but the sandbox has not started execution yet.
> [card] Running
>
> The tool is currently executing inside the sandbox.
> [card] Success
>
> The tool completed successfully and returned an output.
> [card] Failed
>
> The tool encountered an error during execution.
### Run Detail Page
Click any run in the list to open its detail page. The detail view shows:
**Summary Card**
A four-column summary at the top showing Duration, Created, Started, and Completed timestamps.
**Tabbed Data View**
* **Input** -- The JSON input that was sent to the tool.
* **Output / Error** -- On success, the JSON output returned by the tool. On failure, the error name and message.
* **Logs** -- Captured `stdout` and `stderr` from the sandbox process. This tab only appears when logs are present.
### Caller vs. Provider View
Runs have two perspectives:
* **Caller view** -- When your organization executed a tool (whether your own or another organization's public tool), you see full details: input, output, error, and logs.
* **Provider view** -- When another organization executed one of your public tools, you can see the run's status and metadata but **not** the input, output, or logs. This protects the caller's data privacy.
The provider view displays a message indicating that execution details are only available to the calling organization, along with the caller's organization name.
## Execution via API
Beyond the console, tools can be executed programmatically:
> [card] REST API
>
> `POST /v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug/run` -- Execute a published tool version via the API. Requires the organization's API key (or a signed-in session).
> [card] MCP Endpoint
>
> `POST /v1/orgs/:orgId/toolsets/:slug/mcp` -- Call tools through the Model Context Protocol. AI agents can discover and invoke tools via the standard MCP JSON-RPC interface.
> [card] Public Execution
>
> `POST /v1/public/:orgId/:toolsetSlug/run/:toolSlug` -- Execute a public tool using any organization's API key. `:orgId` is the provider organization's ID.
> [card] SDK
>
> Use the `@jinba-toolbox/sdk` to execute tools from your TypeScript application with a simple function call.
All execution methods produce Run records visible in the console's Run History. Each successful execution of a published tool consumes 1 credit from the caller's organization.
## Execution Lifecycle
The complete lifecycle of a tool run:
**1. Pending**
The API receives the execution request and creates a Run record with status `pending`.
**2. Sandbox Creation**
A sandbox instance is created using the configured provider (E2B or Daytona) with the ToolSet's language, packages, and environment variables.
**3. Running**
The tool's code is executed inside the sandbox with the validated input. The status changes to `running`.
**4. Completion**
The sandbox returns the output (or error) along with captured stdout/stderr logs. The status changes to `success` or `failed`, and the duration is recorded.
## Best Practices
* **Test with varied inputs** -- Cover edge cases (empty strings, large numbers, missing optional fields) in the Test Panel before publishing.
* **Check logs for debugging** -- When a tool fails, the `stderr` logs often contain stack traces and error details that pinpoint the issue.
* **Monitor run history** -- Regularly review the Runs page to spot patterns in failures or unexpected durations.
* **Use the Copilot after failures** -- After a failed test run, the AI Copilot has access to the error output and can suggest fixes.
# Discovering Public ToolSets
Source: https://docs.jinba.io/en/pages/toolbox/console/explore
Find public ToolSets published by other organizations on the Explore page and run their tools with your own API key
Organizations can publish ToolSets as **Public**. Public ToolSets are listed on the **Explore** page, where anyone can browse their tools and schemas, and any organization with a Jinba Toolbox API key can execute them.
## The Explore Page
Open `https://toolbox.jinba.io/explore`. No sign-in is required.
* **Search** -- the **Search tool sets...** box matches the ToolSet name, description and slug.
* **Tags** -- up to eight popular tags are shown as pills; click one to filter, and **Clear filter** to remove it. The search text and tag are kept in the URL (`?q=&tag=`), so a filtered view can be shared.
* **Cards** -- each result shows the ToolSet slug, description, up to four tags, the language and the ToolSet's latest version number (which may be newer than the version public calls execute). Only public ToolSets with a version published to their `default` environment are listed.
Clicking a card opens the ToolSet page at `/explore/{organizationId}/{toolsetSlug}`. It carries a **Public** badge and shows the tools with their input schemas (output schemas are available through the discovery API below), the **Versions**, the **Details** (language, creation date and, when the ToolSet has packages, their names under **Dependencies**) and a **Quick Start** with the endpoint to call. Source code is never shown.
## Using a Public ToolSet
**1. Find the ToolSet**
Note the organization ID and ToolSet slug from the page URL. The organization ID has to be the canonical ID shown there; organization slugs are not accepted by the public endpoints.
**2. Create an API key**
Any valid Jinba Toolbox API key works, including one from your own organization. See [API Key Management](/en/pages/toolbox/console/api-keys).
**3. Execute via REST or MCP**
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/public/{organizationId}/{toolsetSlug}/run/{toolSlug} \
-H "Authorization: Bearer $JINBA_TOOLBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": {"query": "Hello"}}'
```
The response contains `runId`, `version`, `success`, `output`, `error` and `durationMs`. A call from another organization runs the version the provider published to its `default` environment; a call with the provider's own key runs the version published for that key's environment. The unpublished draft is never executed, and the call is refused with `400` and "No published version available" when nothing is published for that environment. If the ToolSet has MCP enabled, the same tools are available at `/v1/public/{organizationId}/{toolsetSlug}/mcp` -- see [MCP Integration](/en/pages/toolbox/developer/mcp).
Each successful execution costs **one credit from your organization**, not from the provider's. See [Credits](/en/pages/toolbox/console/credits).
## Discovery API
The listing is also available without authentication:
```bash theme={null}
# All public ToolSets
curl "https://toolbox-api.jinba.io/v1/explore/toolsets"
# Text search
curl "https://toolbox-api.jinba.io/v1/explore/toolsets?q=weather"
# Filter by tag
curl "https://toolbox-api.jinba.io/v1/explore/toolsets?tag=slack"
```
`limit` (default 50, at most 100) and `offset` paginate the list. `GET /v1/explore/toolsets/{organizationId}/{toolsetSlug}` returns one ToolSet with its tools and versions, and `GET /v1/explore/tags` returns the popular tags. Details are in the [REST API](/en/pages/toolbox/developer/api#explore-routes) reference.
## Publishing Your Own ToolSet
To appear on the Explore page, a ToolSet must be set to **Public** and have a version published to its `default` environment. A ToolSet published only to another environment profile (for example `staging`) is not listed. The visibility switch and its implications are described in [Visibility Settings](/en/pages/toolbox/console/toolsets#visibility-settings).
## Related
* [ToolSet Management](/en/pages/toolbox/console/toolsets) -- visibility and publishing
* [Credits](/en/pages/toolbox/console/credits) -- who pays for an execution
* [REST API](/en/pages/toolbox/developer/api) -- public and explore routes
# Import and Export
Source: https://docs.jinba.io/en/pages/toolbox/console/import-export
Move ToolSets between organizations or develop them in a local editor by exporting and importing ZIP archives in the Jinba Toolbox console
A ToolSet can be exported as a ZIP archive and imported again, either into an existing ToolSet or as a brand-new one. Use it to back up a ToolSet, copy it to another organization, or write tools in your own editor and upload them in one step.
## Archive Layout
```
my-toolset/
├── toolset.yml
└── tools/
├── tool-a/
│ ├── tool.yml
│ └── main.py
└── tool-b/
├── tool.yml
└── main.py
```
* The root directory is optional. `toolset.yml` may sit at the top level of the ZIP instead; the ToolSet slug is then derived from its `name`. When a root directory is present, its name becomes the slug.
* Each tool lives in its own folder under `tools/`. The folder name is the tool slug. Folders whose name starts with `.` are ignored.
* The code file is `main.py` for Python ToolSets and `main.ts` for TypeScript ToolSets.
## File Formats
### toolset.yml
```yaml theme={null}
name: My ToolSet
description: ToolSet description
language: python # python or typescript
packages:
- name: requests
version: "2.31.0"
- name: beautifulsoup4
env:
- key: API_KEY
value: "a1b2c3:...:..." # secrets are exported in encrypted form
secret: true
- key: LOG_LEVEL
value: debug
- key: BASE_URL
value: https://staging.example.com
environmentSlug: staging
```
| Field | Required | Description |
| - | - | - |
| `name` | Yes | Display name |
| `description` | No | Description; empty when omitted |
| `language` | Yes | `python` or `typescript` |
| `packages` | No | Packages to install in the sandbox. Each entry has `name` and an optional `version` |
| `env` | No | Environment variables. Each entry has `key`, an optional `value`, an optional `secret` flag and an optional `environmentSlug`. A `secret: true` entry without a `value` is skipped on import |
An `env` entry without `environmentSlug` belongs to the `default` environment profile. An `environmentSlug` that does not exist yet is created during import, with the slug as its name. See [Managing Environment Variables](/en/pages/toolbox/console/toolsets#managing-environment-variables) for how profiles work.
### tool.yml
```yaml theme={null}
name: My Tool
description: Tool description
```
| Field | Required | Description |
| - | - | - |
| `name` | No | Display name; the folder name is used when omitted |
| `description` | No | Description |
| `entrypoint` | No | Name of the function to call. Defaults to `run`; export writes it only when it differs |
### Code File
Input and output schemas are not stored in the archive. They are extracted from the code when the archive is imported, so the code has to follow the same conventions as in the editor:
> [tab] Python (main.py)
>
> ```python theme={null}
> from pydantic import BaseModel
>
> class Input(BaseModel):
> query: str
>
> class Output(BaseModel):
> result: str
>
> def run(input: Input) -> Output:
> return Output(result=input.query.upper())
> ```
>
> `Input` and `Output` must be pydantic v2 models.
> [tab] TypeScript (main.ts)
>
> ```typescript theme={null}
> import { z } from "zod";
>
> export const input = z.object({ query: z.string() });
> export const output = z.object({ result: z.string() });
>
> export async function run(input: z.infer) {
> return { result: input.query.toUpperCase() };
> }
> ```
>
> The module must export `input`, `output` and `run`.
A tool whose schemas cannot be extracted is reported under **Failed** with the extraction error, and the other tools are still imported.
## Exporting
Click **Export** in the ToolSet header to download `{slug}.zip` with the draft state of every tool. The button is disabled while the ToolSet has no tools.
Individual published versions can be exported from the **Versions** tab instead. A version archive is named `{slug}-{version}.zip`, contains the tools and packages exactly as they were published, and omits environment variables, which belong to the ToolSet rather than to a version. Its root directory is still `{slug}`, so it imports like any other archive.
> [!NOTE]
>
> Secret environment variables are exported with their **encrypted** value, not as plaintext, and are written back unchanged on import. They can therefore only be re-imported into the same Jinba Toolbox deployment; after moving an archive elsewhere, re-enter the secret values in the console. Non-secret variables are exported in plaintext.
## Importing into an Existing ToolSet
**1. Open the Import dialog**
On the ToolSet detail page, click **Import** in the header. The **Import Tools** dialog opens.
**2. Decide about overwriting**
Turn on **Overwrite existing tools with same slug** to replace tools that already exist in the ToolSet. With the option off, those tools are reported under **Failed** with `Tool "" already exists (enable overwrite)`. The same switch decides whether environment variables that already exist are updated or skipped. Decide this first: the option disappears once a source has been chosen (use **Back** to change it).
**3. Choose the source**
Click **Select Folder** to pick a local folder whose root contains `toolset.yml`, or **Select ZIP** to pick an archive. If the folder has no `toolset.yml` at its root, the dialog shows "The selected folder does not contain a toolset.yml at its root."
**4. Confirm**
The dialog asks "Import this file?" and, when overwriting is on, warns that existing tools with the same slug will be overwritten. Click **Import**. The dialog shows **Importing...** and then the counts of tools **Created**, **Updated** and **Failed**; it closes by itself a couple of seconds after a successful import.
An import into an existing ToolSet writes **tools and environment variables only**. The ToolSet's name, description, language and sandbox provider are left as they are, and the `packages` list in `toolset.yml` is ignored. Because schema extraction runs each tool's code in the ToolSet's sandbox with its current packages, add any packages the archive needs on the **Packages** tab **before** importing; a tool whose imports fail lands under **Failed** and can be imported again once the packages are in place.
## Importing as a New ToolSet
The **Import** button on the ToolSets list page creates a new ToolSet from an archive. The dialog is the same, minus the overwrite option.
* The name, description, language, packages and environment variables come from `toolset.yml`. `language` must be `python` or `typescript`.
* The slug comes from the root directory (or from `name` when the archive has no root directory). If a ToolSet with that slug already exists in the organization, a `-1`, `-2`, ... suffix is appended.
* The sandbox provider is E2B.
## Errors
| Message | Cause |
| - | - |
| `Invalid ZIP: toolset.yml not found` | The archive has neither a root-level nor a root-directory `toolset.yml` |
| `Invalid toolset.yml: name and language are required` | `name` or `language` is missing |
| `Invalid language: ... Must be one of: python, typescript` | Unsupported `language` when importing as a new ToolSet |
| `Invalid ZIP: tool.yml not found for tool ""` | A tool folder has no `tool.yml` |
| `Invalid ZIP: main.py not found for tool ""` / `main.ts ...` | A tool folder has no code file for the `language` declared in `toolset.yml` |
| `Tool "" already exists (enable overwrite)` | Per-tool failure when the overwrite option is off |
## Related
* [ToolSet Management](/en/pages/toolbox/console/toolsets) -- packages, environment profiles and the ToolSet header
* [Tool Development](/en/pages/toolbox/console/tool-development) -- the code conventions the schema extraction relies on
* [REST API](/en/pages/toolbox/developer/api) -- the import and export routes for automation
# Organization Management
Source: https://docs.jinba.io/en/pages/toolbox/console/organization
Open organizations, review members and roles, and find organization settings in the Jinba Toolbox console
Organizations are the top-level ownership unit in Jinba Toolbox. Every ToolSet, API key, and execution record belongs to an organization. You must belong to an organization before you can start building tools.
## Opening an Organization
Organizations, memberships, roles and invitations are managed in **JinbaAuth**, the shared Jinba sign-in service -- the Toolbox console cannot create organizations or invite members.
**1. Open the Dashboard**
After signing in, the dashboard shows **Your Organizations** -- the organizations you belong to, each with your role and its ToolSet count. If the list is empty, organizations will appear here once you are invited to one in JinbaAuth.
**2. Open an Organization**
Click an organization card. You land on its **Tool Sets** page, ready to start building. The organization switcher in the top bar lets you jump between organizations.
## Organization Dashboard
Once inside an organization, the sidebar provides access to all management areas:
> [card] Tool Sets
>
> View, create, and manage your ToolSets. This is the default landing page for an organization.
> [card] Runs
>
> Browse the execution history of all tools within the organization.
> [card] API Keys
>
> Create and delete API keys scoped to this organization.
> [card] Webhooks
>
> Register HTTP endpoints that receive run and publish events.
> [card] Members
>
> See who belongs to the organization and their roles.
> [card] Settings
>
> View the organization's name, slug, logo and SSO login URL.
The credit balance is shown at the bottom of the sidebar; clicking it opens the **Credits** page where you can purchase credits and review transaction history.
## Member Management
The **Members** page in the organization sidebar is read-only. It lists each member with their role and join date, and shows pending invitations (email, role, invited by, expiry) when there are any.
Inviting members, changing roles and removing members are done in JinbaAuth, not in the Toolbox console.
### Invitation Links
An invitation link opens the `/invite/[id]` page in the Toolbox console. The page shows the organization, the invited role and e-mail, and whether the invitation is expired, already accepted or cancelled, then points you to **Open JinbaAuth** to review and accept the invitation there. If you are signed in with a different e-mail address than the one invited, a warning is shown.
## Roles and Permissions
Each member has one of the roles **Owner**, **Admin** or **Member** (assigned in JinbaAuth). Inside Jinba Toolbox the roles grant:
| Permission | Owner | Admin | Member |
| - | - | - | - |
| Create / edit / delete / publish ToolSets and Tools | Yes | Yes | Yes |
| Execute and test tools | Yes | Yes | Yes |
| View run history and members | Yes | Yes | Yes |
| Create API keys, delete own API keys | Yes | Yes | Yes |
| Delete other members' API keys | Yes | Yes | No |
| Create, edit and delete webhooks | Yes | Yes | No |
| Purchase credits | Yes | Yes | No |
API keys always act with **Member**-level permissions, regardless of who created them.
## Organization Settings
**Settings** in the sidebar shows the organization details: logo, **Organization Name**, **Organization Slug** and, for organizations with SSO configured, the **SSO Login URL** (`/login?tenant={slug}`) with copy and open buttons. These fields are read-only in the Toolbox console; organization details are edited in JinbaAuth.
## Best Practices
* **Use organizations to group related teams or projects.** Each organization has its own ToolSets, API keys, and credits.
* **Follow the principle of least privilege.** Assign the minimum role needed for each member (in JinbaAuth).
* **Review members regularly.** Remove access for users who no longer need it.
* **Keep at least two Owners** for redundancy in case one becomes unavailable.
# Tool Development
Source: https://docs.jinba.io/en/pages/toolbox/console/tool-development
Write tools in the code editor, let input/output schemas be extracted from your code, and use AI Copilot for code generation in the Jinba Toolbox console
Each tool in a ToolSet is an individual executable unit with a defined input schema, output schema, and code. The console provides a full-featured development environment for writing, testing, and iterating on tools without leaving the browser.
## Creating a Tool
**1. Open the ToolSet**
Navigate to the ToolSet where you want to add a tool. Make sure you are on the **Tools** tab.
**2. Click Add Tool**
Click **Add Tool**. A **Create New Tool** modal will ask for:
* **Name** -- Human-readable name (e.g. "Post Message").
* **Slug** -- URL-safe identifier (e.g. `post-message`), auto-generated from the name. Used in API endpoints.
* **Description** -- What the tool does (optional).
**3. Open the Editor**
Click **Create Tool**. You are redirected to the **Tool Editor** page with a language-appropriate starter template pre-filled.
## The Tool Editor
The Tool Editor is a resizable, multi-panel workspace:
> [card] Code Editor
>
> A CodeMirror-based editor with syntax highlighting for TypeScript and Python.
> [card] Test Panel
>
> Enter JSON input and run the tool in a live sandbox. View the output or error without leaving the editor.
> [card] Settings Panel
>
> Edit the tool's name, slug, and description. Trigger auto-fill of metadata from code.
> [card] AI Copilot
>
> A built-in chat assistant that can generate code, suggest fixes based on execution output, and update test inputs.
### Keyboard Shortcuts
| Shortcut | Action |
| - | - |
| `Cmd/Ctrl + S` | Save the tool |
| `Cmd/Ctrl + Enter` | Run the tool with current test input |
| `Cmd/Ctrl + B` | Toggle the AI Copilot sidebar |
| `Cmd/Ctrl + ,` | Toggle the Settings panel |
| `Cmd/Ctrl + .` | Toggle the API panel |
| `Escape` | Close the active panel or modal |
## Writing Tools in TypeScript
TypeScript tools use **Zod** for schema definitions. Export `input` and `output` schemas and an async `run` function:
```typescript theme={null}
import { z } from "zod";
// Define the input schema
export const input = z.object({
name: z.string().describe("The user's name"),
greeting: z.string().optional().describe("Custom greeting prefix"),
});
// Define the output schema
export const output = z.object({
message: z.string().describe("The greeting message"),
});
// Implement the tool logic
export async function run(data: z.infer) {
const prefix = data.greeting ?? "Hello";
return { message: `${prefix}, ${data.name}!` };
}
```
**Key conventions for TypeScript tools:**
* Import `z` from `"zod"` -- it is pre-installed in the sandbox.
* Export `input` and `output` as Zod schemas. These are used for validation and to generate JSON Schema for the API.
* Export `run` as the entry point. It receives the validated input and must return an object matching the output schema.
* You can `import` any packages listed in the ToolSet's **Packages** tab.
* Environment variables are accessible via `process.env`.
## Writing Tools in Python
Python tools use **Pydantic** for schema definitions. Define `Input` and `Output` models and a `run` function:
```python theme={null}
from pydantic import BaseModel, Field
class Input(BaseModel):
name: str = Field(description="The user's name")
greeting: str = Field(default="Hello", description="Custom greeting prefix")
class Output(BaseModel):
message: str = Field(description="The greeting message")
def run(input: Input) -> Output:
return Output(message=f"{input.greeting}, {input.name}!")
```
**Key conventions for Python tools:**
* Define `Input` and `Output` as Pydantic `BaseModel` subclasses.
* Define `run` as the entry point. It receives the validated input and must return an instance of the `Output` model.
* You can `import` any packages listed in the ToolSet's **Packages** tab.
* Environment variables are accessible via `os.environ`.
## Input and Output Schemas
Schemas serve two purposes:
1. **Validation** -- The API validates the input (required fields and property types) against the input schema before execution. The output is not validated.
2. **Documentation** -- Schemas are exposed through the API and MCP endpoints so that AI agents understand what a tool expects and returns.
Both schemas are extracted from your code: when you save a tool, the API runs the `input` / `output` definitions (Zod or Pydantic) in a sandbox and stores the resulting JSON Schemas. A tool cannot be saved if `input`, `output` or `run` is missing.
Use `.describe()` (Zod) or `Field(description=...)` (Pydantic) on each field to provide clear descriptions. These descriptions appear in the API documentation and are used by AI agents to understand how to call your tool.
## Auto-Generate Metadata
Click **Auto-fill** in the Settings panel to automatically fill in:
* **Name** -- a human-readable name inferred from the code.
* **Slug** -- derived from the code.
* **Description** -- a summary of what the tool does.
This uses AI to analyze your code and saves time when you have already written the implementation.
## AI Copilot
The right-hand panel of the tool editor is an AI coding agent (its header reads **Coding Agent**) that knows the tool's code, language and latest test result. It is open by default; toggle it with `Cmd/Ctrl + B`, or reopen it with the bot icon (**Open AI Assistant**) that takes its place while it is closed.
Type a request into the **Ask anything...** box and press `Enter` (`Shift + Enter` inserts a newline). An empty conversation offers the starters **Explain this code**, **Add error handling** and **Optimize performance**. Typical requests:
```
Create a tool that posts a message to a Slack channel
Add a limit parameter to the input
Fix the error
```
* **Generate or change code** -- The agent writes or edits the implementation. Changes it makes through its editing tools appear in the editor as they happen; for code shown in the chat, click **Apply** to put it into the editor, which also saves the tool. **Copy** copies the snippet instead.
* **Fix a failed test** -- The latest run result (status, input, output, error, stdout and stderr) is sent with every message. After a failed test, an **Auto Fix Error** button appears that asks the agent to fix the error based on that result.
* **Run and fill in test input** -- The agent can run the tool itself and can fill the **Input** tab of the Test panel with suggested test input, typically after a successful run.
* **Conversations** -- Conversations are saved per tool and per user. The most recent one loads when the panel opens; the header has a conversation selector, **New conversation** and **Export conversation**.
> [!TIP]
>
> Be specific about libraries and expected behaviour, build complex tools incrementally, and continue an existing conversation rather than starting over when iterating.
## API Panel
Toggle the API panel (`Cmd/Ctrl + .` or the **API** button in the header) to view:
* The **Organization Endpoint** (`POST .../v1/orgs/{orgId}/toolsets/{slug}/tools/{toolSlug}/run`) with a copyable `curl` example whose sample input is generated from the tool's input schema.
* The **Public Endpoint** (`POST .../v1/public/{orgId}/{slug}/run/{toolSlug}`) with its `curl` example when the ToolSet is public, or a note that the ToolSet is private.
* A reminder that each execution consumes 1 credit.
The MCP endpoint is shown on the ToolSet's Tools tab, not in this panel.
This is useful for quickly integrating a tool into external applications while still in the editor.
## Saving and Deleting
* **Save** -- Click the Save button or press `Cmd/Ctrl + S`. Changes are saved to the draft state and do not affect published versions.
* **Delete** -- Click the Delete button in the header. A confirmation dialog will appear. Deleting a tool removes it from the draft state. If it was included in published versions, those snapshots remain unchanged.
## Best Practices
* **Keep tools focused.** Each tool should do one thing well. Use the ToolSet to group related tools.
* **Write descriptive schemas.** Good field descriptions help AI agents call your tools correctly.
* **Test before publishing.** Use the Test panel to verify behavior with various inputs before publishing a new version.
* **Use environment variables for secrets.** Never hard-code API keys or tokens in tool code. Store them in the ToolSet's Environment tab.
* **Leverage the Copilot for iteration.** After a failed test run, the Copilot has access to the error output and can suggest targeted fixes.
# ToolSet Management
Source: https://docs.jinba.io/en/pages/toolbox/console/toolsets
Create ToolSets, configure sandbox environments, manage packages, and control visibility in the Jinba Toolbox console
A **ToolSet** is a collection of related tools bundled with a shared execution environment. Think of it as an npm package or Docker image -- it groups tools together, defines their runtime dependencies, and supports semver-based versioning.
## Creating a ToolSet
**1. Navigate to Tool Sets**
Inside your organization, click **Tool Sets** in the sidebar. This is the default page when entering an organization.
**2. Click New Tool Set**
Click the **New Tool Set** button. A creation form will appear with the following fields.
**3. Fill in the Details**
| Field | Description |
| - | - |
| **Name** | Human-readable display name (e.g. "Slack Tools"). |
| **Slug** | URL-safe identifier (e.g. `slack-tools`), generated from the name and editable. Cannot be changed after creation. |
| **Description** | A short summary of what this ToolSet does. |
| **Visibility** | `Private - Only you and team members` (default) or `Public - Visible to everyone`. Can be changed later. |
| **Provider** | Sandbox provider. The console offers `E2B` only. Cannot be changed after creation. |
| **Language** | `Python` or `TypeScript`. Determines the code template and runtime. Cannot be changed after creation. |
| **Timeout (seconds)** | Optional execution timeout. Default 900 seconds (15 min), maximum 3600 seconds (1 hour). |
**4. Create**
Click **Create Tool Set**. You return to the Tool Sets list; open the new ToolSet to start adding tools.
## ToolSet Detail Page
The detail page is the central hub for managing a ToolSet. It is organized into four tabs:
> [card] Tools
>
> Lists all draft tools in the ToolSet. Add new tools, click a tool to open the code editor, and see at a glance whether there are unpublished changes. When MCP is enabled and a version is published, an **MCP Connection** card with the endpoint and a Claude Desktop config appears here.
> [card] Versions
>
> View published version history, publish new versions, switch the active version per environment, and export a version as ZIP.
> [card] Packages
>
> Manage sandbox dependencies. Add or remove npm packages (TypeScript) or pip packages (Python) that your tools need at runtime.
> [card] Environment
>
> Manage environment profiles (e.g. `default`, `staging`) and the environment variables available to tools in each of them. Secret values are stored encrypted and can be revealed on demand.
## Sandbox Configuration
Every ToolSet defines a sandbox environment that its tools execute in. The sandbox configuration is set at creation time:
* **Language** -- `Python` or `TypeScript`. This controls which runtime is used and what code templates are generated for new tools.
* **Provider** -- `E2B` (the API also accepts `daytona`, but the console only offers E2B). The sandbox provider handles container creation, code execution, and lifecycle management.
* **Timeout** -- how long a single execution may run. Defaults to 900 seconds; at most 3600 seconds.
### Managing Packages
Navigate to the **Packages** tab to manage runtime dependencies.
**1. Add a Package**
Click **Add** (or **Add Package** when the list is empty) and enter the **Package Name** (e.g. `axios` for TypeScript, `requests` for Python). You can optionally specify a **Version**; leave it empty for the latest.
**2. Remove a Package**
Click the delete icon next to any listed package and confirm **Remove** to remove it from the sandbox configuration.
Package changes are reflected in the draft state. You must **publish a new version** for the updated packages to take effect in production API calls. For TypeScript ToolSets, `zod` and `tsx` are always installed in addition to your packages.
### Managing Environment Variables
Navigate to the **Environment** tab to manage secrets and configuration values.
Every ToolSet has a `default` environment profile. You can add more profiles (for example `staging`) with **+ Environment** (Name and Slug); each profile has its own set of variables and its own active published version. Which profile an execution uses is decided by the API key's environment (chosen when the key is created) or by the `environmentSlug` field of the run request. The `default` profile cannot be renamed or deleted.
**1. Select an Environment**
Pick the environment profile in the selector at the top of the tab.
**2. Add a Variable**
Click **+ Variable** (or **Add Variable** when the list is empty). Enter a **Key** (uppercase letters, digits and underscores, e.g. `SLACK_TOKEN`), a **Value**, and optionally turn on **Secret**. Secret values are encrypted and masked in the UI.
**3. Edit or Delete**
Hover over a variable and click **Edit** to update its key, value or secret flag (leave the value empty to keep the existing one), or the delete icon to remove it.
**4. Reveal Secrets**
Click the eye icon next to a secret value to temporarily show it.
Environment variables are injected into the sandbox at execution time and are available via `process.env` (TypeScript) or `os.environ` (Python).
## Versioning and Publishing
ToolSets use **semantic versioning** (e.g. `1.0.0`, `1.1.0`, `2.0.0`). Each version is an immutable snapshot of all tools and their code at the time of publishing.
**1. Make Changes**
Edit tools, add new tools, or update packages in the draft state.
**2. Publish a Version**
Click **New Version** on the Versions tab (or **Publish** in the ToolSet header). Enter a version number (the console suggests the next patch version), choose the **Active Environment**, and add optional release notes. Click **Publish**.
**3. Set the Active Version**
The newly published version automatically becomes the **active** version for the environment you selected; API and MCP calls that target that environment use it. The Versions tab has an environment selector; switch the active version of the selected environment by hovering over any version in the list and clicking **Set Active**. Each version row also shows its run count for the last 30 days and an **Export** action that downloads that version as a ZIP.
> [!NOTE]
>
> Published versions are immutable. To make changes, edit the draft tools and publish a new version.
## Visibility Settings
ToolSet visibility controls who can discover and execute your tools:
| Visibility | Discovery | Execution |
| - | - | - |
| **Private** | Only organization members | Only organization members (via session or the organization's API key) |
| **Public** | Anyone on the Explore page and in search (names, descriptions and schemas) | Any organization with a valid API key; the execution cost is charged to the caller's organization |
To change visibility, use the **Public** switch in the ToolSet header (or the **Visibility** field on the settings page). Changing to **Public** opens a **Make Tool Set Public** confirmation because it makes tool schemas visible on the Explore page (source code is never shared).
## MCP Server
When the **MCP** switch in the ToolSet header is on and at least one version has been published, the Tools tab shows an **MCP Connection** card with the endpoint URL, a copyable Claude Desktop configuration (which bridges the HTTP endpoint through `supergateway`), and a **Connect with JinbaApp** button. AI agents and LLM clients that support the Model Context Protocol can connect to this endpoint to discover and call the tools in the ToolSet.
Toggle MCP on or off from the ToolSet header at any time.
## Import and Export
The ToolSet detail page supports zip-based import and export. The archive layout, the `toolset.yml` / `tool.yml` fields and the error messages are documented in [Import and Export](/en/pages/toolbox/console/import-export).
* **Export** -- Downloads `{slug}.zip` containing `toolset.yml` (name, description, language, packages, environment variables -- secret values are included in their encrypted form, not as plaintext, and are re-imported as-is) and one folder per tool with `tool.yml` and `main.py` / `main.ts`. Useful for backup or migration. Individual published versions can be exported from the Versions tab.
* **Import** -- Select a folder or a `.zip` archive with the same layout to bulk-import tools into the ToolSet. Input/output schemas are extracted from the code on import. Turn on **Overwrite existing tools with same slug** to update tools that already exist.
## Editing ToolSet Settings
Click the settings icon in the ToolSet header to navigate to the settings page where you can:
* Change the **Name** and **Description**.
* Upload or remove the ToolSet **Icon**.
* Change the **Visibility** setting.
The **Language**, **Provider**, and **Slug** are read-only after creation. The MCP switch lives in the ToolSet header, not on the settings page.
## Deleting a ToolSet
Click the delete icon in the ToolSet header. A **Delete Tool Set** confirmation dialog will appear warning that all tools and versions will be permanently deleted. This action cannot be undone.
# Jinba Toolbox Concepts
Source: https://docs.jinba.io/en/pages/toolbox/core-concepts
Essential terminology and domain model for understanding Jinba Toolbox
Understanding these core concepts will help you use Jinba Toolbox effectively and navigate the platform with confidence.
## Key Terms
| Term | Definition | Example |
| - | - | - |
| **Organization** | Team or company that owns ToolSets. Users belong to one or more Organizations with roles (owner, admin, member). Organizations and memberships are managed in JinbaAuth. | `acme-corp` -- a team sharing a collection of AI tools |
| **ToolSet** | Collection of related tools with a shared execution environment. Equivalent to an npm package or Docker image. Belongs to an Organization. | `slack-tools` -- a set of Slack integration tools |
| **Tool** | Individual executable unit within a ToolSet. Has input/output schemas and code written in TypeScript or Python. | `post-message` -- sends a message to a Slack channel |
| **Run** | A single execution record of a Tool. Stores input, output, logs, status, and duration. | Executing `post-message` with channel and text parameters |
| **Version** | Immutable snapshot of a ToolSet at a point in time. Uses semantic versioning (semver). | `1.2.0` -- a published release of `slack-tools` |
| **Sandbox** | Isolated container environment where tool code executes. Prevents unsafe operations from affecting the host system. | An E2B container running a Python tool |
## Domain Relationships
The entities in Jinba Toolbox are organized in a clear hierarchy:
```
Organization
└── ToolSet
├── Tool (1:N)
├── Version (1:N)
└── Run (1:N)
```
* An **Organization** contains one or more **ToolSets**.
* A **ToolSet** contains one or more **Tools**, and can have multiple published **Versions**.
* Each **Run** records a single execution of a Tool within a ToolSet.
* **Users** belong to Organizations through memberships with assigned roles.
### Entity Relationship Diagram
```
┌──────────┐
│ User │
└────┬─────┘
│
├─────1:N─────┐
│ │
│ ┌────┴─────┐
│ │ ApiKey │
│ └──────────┘
│
└─────N:M─────┐
│
┌───────────┴───────────┐
│ OrganizationMember │ (role: owner / admin / member)
└───────────┬───────────┘
│
┌───────────┴───────────┐
│ Organization │
└───────────┬───────────┘
│
1:N
│
┌───────────┴───────────┐
│ ToolSet │
└───────────┬───────────┘
│
┌──────────┼──────────┐
│ │ │
1:N 1:N 1:N
│ │ │
┌────┴────┐ ┌───┴───┐ ┌───┴──────┐
│ Tool │ │ Run │ │ Version │
└─────────┘ └───────┘ └──────────┘
```
## Organizations
An Organization is the top-level ownership unit. All ToolSets, API keys, and billing belong to an Organization.
* Users can be members of multiple Organizations.
* Each membership has a **role**: `owner`, `admin`, or `member`.
* API keys are scoped to an Organization, act with `member`-level permissions, and are bound to one ToolSet **environment** (default: `default`).
## ToolSets
A ToolSet groups related tools together with a shared sandbox configuration. Key properties include:
| Property | Description |
| - | - |
| **Slug** | URL-friendly identifier, unique within the Organization |
| **Sandbox Config** | Defines the execution environment: provider (`e2b` in the console; `daytona` via the API), language (TypeScript or Python), packages, and timeout |
| **Visibility** | Controls access: `private` (organization only) or `public` (any organization with an API key) |
| **Tags** | Searchable labels for discovery in the explore catalog |
## Tools
A Tool is the smallest executable unit. Each Tool defines:
| Property | Description |
| - | - |
| **Slug** | URL-friendly identifier, unique within the ToolSet |
| **Input Schema** | JSON Schema generated from the code's `input` definition (Zod or Pydantic); validates the input before execution |
| **Output Schema** | JSON Schema generated from the code's `output` definition; describes the expected output structure |
| **Code** | The executable source code (TypeScript or Python) |
| **Entrypoint** | Optional custom entrypoint function name |
Input schemas are validated automatically (required fields and property types). If the input does not match the schema, the execution is rejected before any sandbox resources are consumed.
## Versions
Versions are immutable snapshots of a ToolSet. Once published, a Version cannot be modified.
* Versions follow **semantic versioning** (e.g., `1.0.0`, `1.2.3`).
* Publishing a Version captures all Tools, schemas, and code at that point in time.
* The `latestVersion` field on a ToolSet always points to the most recently published Version; the active version served by the API is tracked per environment (`publishedVersion` for the `default` environment).
* AI agents and external consumers should pin to a specific Version for stability.
## Runs
A Run represents a single tool execution and records everything about it:
| Field | Description |
| - | - |
| **Status** | `pending`, `running`, `success`, `failed`, or `timeout` |
| **Input** | The validated input parameters |
| **Output** | The structured result returned by the tool |
| **Logs** | Captured stdout and stderr from the sandbox |
| **Duration** | Execution time in milliseconds |
| **Error** | Error details if the Run failed |
Runs provide full observability into tool execution, making it easy to debug failures and monitor performance.
## Sandbox Execution
Every tool runs inside an isolated sandbox container. The sandbox system is built on a pluggable provider architecture:
| Provider | Description |
| - | - |
| **E2B** | Cloud-based sandboxes; the only provider selectable in the console |
| **Daytona** | Daytona cloud sandboxes; can be selected through the API only |
The sandbox provider is configured at the ToolSet level. All Tools in a ToolSet share the same sandbox configuration, including language runtime, installed packages, and resource limits.
## Access Control
Jinba Toolbox provides multiple layers of access control:
* **Organization membership** governs who can manage ToolSets and view Runs.
* **ToolSet visibility** (`private`, `public`) controls who can discover and execute tools.
* **API keys** act with `member`-level permissions; organization and member administration happens in JinbaAuth.
## What's Next?
> [card] [Quickstart](./quickstart)
>
> Build your first ToolSet and run a tool
> [card] [Web Console](./console/organization)
>
> Explore the web interface for managing tools
# REST API
Source: https://docs.jinba.io/en/pages/toolbox/developer/api
Interact with Jinba Toolbox programmatically through the REST API
## Overview
Jinba Toolbox exposes a REST API built on Hono.js. Every resource -- organizations, toolsets, tools, versions, runs, webhooks, and API keys -- is accessible through conventional HTTP endpoints under the `/v1` prefix.
**Base URL**:
```
https://toolbox-api.jinba.io/v1
```
## Authentication
All API requests (except explore routes) require authentication via a **Bearer token**. API keys are scoped to an organization, act with **Member**-level permissions, and follow the `jtb_` prefix convention. The web console authenticates with a JinbaAuth session token instead.
Include the key in the `Authorization` header:
```bash theme={null}
Authorization: Bearer jtb_xxxxxxxxxxxx
```
> [!NOTE]
>
> A few endpoints need a signed-in user rather than an API key and return `401` when called with a key: `GET /v1/orgs`, `GET /v1/orgs/:orgId`, `GET /v1/orgs/:orgId/members`, the `.../test` endpoint, and creating, revealing or deleting API keys. Publishing a version with an API key fails with `400` ("User context required").
**1. Create an API key**
Navigate to your organization settings and create a new API key. Give it a descriptive name such as `production` or `ci-cd`.
**2. Store the key securely**
Copy the key immediately after creation -- it will not be displayed again. Store it in an environment variable or secrets manager.
**3. Include the key in requests**
Pass the key as a Bearer token in every API request.
## Endpoint Reference
### Organization Routes
These endpoints require organization membership. The authenticated API key must belong to the target organization. `:orgId` accepts the organization ID (or its slug).
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs` | List the signed-in user's organizations (session only) |
| GET | `/v1/orgs/:orgId` | Get organization details and your role (session only) |
Organizations are created, updated and deleted in JinbaAuth; `POST`, `PATCH` and `DELETE` on these paths return `403` (`POST` returns `401` when called with an API key).
### ToolSet Routes
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/toolsets` | List toolsets |
| POST | `/v1/orgs/:orgId/toolsets` | Create toolset |
| GET | `/v1/orgs/:orgId/toolsets/:slug` | Get toolset |
| PATCH | `/v1/orgs/:orgId/toolsets/:slug` | Update toolset |
| DELETE | `/v1/orgs/:orgId/toolsets/:slug` | Delete toolset |
### Tool Routes
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/toolsets/:slug/tools` | List tools in a toolset |
| POST | `/v1/orgs/:orgId/toolsets/:slug/tools` | Create tool (`slug`, `name`, `description`, `code`) |
| GET | `/v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug` | Get tool |
| PATCH | `/v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug` | Update tool |
| DELETE | `/v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug` | Delete tool |
`inputSchema` and `outputSchema` are not request fields: whenever `code` is created or updated, the API extracts both schemas from the code's `input` / `output` definitions and rejects the request (`400`) if they cannot be extracted.
### Execution Routes
| Method | Endpoint | Description |
| - | - | - |
| POST | `/v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug/run` | Execute a published tool (`input`, optional `version`, optional `environmentSlug`) |
| POST | `/v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug/test` | Test a tool with draft code (`input`, optional `code` override, optional `environmentSlug`; session only, no credits consumed) |
### Version Routes
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions` | List versions with their 30-day run counts (`?environment=` selects the environment whose active version is reported) |
| POST | `/v1/orgs/:orgId/toolsets/:slug/versions` | Publish a new version (`version`, optional `releaseNotes`, `setAsPublished` default `true`, `environmentSlug` default `default`; session only) |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions/:version` | Get version details |
| GET | `/v1/orgs/:orgId/toolsets/:slug/versions/:version/export` | Download a published version as ZIP |
| PUT | `/v1/orgs/:orgId/toolsets/:slug/published-version` | Set the active version (`version`, `environmentSlug` default `default`) |
### Run History Routes
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/runs` | List runs (`?role=caller\|provider`, `?limit=1-100`, `?offset=`) |
| GET | `/v1/orgs/:orgId/runs/:runId` | Get run details (full details for the caller organization, limited for the provider) |
### Other Organization Routes
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/api-keys` | List API keys |
| POST | `/v1/orgs/:orgId/api-keys` | Create API key (`name`, `environmentSlug` default `default`; session only) |
| GET | `/v1/orgs/:orgId/api-keys/:keyId/reveal` | Reveal the full key (session only) |
| DELETE | `/v1/orgs/:orgId/api-keys/:keyId` | Delete API key (session only) |
| GET | `/v1/orgs/:orgId/members` | List members (session only) |
| GET | `/v1/orgs/:orgId/webhooks` | List webhooks (see [Webhooks](/en/pages/toolbox/developer/webhooks)) |
| GET | `/v1/orgs/:orgId/credits` | Get credit balance |
| GET | `/v1/orgs/:orgId/credits/transactions` | List credit transactions |
| POST | `/v1/orgs/:orgId/toolsets/:slug/packages` | Add or update a package (`name`, optional `version`) |
| GET / POST / PATCH / DELETE | `/v1/orgs/:orgId/toolsets/:slug/env` | Manage environment variables (`?environment=` / `environmentSlug`) |
| GET / POST / PATCH / DELETE | `/v1/orgs/:orgId/toolsets/:slug/environments` | Manage environment profiles |
| GET | `/v1/orgs/:orgId/toolsets/:slug/export` | Download the draft ToolSet as ZIP |
| POST | `/v1/orgs/:orgId/toolsets/:slug/import` | Import tools from a ZIP (multipart) |
### Public Routes
Public routes allow external consumers to execute tools using an API key, without requiring organization membership context. `:orgId` must be the provider organization's canonical ID (slugs are not accepted). Any valid API key can call a public ToolSet; a private ToolSet is only accessible with its own organization's key. Credits are charged to the caller's organization.
| Method | Endpoint | Description |
| - | - | - |
| POST | `/v1/public/:orgId/:toolsetSlug/run/:toolSlug` | Execute a tool (`input`); responds `200` on success, `500` when the tool execution fails |
| POST | `/v1/public/:orgId/:toolsetSlug/mcp` | MCP endpoint (JSON-RPC); requires MCP to be enabled on the ToolSet |
### Explore Routes
Explore routes are unauthenticated and allow browsing public toolsets.
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/explore/toolsets` | List public toolsets that have a published version (`?q=`, `?tag=`, `?limit=` up to 100, `?offset=`) |
| GET | `/v1/explore/toolsets/:orgId/:toolsetSlug` | Get a public toolset with its tools (schemas only, no code) and versions |
| GET | `/v1/explore/tags` | List popular tags |
## Request & Response Examples
### Execute a Tool
**Request**:
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/tools/post-message/run \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"input": {
"channel": "#general",
"text": "Hello from Jinba Toolbox!"
}
}'
```
**Response** (always `200`; check `success`):
```json theme={null}
{
"runId": "run_abc123",
"version": "1.2.0",
"success": true,
"output": {
"ts": "1234567890.123456",
"channel": "C01234567"
},
"logs": {
"stdout": [],
"stderr": []
},
"durationMs": 1234
}
```
When the tool fails, `success` is `false` and `error` (`{ name, message, traceback? }`) is set instead of `output`.
### Execute via Public Endpoint
The public response has the same shape but omits `logs`.
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/public/{orgId}/slack-tools/run/post-message \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"input": {
"channel": "#general",
"text": "Hello!"
}
}'
```
### Create a ToolSet
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"slug": "slack-tools",
"name": { "default": "Slack Tools" },
"description": { "default": "A collection of Slack integration tools" },
"sandbox": {
"provider": "e2b",
"language": "typescript",
"packages": [{ "name": "@slack/web-api" }],
"resources": { "timeout": 60000 }
},
"visibility": "private",
"mcpEnabled": false,
"tags": ["slack", "messaging"]
}'
```
`visibility` is `private` or `public`; `resources.timeout` is in milliseconds (max `3600000`, default 15 minutes when omitted).
### Publish a Version
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/versions \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"version": "1.3.0",
"releaseNotes": "Added thread reply support"
}'
```
The new version becomes the active version of the `default` environment unless you pass `"setAsPublished": false` or another `environmentSlug`. Publishing requires a signed-in session.
## Error Handling
The API uses **RFC 9457 Problem Details** format for errors:
```json theme={null}
{
"type": "not-found",
"title": "Not Found",
"status": 404,
"detail": "ToolSet 'unknown-toolset' not found"
}
```
### Common Status Codes
| Status | Meaning |
| - | - |
| 200 | Success |
| 201 | Created |
| 400 | Bad Request -- invalid input or missing required fields |
| 401 | Unauthorized -- missing or invalid API key |
| 402 | Payment Required -- the caller organization has insufficient credits |
| 403 | Forbidden -- API key lacks permission for this action |
| 404 | Not Found -- resource does not exist |
| 409 | Conflict -- e.g. the version number already exists |
## Best Practices
* **Store API keys in environment variables** -- never hard-code them in source code or commit them to version control.
* **Implement retry logic with exponential backoff** for transient failures.
* **Use the public endpoint** (`/v1/public/...`) when integrating external systems that only need to execute tools.
* **Pin a specific version** in the run request body when reproducibility matters.
## Related
* [SDK](/en/pages/toolbox/developer/sdk) -- Type-safe client library wrapping these endpoints
* [MCP Integration](/en/pages/toolbox/developer/mcp) -- Model Context Protocol endpoints
* [Webhooks](/en/pages/toolbox/developer/webhooks) -- Receive event notifications for tool runs and more
# Jinba Flow Integration
Source: https://docs.jinba.io/en/pages/toolbox/developer/jinba-flow
Register your Jinba Toolbox organization as a tool registry in Jinba Flow so that workflows can call your tools
## Overview
Jinba Flow can load tools from an **external tool registry**. Jinba Toolbox exposes every published ToolSet of an organization through a registry manifest, so a single registration makes all of them available as workflow steps. Executions started from Jinba Flow run in the ToolSet's sandbox like any other run and are metered in [credits](/en/pages/toolbox/console/credits).
```mermaid theme={null}
graph LR
A[Jinba Flow workflow] -->|manifest| B[Toolbox registry endpoint]
A -->|execute| C[Toolbox public execute endpoint]
C --> D[ToolSet sandbox]
```
## One-Click Setup
**1. Publish at least one ToolSet**
The **Connect JinbaFlow** button on the **Tool Sets** list page stays disabled, with the tooltip "Publish a tool set to connect", until at least one ToolSet has a version published to its `default` environment. An organization that publishes only to other environment profiles has to use the manual setup below.
**2. Click Connect JinbaFlow**
A **Connect JinbaFlow** dialog asks for the **Environment** the connection should use. The hint explains that a new API key is created in the organization if no matching one exists. Click **Connect**.
**3. Save the registry in Jinba Flow**
Jinba Toolbox creates (or reuses) an API key named `JinbaFlow Connection ({environment})` and opens Jinba Flow's workspace settings in a new tab, on the **Tool Access** tab, with the **Add Registry** dialog pre-filled: **Name** (your organization name), **Manifest URL** and **API Key**. Review the values and save.
The button is only shown on deployments where Jinba Flow is configured; in the hosted service it opens `https://flow.jinba.io`.
## Manual Setup
**1. Create an API key**
In Jinba Toolbox, create an API key for the environment Jinba Flow should run against ([API Key Management](/en/pages/toolbox/console/api-keys)).
**2. Add the registry in Jinba Flow**
Open the workspace **Settings**, select the **Tool Access** tab and, under **External Tool Registries**, click **Add Registry**. Fill in:
* **Name** -- any label, for example your organization name
* **Manifest URL** -- `https://toolbox-api.jinba.io/v1/public/jinbaflow/manifest`
* **API Key** -- the key from the previous step
**3. Sync**
Save the registry. Use **Sync** on the registry entry whenever you publish new ToolSets or versions, and **Activate** / **Deactivate** to control whether its tools are offered in workflows.
> [!NOTE]
>
> The **Tool Access** tab is only visible to workspace members who may view tool access rules, and **Add Registry** requires permission to create registries. Ask a workspace administrator if you do not see them.
## What the Registry Exposes
The manifest is built for the organization that owns the API key; the URL carries no organization ID.
| Endpoint | Authentication | Content |
| - | - | - |
| `GET /v1/public/jinbaflow/manifest` | API key (Bearer) | Every ToolSet of the key's organization that has a published version for the key's environment and at least one tool. Used by the one-click setup |
| `GET /v1/orgs/:orgId/jinbaflow/manifest` | Console session or the organization's API key | Same, for the signed-in user's organization; falls back to the latest version when nothing is published |
| `POST /v1/public/jinbaflow/execute` | API key (Bearer) | Execute endpoint referenced by the manifest |
* **All eligible ToolSets are included**, private and public alike. There is no per-ToolSet selection; to keep a ToolSet out of Jinba Flow, leave it unpublished for that environment or publish it under a different environment profile than the one the key uses.
* A ToolSet without a published version, without an environment profile matching the key, or with no tools is skipped. When nothing qualifies the manifest returns `400` with "No published toolsets".
* The environment profile chosen for the key decides which published version and which environment variables are used.
## Credits
Each successful execution from Jinba Flow consumes one credit from the organization that owns the API key.
## Related
* [MCP Integration](/en/pages/toolbox/developer/mcp) -- the equivalent for MCP-capable agents and Jinba App
* [Versioning & Publishing](/en/pages/toolbox/advanced/versioning) -- what "published" means per environment
* [API Key Management](/en/pages/toolbox/console/api-keys) -- environments and key lifecycle
# MCP Integration
Source: https://docs.jinba.io/en/pages/toolbox/developer/mcp
Connect AI agents to Jinba Toolbox via the Model Context Protocol (MCP)
## Overview
Jinba Toolbox provides native **Model Context Protocol (MCP)** endpoints that expose your toolsets as MCP-compatible servers. This allows AI agents and LLM-based applications -- such as Claude Desktop, Cursor, and custom agent frameworks -- to discover and execute your tools through a standardized JSON-RPC interface.
Each MCP-enabled toolset becomes an MCP server (Streamable HTTP transport). The endpoint accepts JSON-RPC requests conforming to the MCP specification, returns tool definitions and executes tools. It serves the toolset's active published version -- publish a version first.
## MCP Endpoints
Jinba Toolbox offers two types of MCP endpoints:
> [card] Organization MCP
>
> For internal use within your organization. Requires your organization's API key (or a signed-in session). Falls back to the latest version if the environment has no active version.
>
> ```
> POST /v1/orgs/:orgId/toolsets/:slug/mcp
> ```
> [card] Public MCP
>
> For external consumers accessing public toolsets. Requires any valid API key; the credit cost is charged to the caller's organization. `:orgId` is the provider organization's canonical ID.
>
> ```
> POST /v1/public/:orgId/:toolsetSlug/mcp
> ```
## Enabling MCP for a ToolSet
MCP must be enabled on a per-toolset basis. You can toggle it in the web console or through the API:
```bash theme={null}
curl -X PATCH https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools \
-H "Authorization: Bearer jtb_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "mcpEnabled": true }'
```
Or via the SDK:
```typescript theme={null}
await client.updateToolSet("slack-tools", { mcpEnabled: true });
```
## Connecting AI Agents
### Claude Desktop
The console's **MCP Connection** card (Tools tab of an MCP-enabled ToolSet) provides a ready-made Claude Desktop configuration that bridges the Streamable HTTP endpoint through the `supergateway` stdio bridge. Add it to `claude_desktop_config.json` and replace `$JINBA_API_KEY` with your key:
```json theme={null}
{
"mcpServers": {
"my-org-slack-tools": {
"command": "npx",
"args": [
"-y",
"supergateway",
"--streamableHttp",
"https://toolbox-api.jinba.io/v1/orgs/{orgId}/toolsets/slack-tools/mcp",
"--header",
"Authorization: Bearer $JINBA_API_KEY"
]
}
}
}
```
For a public ToolSet the card uses the `/v1/public/{orgId}/slack-tools/mcp` URL instead.
### Cursor
In Cursor's MCP settings, add a new server using the streamable HTTP transport:
```json theme={null}
{
"mcpServers": {
"slack-tools": {
"url": "https://toolbox-api.jinba.io/v1/public/{orgId}/slack-tools/mcp",
"headers": {
"Authorization": "Bearer jtb_xxxxxxxxxxxx"
}
}
}
}
```
### Jinba App
The **Connect with JinbaApp** button on the same card creates (or reuses) an API key for the chosen environment and opens Jinba App with the MCP server pre-configured.
### Custom Agent Integration
If you are building a custom agent, connect to the MCP endpoint using any MCP-compatible client library. The endpoint supports JSON-RPC over HTTP.
**Example using the MCP TypeScript SDK:**
```typescript theme={null}
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const transport = new StreamableHTTPClientTransport(
new URL("https://toolbox-api.jinba.io/v1/public/{orgId}/slack-tools/mcp"),
{
requestInit: {
headers: {
Authorization: "Bearer jtb_xxxxxxxxxxxx",
},
},
}
);
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(transport);
// List available tools
const { tools } = await client.listTools();
console.log(tools);
// Call a tool
const result = await client.callTool({
name: "post-message",
arguments: {
channel: "#general",
text: "Hello from my AI agent!",
},
});
console.log(result);
```
## How It Works
**1. Agent discovers tools**
The agent sends a `tools/list` JSON-RPC request to the MCP endpoint. Jinba Toolbox responds with the list of tools in the toolset -- the tool slug as `name`, its display name as `title`, its description, and its input and output schemas.
**2. Agent calls a tool**
When the agent needs to use a tool, it sends a `tools/call` request with the tool name and arguments. The arguments are validated against the tool's input schema, and the caller organization's credit balance is checked (one credit per call).
**3. Sandbox execution**
Jinba Toolbox executes the tool code in an isolated sandbox environment (E2B or Daytona). The active published version of the tool is used, and a Run record is created.
**4. Result returned**
The tool's output (or an error) is returned to the agent as JSON text content in the MCP response; `isError` is set when the execution failed. Logs are available on the run's detail page, not in the MCP response.
## Organization vs. Public Endpoints
| Aspect | Organization Endpoint | Public Endpoint |
| - | - | - |
| URL pattern | `/v1/orgs/:orgId/toolsets/:slug/mcp` | `/v1/public/:orgId/:toolsetSlug/mcp` |
| Authentication | Your organization's API key or session | Any organization's API key |
| Access scope | Your own private and public toolsets | Public toolsets of any organization (private ones only with the owning organization's key) |
| Use case | Internal agents, CI/CD | External consumers, shared agents |
## Authentication
Both MCP endpoints require a Bearer token in the `Authorization` header:
```
Authorization: Bearer jtb_xxxxxxxxxxxx
```
The API key determines:
* Which organization the request is associated with (the caller organization recorded on the run)
* Which organization's credits are consumed
* Which ToolSet environment (variables and active version) is used
## Best Practices
* **Enable MCP selectively** -- only activate MCP on toolsets that you intend to expose to AI agents.
* **Use the public endpoint** for external integrations and the organization endpoint for internal workflows.
* **Monitor usage** through the run history API to track which tools agents are calling and how frequently.
* **Publish a version** before exposing a toolset via MCP -- the endpoint executes the published version, not the draft.
* **Provide clear tool descriptions** -- AI agents rely on tool names and descriptions to decide which tool to invoke.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Full endpoint reference
* [SDK](/en/pages/toolbox/developer/sdk) -- Programmatic access via the TypeScript SDK
* [Versioning & Publishing](/en/pages/toolbox/advanced/versioning) -- How published versions are resolved
# SDK
Source: https://docs.jinba.io/en/pages/toolbox/developer/sdk
Use the @jinba-toolbox/sdk package to interact with Jinba Toolbox from TypeScript and JavaScript applications
## Overview
The `@jinba-toolbox/sdk` package provides a type-safe client library for consuming tools registered in Jinba Toolbox. It wraps the REST API with convenient methods for listing toolsets, executing tools, managing versions, and retrieving run history.
**Target consumers:**
* AI agents executing tools
* CLI tools for automation
* Third-party applications integrating with Jinba Toolbox
* Developers building on Jinba Toolbox
## Installation
```bash theme={null}
# npm
npm install @jinba-toolbox/sdk
# pnpm
pnpm add @jinba-toolbox/sdk
# yarn
yarn add @jinba-toolbox/sdk
```
## Quick Start
**1. Import and create a client**
```typescript theme={null}
import { createClient } from "@jinba-toolbox/sdk";
const client = createClient({
apiKey: process.env.JINBA_TB_API_KEY!,
organizationId: "org-id", // optional default
});
```
**2. List your toolsets**
```typescript theme={null}
const toolSets = await client.listToolSets();
console.log(toolSets);
```
**3. Execute a tool**
```typescript theme={null}
const result = await client.run("slack-tools", "post-message", {
channel: "#general",
text: "Hello from Jinba Toolbox!",
});
console.log(result.output);
// { ts: "1234567890.123456", channel: "C01234567" }
```
## Client Configuration
The `createClient` function accepts a `JinbaTBClientConfig` object:
```typescript theme={null}
interface JinbaTBClientConfig {
/** API base URL (default: https://toolbox-api.jinba.dev) */
baseUrl?: string;
/** API key for authentication */
apiKey: string;
/** Default organization ID (optional, can be overridden per request) */
organizationId?: string;
/** Request timeout in milliseconds (default: 30000) */
timeout?: number;
}
```
> [!NOTE]
>
> The SDK's built-in default `baseUrl` is `https://toolbox-api.jinba.dev` (the staging API). Set `baseUrl` to `https://toolbox-api.jinba.io` explicitly to talk to the production Toolbox.
**Example** with all options:
```typescript theme={null}
const client = createClient({
baseUrl: "https://toolbox-api.jinba.io",
apiKey: "jtb_xxxxxxxxxxxx",
organizationId: "org_abc123",
timeout: 60000,
});
```
If you set `organizationId` in the constructor, you can omit it from individual method calls. Every method also accepts an optional `orgId` parameter to override the default.
## API Reference
### Organizations
```typescript theme={null}
// List organizations the authenticated user belongs to
const orgs = await client.listOrganizations();
// Returns: OrganizationWithRole[]
// Get organization details
const org = await client.getOrganization("org-id");
// Returns: Organization
```
> [!WARNING]
>
> `listOrganizations()` and `getOrganization()` call endpoints that require a signed-in user session. With an API key (the only credential the SDK sends) they fail with `JinbaTBError` status `401`.
### ToolSets
```typescript theme={null}
// List toolsets in an organization
const toolSets = await client.listToolSets();
// Returns: ToolSet[]
// Get a toolset by slug (includes tools)
const toolSet = await client.getToolSet("slack-tools");
// Returns: ToolSet & { tools: Tool[] }
// Create a new toolset
const newToolSet = await client.createToolSet({
slug: "slack-tools",
name: { default: "Slack Tools" },
description: { default: "Slack integration tools" },
sandbox: {
provider: "e2b",
language: "typescript",
packages: [{ name: "@slack/web-api" }],
resources: { timeout: 60000 },
},
visibility: "private",
tags: ["slack"],
});
// Update a toolset
await client.updateToolSet("slack-tools", {
visibility: "public",
tags: ["slack", "messaging"],
});
// Delete a toolset
await client.deleteToolSet("slack-tools");
```
### Tools
```typescript theme={null}
// List tools in a toolset
const tools = await client.listTools("slack-tools");
// Returns: Tool[]
// Get a tool by slug
const tool = await client.getTool("slack-tools", "post-message");
// Returns: Tool
// Create a new tool
// inputSchema / outputSchema are part of the SDK type but ignored by the API:
// both schemas are extracted from the `input` / `output` definitions in `code`.
const newTool = await client.createTool("slack-tools", {
slug: "post-message",
name: { default: "Post Message" },
description: { default: "Post a message to a Slack channel" },
inputSchema: { type: "object", properties: {} },
outputSchema: { type: "object", properties: {} },
code: `import { z } from "zod";
export const input = z.object({
channel: z.string().describe("Channel name or ID"),
text: z.string().describe("Message text"),
});
export const output = z.object({
ts: z.string(),
channel: z.string(),
});
export async function run(data: z.infer) {
// tool implementation code
return { ts: "1234567890.123456", channel: data.channel };
}`,
});
// Update a tool
await client.updateTool("slack-tools", "post-message", {
description: { default: "Post a message to any Slack channel" },
});
// Delete a tool
await client.deleteTool("slack-tools", "post-message");
```
### Execution
```typescript theme={null}
// Execute a published tool
const result = await client.run("slack-tools", "post-message", {
channel: "#general",
text: "Hello!",
});
// Returns: RunResult
console.log(result.success); // true
console.log(result.output); // { ts: "...", channel: "..." }
console.log(result.durationMs); // 1234
// Execute a specific version
const result = await client.run(
"slack-tools",
"post-message",
{ channel: "#general", text: "Hello!" },
{ version: "1.2.0" }
);
// Test a tool (runs draft code, no published version required)
// Note: the test endpoint requires a signed-in user session and returns 401
// when called with an API key; use the console's Test panel instead.
const testResult = await client.test("slack-tools", "post-message", {
channel: "#test",
text: "Testing...",
});
```
`run()` sends `{ input, version }` to the organization run endpoint; the organization ID must come from the constructor or `options.orgId`.
### Versions
```typescript theme={null}
// List versions of a toolset
const versions = await client.listVersions("slack-tools");
// Returns: ToolSetVersion[]
// Publish a new version
// Note: publishing requires a signed-in user session (the API records the
// publisher); with an API key the call fails. Publish from the console instead.
const version = await client.publishVersion("slack-tools", {
version: "1.3.0",
releaseNotes: "Added thread reply support",
});
// Returns: ToolSetVersion
```
### Run History
```typescript theme={null}
// List runs in an organization
const runs = await client.listRuns();
// Returns: Run[]
// Get run details
const run = await client.getRun("run_abc123");
// Returns: Run
```
## Key Types
### RunResult
The object returned from `run()` and `test()`:
```typescript theme={null}
interface RunResult {
runId: string;
version: string;
success: boolean;
output?: Record;
error?: { name: string; message: string; traceback?: string };
logs?: { stdout: string[]; stderr: string[] };
durationMs?: number;
}
```
### ToolSet
```typescript theme={null}
interface ToolSet {
id: string;
organizationId: string;
slug: string;
name: LocalizedText;
description: LocalizedText;
icon?: string | null;
tags: string[];
sandbox: SandboxConfig;
visibility: "public" | "private" | "restricted"; // the API only returns "public" | "private"
mcpEnabled: boolean;
latestVersion?: string | null;
publishedVersion?: string | null;
createdAt: string;
updatedAt: string;
publishedAt?: string | null;
}
```
### Tool
```typescript theme={null}
interface Tool {
id: string;
toolSetId: string;
slug: string;
name: LocalizedText;
description: LocalizedText;
inputSchema: JSONSchema;
outputSchema: JSONSchema;
code: string;
entrypoint?: string | null;
createdAt: string;
updatedAt: string;
}
```
## Error Handling
The SDK throws `JinbaTBError` for non-2xx responses:
```typescript theme={null}
import { JinbaTBError } from "@jinba-toolbox/sdk";
try {
const result = await client.run("my-toolset", "my-tool", { input: "data" });
} catch (error) {
if (error instanceof JinbaTBError) {
console.error(`Status: ${error.statusCode}`);
console.error(`Message: ${error.message}`);
console.error(`Details: ${JSON.stringify(error.details)}`);
}
}
```
A 408 status code is thrown when a request exceeds the configured timeout. Because the API answers with RFC 9457 Problem Details (`detail`, not `error`), `error.message` is usually `Request failed with status `; inspect `statusCode` to branch on the cause (for example `402` for insufficient credits).
## Best Practices
* **Set a default `organizationId`** in the constructor to avoid passing it to every method.
* **Use environment variables** for the API key -- never hard-code credentials.
* **Handle `JinbaTBError`** to distinguish between client errors (4xx) and server errors (5xx).
* **Increase `timeout`** for tool executions that run complex sandbox workloads.
* **Pin a version** when calling `run()` if your application depends on deterministic behavior.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Full endpoint reference
* [MCP Integration](/en/pages/toolbox/developer/mcp) -- Use toolsets as MCP servers for AI agents
* [Versioning & Publishing](/en/pages/toolbox/advanced/versioning) -- Understand the version lifecycle
# Webhooks
Source: https://docs.jinba.io/en/pages/toolbox/developer/webhooks
Receive real-time event notifications from Jinba Toolbox via webhooks
## Overview
Webhooks allow you to receive HTTP notifications whenever significant events occur in your organization. Instead of polling the API, you register a URL and Jinba Toolbox pushes event payloads to it in real time.
Webhooks are configured **per organization** (by Owners and Admins) and can subscribe to one or more event types.
## Event Types
| Event | Description |
| - | - |
| `tool.run.completed` | A tool execution finished successfully |
| `tool.run.failed` | A tool execution failed |
| `toolset.published` | A new toolset version was published |
Run events are dispatched for executions through the organization run endpoint (`POST /v1/orgs/:orgId/toolsets/:slug/tools/:toolSlug/run`, which the SDK's `run()` uses). Test runs, public-endpoint runs and MCP calls do not trigger webhooks.
## Setting Up Webhooks
**1. Create a webhook endpoint**
Set up an HTTP endpoint on your server that can receive POST requests. The endpoint must return a `2xx` status code to acknowledge receipt.
**2. Register the webhook**
Use the API or the web console (**Webhooks** in the organization sidebar, **Create Webhook**) to register your endpoint URL and select the events you want to subscribe to. Registering and testing need an Owner or Admin session token; an API key (Member level) gets `403`.
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/webhooks \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhooks/jinba",
"events": ["tool.run.completed", "tool.run.failed"]
}'
```
**3. Store the signing secret**
When you create a webhook, a signing secret is generated and returned once in the creation response (the console shows it in the **Webhook Created** dialog). Store it securely -- you will use it to verify incoming payloads. Later reads only return a `secretPreview`.
**4. Send a test event**
Verify your endpoint is working by sending a test event (the console has a play button per webhook). The test payload is a `tool.run.completed` event with `data: { "test": true, "message": "This is a test webhook delivery" }`:
```bash theme={null}
curl -X POST https://toolbox-api.jinba.io/v1/orgs/{orgId}/webhooks/{webhookId}/test \
-H "Authorization: Bearer "
```
## Webhook Configuration
Each webhook has the following properties:
```typescript theme={null}
interface Webhook {
id: string;
organizationId: string;
url: string; // Destination URL
events: string[]; // Subscribed event types
secret: string; // HMAC signing secret (returned on creation only)
enabled: boolean; // Whether the webhook is active
createdAt: Date;
updatedAt: Date;
}
```
## Payload Format
Every webhook delivery is an HTTP `POST` with `Content-Type: application/json`, an `X-Webhook-Event` header carrying the event name, an `X-Webhook-Signature` header (see below) and a JSON payload with the following structure:
```json theme={null}
{
"event": "tool.run.completed",
"timestamp": "2026-02-01T12:00:00.000Z",
"data": {
"runId": "run_abc123",
"toolSetSlug": "slack-tools",
"toolSlug": "post-message",
"status": "success",
"durationMs": 1234
}
}
```
### Event-Specific Payloads
**`tool.run.completed`**
```json theme={null}
{
"event": "tool.run.completed",
"timestamp": "2026-02-01T12:00:00.000Z",
"data": {
"runId": "run_abc123",
"toolSetSlug": "slack-tools",
"toolSlug": "post-message",
"status": "success",
"durationMs": 1234
}
}
```
**`tool.run.failed`**
```json theme={null}
{
"event": "tool.run.failed",
"timestamp": "2026-02-01T12:05:00.000Z",
"data": {
"runId": "run_def456",
"toolSetSlug": "slack-tools",
"toolSlug": "post-message",
"status": "failed",
"error": "channel_not_found",
"durationMs": 567
}
}
```
`error` is the error message string.
**`toolset.published`**
```json theme={null}
{
"event": "toolset.published",
"timestamp": "2026-02-01T10:00:00.000Z",
"data": {
"toolSetSlug": "slack-tools",
"version": "1.3.0",
"toolCount": 4,
"releaseNotes": "Added thread reply support"
}
}
```
## Signature Verification
Every webhook request includes an `X-Webhook-Signature` header containing an HMAC-SHA256 signature of the request body, computed with your webhook's signing secret.
```
X-Webhook-Signature: sha256=a1b2c3d4e5f6...
```
**Verify the signature** on your server to ensure payloads have not been tampered with:
```typescript theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";
function verifyWebhookSignature(
payload: string,
signature: string,
secret: string
): boolean {
const expected = "sha256=" + createHmac("sha256", secret)
.update(payload)
.digest("hex");
return timingSafeEqual(
Buffer.from(signature),
Buffer.from(expected)
);
}
// In your request handler
const isValid = verifyWebhookSignature(
requestBody,
request.headers["x-webhook-signature"],
process.env.WEBHOOK_SECRET!
);
if (!isValid) {
return new Response("Invalid signature", { status: 401 });
}
```
## Webhook Management API
| Method | Endpoint | Description |
| - | - | - |
| GET | `/v1/orgs/:orgId/webhooks` | List webhooks |
| POST | `/v1/orgs/:orgId/webhooks` | Create webhook (`url`, `events`); returns the `secret` |
| GET | `/v1/orgs/:orgId/webhooks/:webhookId` | Get webhook |
| PATCH | `/v1/orgs/:orgId/webhooks/:webhookId` | Update webhook (`url`, `events`, `enabled`) |
| DELETE | `/v1/orgs/:orgId/webhooks/:webhookId` | Delete webhook |
| POST | `/v1/orgs/:orgId/webhooks/:webhookId/test` | Send test event; responds `502` if your endpoint does not answer `2xx` |
Creating, updating, deleting and testing webhooks requires the Owner or Admin role; API keys (Member level) can only list them.
## Delivery and Retry Behavior
Each delivery waits up to 10 seconds for a response. A `2xx` status code counts as success. If your endpoint does not return `2xx`, the delivery is recorded as failed with a retry time (1 minute, then 5 minutes, at most 3 attempts), but no background job currently processes those retries, so in practice each event is delivered once. Treat a failed delivery as lost and reconcile from the Runs page or API if you need it. The webhook itself is never disabled automatically; you can enable or disable it with the **Active** / **Disabled** toggle in the console or via `PATCH` with `enabled`.
## Best Practices
* **Always verify the signature** before processing a payload to prevent tampering.
* **Return a `200` status quickly** -- perform any heavy processing asynchronously after acknowledging the webhook.
* **Use idempotent processing** -- webhook deliveries may arrive more than once due to retries. Use the `runId` or event timestamp to deduplicate.
* **Monitor webhook health** -- use the test button to verify endpoints and investigate delivery failures.
* **Subscribe only to needed events** -- reduce noise by selecting only the events your integration requires.
## Related
* [REST API](/en/pages/toolbox/developer/api) -- Full endpoint reference
* [Security & Access Control](/en/pages/toolbox/advanced/security) -- Authentication and authorization details
# Jinba Toolbox FAQ
Source: https://docs.jinba.io/en/pages/toolbox/faq
Frequently asked questions about Jinba Toolbox
## Pricing
> [accordion] Is Jinba Toolbox free to use?
>
> A personal organization starts with 500 free credits. One successful tool execution costs one credit; failed runs and test runs from the editor are free. Once the free credits are used up, credits are purchased in packages from the Credits page ([Credits](/en/pages/toolbox/console/credits)).
> [accordion] Who pays when I run another organization's public tool?
>
> The organization that executes the tool. Credits are always deducted from the caller's balance; the provider of a public ToolSet is never charged.
> [accordion] Do credits expire?
>
> No. Credits never expire.
## Technical
> [accordion] Which languages can I write tools in?
>
> Python and TypeScript. The language is chosen when the ToolSet is created and cannot be changed afterwards.
> [accordion] Can I use third-party libraries?
>
> Yes. Add them on the ToolSet's **Packages** tab, optionally pinning a version. Packages are installed into the sandbox; for TypeScript ToolSets `zod` and `tsx` are always available. Publish a new version for API calls to pick up changed packages ([ToolSet Management](/en/pages/toolbox/console/toolsets#managing-packages)).
> [accordion] How long may a tool run?
>
> The timeout is set per ToolSet. The default is 900 seconds (15 minutes) and the maximum is 3,600 seconds (1 hour).
> [accordion] How do I pass API keys and other secrets to my tools?
>
> As environment variables on the ToolSet's **Environment** tab, with the **Secret** switch on. Secret values are encrypted and masked, and are available to the code through `os.environ` or `process.env` ([Managing Environment Variables](/en/pages/toolbox/console/toolsets#managing-environment-variables)).
## Troubleshooting
> [accordion] My tool is not working
>
> 1. Open **Runs** and check the failed run's error, stdout and stderr ([Execution & Testing](/en/pages/toolbox/console/execution)).
> 2. Verify the input and the environment variables of the environment profile the call used.
> 3. Reproduce the problem from the tool editor's Test panel; after a failed test, **Auto Fix Error** in the Coding Agent panel proposes a fix ([Tool Development](/en/pages/toolbox/console/tool-development#ai-copilot)).
> [accordion] My API key is rejected
>
> * Make sure the full key was copied. The list only shows a masked prefix; for keys created after key encryption was introduced, the copy button next to it retrieves the full key again.
> * Check that the key belongs to the organization whose ToolSet you are calling, or that the ToolSet is public.
> * Check what is published. A call to your own organization's ToolSet runs the version published for the key's environment profile; a call to another organization's public ToolSet runs the version in the provider's `default` environment. The public endpoints refuse the call with `400` and "No published version available" when nothing is published there.
> * If in doubt, create a new key and delete the old one ([API Key Management](/en/pages/toolbox/console/api-keys)).
> [accordion] I cannot call a private ToolSet
>
> A private ToolSet can only be executed with an API key of the organization that owns it. Other organizations receive an error even with a valid key. Make the ToolSet public, or use a key from the owning organization.
> [accordion] My ToolSet does not appear in Jinba Flow
>
> The registry only lists ToolSets that have a published version for the API key's environment and contain at least one tool. Publish a version for that environment, then **Sync** the registry in Jinba Flow ([Jinba Flow Integration](/en/pages/toolbox/developer/jinba-flow)).