Skip to content

Commit 8a57d63

Browse files
committed
fix(docsbot): add piece category and custom api call
1 parent 831ced9 commit 8a57d63

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pieces/community/docsbot/src/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ import { createBot } from './lib/actions/create-bot';
44
import { createSource } from './lib/actions/create-source';
55
import { findBot } from './lib/actions/find-bot';
66
import { uploadSourceFile } from './lib/actions/upload-source-file';
7-
import { docsbotAuth } from './lib/common';
7+
import { docsbotAuth, docsbotCommon } from './lib/common';
8+
import { createCustomApiCallAction } from '@activepieces/pieces-common';
9+
import { PieceCategory } from '@activepieces/shared';
810

911
export const docsbot = createPiece({
1012
displayName: 'DocsBot',
1113
description:
1214
'DocsBot AI allows you to build AI-powered chatbots that pull answers from your existing documentation and content. This integration enables workflows to ask DocsBot questions and update its training sources dynamically.',
1315
auth: docsbotAuth,
1416
minimumSupportedRelease: '0.36.1',
17+
categories:[PieceCategory.ARTIFICIAL_INTELLIGENCE,PieceCategory.PRODUCTIVITY],
1518
logoUrl: 'https://cdn.activepieces.com/pieces/docsbot.png',
1619
authors: ['LuizDMM'],
1720
actions: [
@@ -20,6 +23,15 @@ export const docsbot = createPiece({
2023
uploadSourceFile,
2124
createBot,
2225
findBot,
26+
createCustomApiCallAction({
27+
baseUrl: () => docsbotCommon.baseUrl,
28+
auth: docsbotAuth,
29+
authMapping: async (auth) => {
30+
return {
31+
Authorization: `Bearer ${auth}`,
32+
};
33+
},
34+
}),
2335
],
2436
triggers: [],
2537
});

0 commit comments

Comments
 (0)