Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { createChatbotAction } from './lib/actions/create-chatbot';
|
||||
import { listChatbotsAction } from './lib/actions/list-all-chatbots';
|
||||
import { searchConversationsAction } from './lib/actions/search-conversations-by-query';
|
||||
import { sendPromptToChatbotAction } from './lib/actions/send-prompt-to-chatbot';
|
||||
|
||||
const markdownDescription = `You can get your API key from your [Chatbase Account](https://www.chatbase.co/dashboard).`;
|
||||
|
||||
export const chatbaseAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: markdownDescription,
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const chatbase = createPiece({
|
||||
displayName: 'Chatbase',
|
||||
description: 'Build and manage AI chatbots with custom sources.',
|
||||
auth: chatbaseAuth,
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/chatbase.png',
|
||||
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
|
||||
authors: ['krushnarout'],
|
||||
actions: [
|
||||
createChatbotAction,
|
||||
sendPromptToChatbotAction,
|
||||
searchConversationsAction,
|
||||
listChatbotsAction,
|
||||
createCustomApiCallAction({
|
||||
auth: chatbaseAuth,
|
||||
baseUrl: () => 'https://www.chatbase.co/api/v1',
|
||||
authMapping: async (auth) => {
|
||||
return {
|
||||
Authorization: `Bearer ${auth.secret_text}`,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user