Skip to main content
Glama

mcp-google-sheets

add-note-to-conversation.ts1.02 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { HttpMethod } from '@activepieces/pieces-common'; import { crispAuth } from '../common/auth'; import { sessionIdProp, websiteIdProp } from '../common/props'; import { crispApiCall } from '../common/client'; export const addNoteToConversationAction = createAction({ auth: crispAuth, name: 'add_note', displayName: 'Add Note to Conversation', description: 'Adds an internal note to a conversation.', props: { websiteId: websiteIdProp, sessionId: sessionIdProp, content: Property.LongText({ displayName: 'Note Content', required: true, }), }, async run(context) { const { websiteId, sessionId, content } = context.propsValue; const response = await crispApiCall({ auth: context.auth, method: HttpMethod.POST, resourceUri: `/website/${websiteId}/conversation/${sessionId}/message`, body: { type: 'note', from: 'operator', origin: 'chat', content, }, }); return response; }, });

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