View as Markdown
Front icon

Front ACTION

Receive Custom Messages

Receive a custom message in Front. See the documentation.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Front account once, then configure and run Receive Custom Messages from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "frontapp-receive-custom-messages",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    frontapp: { authProvisionId: "apn_xxxxxxx" },
    channelId: "Channel ID",
    handle: "Handle",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Receive Custom Messages inputs
Property Type Description
channelId Channel ID string
Id or address of the channel from which to send the message
Required Dynamic
handle Handle string
Handle of the sender. It can be any string used to uniquely identify the sender
Required
contactId Contact ID string
ID of the contact in Front corresponding to the sender
Optional Dynamic
senderName Sender Name string
Name of the sender
Optional
subject Subject string
Subject of the message
Optional
bodyFormat Body Format string
Format of the message body. Ignored if the message type is not email. Can be one of: 'html', 'markdown'. (Default: 'markdown')
Optional
body Body string
Body of the message
Required
threadRef Thread Ref string
Custom reference which will be used to thread messages. If you omit this field, we'll thread by sender instead.
Optional Dynamic
headers Headers object
Custom object where any internal information can be stored
Optional
attachments Attachments string[]
Provide either an array of file URLs or an array of paths to a files in the /tmp directory (for example, /tmp/myFile.pdf).
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
frontapp-receive-custom-messages
Version
0.0.10
App
Front
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes