Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.1 KB
Raw Blame
import { createPiece } from '@activepieces/pieces-framework';
import { ChatAidAuth } from './lib/common/auth';
import { addCustomSources } from './lib/actions/add-custom-sources';
import { askQuestions } from './lib/actions/ask-questions';
import { getCustomSourceById } from './lib/actions/get-custom-source-by-id';
import { PieceCategory } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { BASE_URL } from './lib/common/client';

export const chatAid = createPiece({
  displayName: 'Chat Aid',
  description: 'AI-powered assistant for your knowledge base.',
  auth: ChatAidAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/chat-aid.png',
  categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
  authors: ['sanket-a11y'],
  actions: [
    addCustomSources,
    askQuestions,
    getCustomSourceById,
    createCustomApiCallAction({
      baseUrl: () => BASE_URL,
      auth: ChatAidAuth,
      authMapping: async (auth) => ({
        Authorization: `${auth}`,
      }),
    }),
  ],
  triggers: [],
});