index.ts•961 B
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { askChatbotAction } from './lib/actions/ask-chatbot';
import { PieceCategory } from '@activepieces/shared';
export const afforaiAuth = PieceAuth.SecretText({
displayName: 'API Key',
required: true,
description: `
To obtain your API Key, follow these steps:
1. Log in to your Afforai account.
2. Navigate to **API** section on left panel.
3. On the top-right, you can find you API key.
`,
});
export const afforai = createPiece({
displayName: 'Afforai',
description:
'Helps you search, summarize, and translate knowledge from hundreds of documents to help you produce trustworthy research.',
auth: afforaiAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/afforai.png',
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
authors: ["kishanprmr","abuaboud"],
actions: [askChatbotAction],
triggers: [],
});