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 {
createTrigger,
Property,
TriggerStrategy,
} from '@activepieces/pieces-framework';
import { moveoAuth } from '../auth';
export const dialogInsights = createTrigger({
name: 'dialog_insights',
displayName: 'Dialog Insights',
description: 'Triggers when the dialog insights are available.',
aiMetadata: {
description: 'Fires when Moveo finishes computing analytics and insights for a completed conversation (dialog). The event payload represents the dialog insights, such as summary, sentiment, resolution, and other derived metrics for that conversation.',
},
auth: moveoAuth,
props: {
setupInstructions: Property.MarkDown({
value: `
**Quick Setup:**
1. In Moveo: **Deploy → Developer Tools → Event notifications**
2. Click **Create event**
3. Select the event **Dialog insights**
4. **URL:** \`{{webhookUrl}}\`
5. (Optional) Set a **Secret** and keep it saved for webhook verification
6. Click **Create**
`,
}),
},
sampleData: null,
type: TriggerStrategy.WEBHOOK,
async onEnable() {
return;
},
async onDisable() {
return;
},
async run(context) {
const body = (context.payload.body);
const parsedBody = typeof body === 'string' ? JSON.parse(body) : body;
return [parsedBody];
},
});