- 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>
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
import { createPiece, PieceAuth, Property } from '@activepieces/pieces-framework';
|
|
import { sendMessage } from './lib/actions/send-message';
|
|
import { sendMedia } from './lib/actions/send-media';
|
|
import { sendTemplateMessageAction } from './lib/actions/send-from-template';
|
|
|
|
const markdown = `
|
|
To Obtain a Phone Number ID and a Permanent System User Access Token, follow these steps:
|
|
|
|
1. Go to https://developers.facebook.com/
|
|
2. Make a new app, Select Other for usecase.
|
|
3. Choose Business as the type of app.
|
|
4. Add new Product -> WhatsApp.
|
|
5. Navigate to WhatsApp Settings > API Setup.
|
|
6. Copy the Business Account ID.
|
|
7. Login to your [Meta Business Manager](https://business.facebook.com/).
|
|
8. Click on Settings.
|
|
9. Create a new System User with access over the app and copy the access token.
|
|
`;
|
|
|
|
export const whatsappAuth = PieceAuth.CustomAuth({
|
|
required: true,
|
|
description: markdown,
|
|
props: {
|
|
access_token: PieceAuth.SecretText({
|
|
displayName: 'System User Access Token',
|
|
description: 'The system user access token of your WhatsApp business account.',
|
|
required: true,
|
|
}),
|
|
businessAccountId: Property.ShortText({
|
|
displayName: 'Business Account ID',
|
|
description: 'The business account ID of your WhatsApp business account.',
|
|
required: true,
|
|
}),
|
|
},
|
|
});
|
|
|
|
export const whatsapp = createPiece({
|
|
displayName: 'WhatsApp Business',
|
|
description: 'Manage your WhatsApp business account',
|
|
auth: whatsappAuth,
|
|
minimumSupportedRelease: '0.30.0',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/whatsapp.png',
|
|
authors: ['LevwTech', 'kishanprmr'],
|
|
actions: [sendMessage, sendMedia, sendTemplateMessageAction],
|
|
triggers: [],
|
|
});
|