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 { linkupAuth, linkupAction, accountIdProp } from '../common';
export const checkInvitationStatus = createAction({
auth: linkupAuth,
name: 'check_invitation_status',
displayName: 'Check Invitation Status',
description: 'Check the status of a connection invitation sent to a profile.',
audience: 'both',
aiMetadata: { description: 'Checks the current state of a connection invitation sent from the connected account to a given profile URL. Use it to poll the outcome of Send Connection Request rather than re-sending; the Invitation Accepted trigger is the push alternative for flows that can wait. Requires the account ID and the target profile URL. Read-only and idempotent.', idempotent: true },
props: {
accountId: accountIdProp,
profileUrl: Property.ShortText({
displayName: 'Profile URL',
description: 'LinkedIn profile URL to check',
required: true,
}),
},
async run(context) {
const { accountId, profileUrl } = context.propsValue;
return linkupAction(context.auth.secret_text, 'network', 'check_invitation', accountId, {
profile_url: profileUrl,
});
},
});