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

1.0 KB
Raw Blame
import { createAction } from '@activepieces/pieces-framework';
import { slackAuth } from '../auth';
import { setUserStatusAction } from './set-user-status';
import { updateProfileActionOutputSchema } from '../output-schemas';

export const slackSetUserStatus = createAction({
  auth: slackAuth,
  name: 'set_user_status',
  classification: 'WRITE',
  displayName: 'Set User Status',
  description: "Set the authenticated user's custom status text and emoji.",
  audience: 'ai',
  aiMetadata: {
    description:
      "Sets the authenticated user's custom status text and optional emoji, with an optional Unix-timestamp expiration. Pick this to change only the status; use Update Profile to change name or email fields. Requires a user token (not a bot token); this overwrites any existing status so re-running with the same input is idempotent. Status text is capped at 100 characters.",
    idempotent: true,
  },
  outputSchema: updateProfileActionOutputSchema,
  props: setUserStatusAction.props,
  run: setUserStatusAction.run,
});