Files
smoothschedule/activepieces-fork/packages/pieces/community/copy-ai/src/index.ts
poduck 3aa7199503 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>
2025-12-18 22:59:37 -05:00

34 lines
1.3 KiB
TypeScript

import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/shared';
import { runWorkflowAction } from './lib/actions/run-workflow';
import { getWorkflowRunStatusAction } from './lib/actions/get-workflow-run-status';
import { getWorkflowRunOutputsAction } from './lib/actions/get-workflow-run-outputs';
import { workflowRunCompletedTrigger } from './lib/triggers/workflow-run-completed';
const markdownDescription = `
To use Copy AI, you need to get an API key:
1. Login to your account at https://copy.ai.
2. Click on Workflows in the left sidebar.
3. Click on any Workflow you have. You need to create a new Workflow, if you don't have one.
4. Click on the API tab.
5. Click the Copy button below WORKSPACE API KEY.
`;
export const copyAiAuth = PieceAuth.SecretText({
displayName: 'API Key',
description: markdownDescription,
required: true,
});
export const copyAi = createPiece({
displayName: 'Copy.ai',
description: 'AI-powered content generation and copywriting platform',
logoUrl: 'https://cdn.activepieces.com/pieces/copy-ai.png',
authors: ['AnkitSharmaOnGithub'],
auth: copyAiAuth,
actions: [runWorkflowAction, getWorkflowRunStatusAction, getWorkflowRunOutputsAction],
triggers: [workflowRunCompletedTrigger],
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
});