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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { aiprise } from '../common';
import { aipriseAuth } from '../common/auth';
export const getBusinessDocumentsAction = createAction({
auth: aipriseAuth,
name: 'get_business_documents',
classification: 'SEARCH',
displayName: 'Get Business Documents',
description:
'Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.',
audience: 'both',
aiMetadata: {
description:
'Lists every document attached to a given business profile, including each file\'s UUID, name, download URL, and the verification session it belongs to. Use this to discover a document\'s file UUID before running a document check, or to inventory what files a business has on file. Requires the business_profile_id. Read-only and idempotent.',
idempotent: true,
},
props: {
business_profile_id: Property.ShortText({
displayName: 'Business Profile ID',
description:
'The ID of the business profile whose documents you want to list. You can get this from the output of the **Create Business Profile** action.',
required: true,
}),
},
async run(context) {
const { business_profile_id } = context.propsValue;
return aiprise.makeRequest<Record<string, unknown>>({
auth: context.auth.props,
method: HttpMethod.GET,
path: `/verify/get_business_documents/${business_profile_id}`,
});
},
});