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,22 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { newFormResult } from './lib/triggers/new-form-result';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
|
||||
export const formsiteAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: 'Formsite API Key',
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const formsite = createPiece({
|
||||
displayName: 'Formsite',
|
||||
auth: PieceAuth.None(),
|
||||
description:
|
||||
'Formsite is an online form builder that allows you to create forms and surveys easily.',
|
||||
categories: [PieceCategory.SALES_AND_CRM],
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/formsite.png',
|
||||
authors: ['sanket-a11y'],
|
||||
actions: [],
|
||||
triggers: [newFormResult],
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
import { formsiteAuth } from '../..';
|
||||
import {
|
||||
createTrigger,
|
||||
Property,
|
||||
TriggerStrategy,
|
||||
} from '@activepieces/pieces-framework';
|
||||
|
||||
export const newFormResult = createTrigger({
|
||||
auth: formsiteAuth,
|
||||
name: 'newFormResult',
|
||||
displayName: 'New Form Result',
|
||||
description: 'Trigger when a new form result is submitted',
|
||||
props: {
|
||||
instruction: Property.MarkDown({
|
||||
value: `
|
||||
**Enable Basic Authentication:**
|
||||
1. Login to your Formbricks account
|
||||
2. Open the form you want to connect
|
||||
3. Change tab to *From Settings* -> *Integrations* -> *Server Post*
|
||||
4. Enable *Server Post* and set the URL to the webhook URL generated after you save the trigger.
|
||||
\`\`\`text
|
||||
{{webhookUrl}}
|
||||
\`\`\`
|
||||
5. Select Message format as *JSON*
|
||||
6. Save the settings
|
||||
`,
|
||||
}),
|
||||
},
|
||||
sampleData: {
|
||||
user_ip: '::1',
|
||||
date_start: '2025-12-15T12:59:48.416Z',
|
||||
user_referrer: 'N/A',
|
||||
user_os: 'Windows (deprecated)',
|
||||
result_status: 'Complete',
|
||||
date_finish: '2025-12-15T12:59:51.695Z',
|
||||
date_update: '2025-12-15T12:59:51.701Z',
|
||||
user_browser: 'Chrome',
|
||||
id: '19086671',
|
||||
items: [
|
||||
{
|
||||
id: '0',
|
||||
position: 0,
|
||||
value: 'dasas',
|
||||
},
|
||||
{
|
||||
values: [
|
||||
{
|
||||
position: 0,
|
||||
value: 'Choice A',
|
||||
},
|
||||
],
|
||||
id: '1',
|
||||
position: 1,
|
||||
},
|
||||
],
|
||||
user_device: 'Desktop',
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
// implement webhook creation logic
|
||||
},
|
||||
async onDisable(context) {
|
||||
// implement webhook deletion logic
|
||||
},
|
||||
async run(context) {
|
||||
return [context.payload.body];
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user