Skip to content

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

1017 B
Raw Blame
import {
  Property,
  TriggerStrategy,
  createTrigger,
} from '@activepieces/pieces-framework';

const markdown = `
- Go to the "Integration" section.
- Find and click on the "Webhook" plugin to activate it.
- Add a webhook to that form.
- In the webhook settings, paste this URL: 
  \`{{webhookUrl}}\`
`;

export const newPost = createTrigger({
  name: 'new_post_on_beamer',
  classification: 'READ',
  displayName: 'New Beamer Post',
  description: 'Triggers when new post is found in your beamer account',
  aiMetadata: {
    description: 'Fires when a new post is published in the connected Beamer account, delivered via a Beamer webhook integration. Represents a freshly created announcement or changelog entry.',
  },
  props: {
    md: Property.MarkDown({
      value: markdown,
    }),
  },
  type: TriggerStrategy.WEBHOOK,
  sampleData: {},

  async onEnable(context) {
    // IGNORED
  },
  async onDisable(context) {
    // IGNORED
  },
  async run(context) {
    return [context.payload.body];
  },
});