We provide example implementations for popular KB platforms such as Salesforce; reach out to your ASAPP team for access.
How it works
When the system crawls your Custom KB Connector, it runs your API Connection repeatedly until all articles are fetched:- First call — The connection is invoked with empty or undefined
paginationParams. - Your response — You return a batch of articles and, if there are more, a
nextParamsobject (e.g., page number, cursor, or offset). - Next call — The system invokes your connection again, passing that
nextParamsaspaginationParams. - Repeat — Steps 2–3 continue until you return that there are no further pages.
- Ingestion — All articles from every call are collected and submitted into the Knowledge Base for review and deployment.
paginationParams and nextParams is up to you; the system passes them through so you can support any pagination style your KB API uses.
Articles from Custom KB Connectors go through the same review and deployment process as other imported content. You can enable auto-deploy on the connector if you want updates to go live without manual review.
Before you begin
- Get your API Key and Secret, with access to GenerativeAgent and Knowledge Base as needed.
- Your knowledge base must have a publically accessible API that supports listing/fetching articles in a way that can be adapted to pagination (e.g., by page, cursor, or offset).
Step 1: Create an API connection for the Knowledge Base
Create an API Connection that fetches articles from your knowledge base. The connection must implement the Knowledge Base Connector request/response interface so the system can crawl all articles and handle pagination.Create or edit an API Connection
In API Integration Hub → API Connections, create a new connection or open an existing one to edit. You will implement the KB Connector interface in this connection.
Implement the connector interface
Implement the request/response contract below. Your logic (JSONata or code) should call your knowledge base API and map its data into the required response shape. The implementation must conform to this contract:
On the first execution,
Each article must include a url. This URL is the identifier for that article during crawling: the system uses it to recognize when an article was already ingested, so it can update the existing one instead of creating a duplicate.When
Request interface
Request interface
Request: The connection receives a single argument with this shape:
paginationParams is undefined or {}. On each subsequent call, it contains the nextParams you returned in the previous response.Response interface
Response interface
Response: Return an object with this shape:
hasMore is true, you must provide nextParams with whatever your API needs for the next page (e.g., { page: 2 } or { cursor: "abc123" }). When hasMore is false, the crawl stops. Save and test the API Connection before moving to Step 2.The system submits these articles to the Knowledge Base; they will go through the normal review and approval flow unless the connector is set to auto-deploy.- First call:
paginationParamsis empty or undefined. - Your connection returns
articles,hasMore, andnextParams. - If
hasMoreistrue, the system calls again withpaginationParamsset to yournextParams, and repeats untilhasMoreisfalse. - All collected articles are submitted to the Knowledge Base and follow the standard import and review process.
Step 2: Add the Custom connector
Configure the Custom Knowledge Base Connector so GenerativeAgent knows which API Connection to use and how often to crawl it.Open Add Source on the Knowledge Bases page
- Navigate to GenerativeAgent → Knowledge in the ASAPP dashboard.
- Click Add content (or the equivalent control to add a source).
- From the Add Source dropdown, select Custom Knowledge Base Connector.
Fill in the connector form
In the Custom Knowledge Base Connector form, provide:
- Name (required): A name for this connector (e.g., “Internal Wiki KB”).
- Description (optional): Short description of the source.
- API Connection (required): Select the API Connection you created in Step 1. Only connections that implement the KB Connector interface are eligible. The form validates that the selected connection conforms to the required interface.
- Crawling settings: Use the same crawling and deployment options as other Knowledge Base sources (e.g., sync frequency, whether updates require review or auto-deploy).