Skip to main content
Glama

mcp-google-sheets

create-conversation.ts1.1 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { codyAuth } from '../..'; import { codyClient } from '../common/client'; import { botIdDropdown } from '../common/props'; export const createConversationAction = createAction({ auth: codyAuth, name: 'create_conversation', displayName: 'Create Conversation', description: 'Creates a new conversation with a bot.', props: { bot_id: botIdDropdown, name: Property.ShortText({ displayName: 'Conversation Name', description: 'The name for the new conversation.', required: true, }), document_ids: Property.Array({ displayName: 'Document IDs (Focus Mode)', description: "A list of document IDs to limit the bot's knowledge base for this conversation.", required: false, }), }, async run(context) { const { bot_id, name, document_ids } = context.propsValue; const apiKey = context.auth as string; const docIds = document_ids as string[] | undefined; return await codyClient.createConversation(apiKey, bot_id, name, docIds); }, });

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