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).
Step 3: Crawl and use the connector
Once the Custom connector is saved, the system crawls it according to your crawling settings. All articles are fetched and appear in the Knowledge Base like any other content source—you can view, review, and manage them as described in Connecting your Knowledge Base. After articles are published and deployed, GenerativeAgent uses the new content when answering questions, the same way it uses other Knowledge Base sources.Viewing and managing articles
Articles imported from a Custom Knowledge Base Connector are shown in the Knowledge Base UI with the connector indicated as the content source. You get the same article-level controls as for other sources: edit metadata, set refresh frequency, search, and filter. Content source and deployment status are visible so you can confirm which articles came from your custom connector.Debugging your connector
All executions of your API Connection for the Knowledge Base are recorded in the API log. In the log view. You can inspect request/response data, execution time, and errors. Use this to troubleshoot pagination, authentication, or response shape issues.Next steps
Connecting your Knowledge Base
Overview of importing, syncing, and deploying your Knowledge Base
Connect Your APIs
Create and manage API Connections
Add via API
Submit individual articles via the Knowledge Base API
Knowledge Base API Reference
Submission API and article format reference