Skip to main content
Glama

mcp-google-sheets

request-action-direct-message.ts831 B
import { createAction } from '@activepieces/pieces-framework'; import { slackAuth } from '../..'; import { assertNotNullOrUndefined } from '@activepieces/shared'; import { profilePicture, text, userId, username, actions, } from '../common/props'; import { requestAction } from '../common/request-action'; export const requestActionDirectMessageAction = createAction({ auth: slackAuth, name: 'request_action_direct_message', displayName: 'Request Action from A User', description: 'Send a message to a user and wait until the user selects an action', props: { userId, text, actions, username, profilePicture, }, async run(context) { const { userId } = context.propsValue; assertNotNullOrUndefined(userId, 'userId'); return await requestAction(userId, context); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server