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

977 B
Raw Blame
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { createPiece } from '@activepieces/pieces-framework';
import { youformAiActions } from './lib/actions/ai';
import { youformAuth } from './lib/auth';
import { PieceCategory } from '@activepieces/pieces-framework';
import { youformClient } from './lib/common/client';
import { newSubmissionTrigger } from './lib/triggers/new-form-submission';

export const youform = createPiece({
  displayName: 'Youform',
  auth: youformAuth,
  minimumSupportedRelease: '0.88.2',
  logoUrl: 'https://cdn.activepieces.com/pieces/youform.png',
  authors: ['kishanprmr'],
  categories: [PieceCategory.FORMS_AND_SURVEYS],
  actions: [
    ...youformAiActions,
    createCustomApiCallAction({
      auth: youformAuth,
      baseUrl: () => youformClient.baseUrl(),
      authMapping: async (auth) => ({
        Authorization: `Bearer ${auth.secret_text}`,
      }),
    }),
  ],
  triggers: [newSubmissionTrigger],
});