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 } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { askHandleAuth } from '../common/auth';
import { askHandleApiCall } from '../common/client';
export const listRooms = createAction({
auth: askHandleAuth,
name: 'list_rooms',
classification: 'SEARCH',
displayName: 'List Rooms',
description: 'Get a list of all rooms',
audience: 'both',
aiMetadata: { description: 'Retrieves all chat rooms in the AskHandle account. Use to discover available rooms or look up a room UUID before sending a message. Takes no input and is a read-only lookup, so it is idempotent.', idempotent: true },
props: {},
async run(context) {
return await askHandleApiCall(
context.auth.secret_text,
HttpMethod.GET,
'/rooms/'
);
},
});