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

874 B
Raw Blame
import { createAction } from '@activepieces/pieces-framework';
import { slackAuth } from '../auth';
import { findUserByIdAction } from './find-user-by-id';
import { getUserByIdActionOutputSchema } from '../output-schemas';

export const slackGetUser = createAction({
  auth: slackAuth,
  name: 'get_user',
  classification: 'READ',
  displayName: 'Get User',
  description: 'Get a Slack user profile by their user ID.',
  audience: 'ai',
  aiMetadata: {
    description:
      'Fetches a user profile directly by their Slack user ID. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Email or Find User by Handle to resolve an email or @handle into an ID first. Read-only and idempotent.',
    idempotent: true,
  },
  outputSchema: getUserByIdActionOutputSchema,
  props: findUserByIdAction.props,
  run: findUserByIdAction.run,
});