Front

Send messages, list conversations, and manage tags in Front.

Customer supportAPI key21 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (21)
  4. findConversation
  5. sendMessage
  6. addComment
  7. addContactHandle
  8. addConversationLinks
  9. addConversationTags
  10. assignUnassignConversation
  11. createAccount
  12. createContact
  13. createDraft
  14. createDraftReply
  15. createLink
  16. findAccount
  17. findContact
  18. removeContactHandle
  19. removeConversationLinks
  20. sendReply
  21. updateAccount
  22. updateContact
  23. updateConversation
  24. updateLink
  25. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("front", action, input) resolves with the provider's answer and rejects when Front isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "front"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Front when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellFront = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Front isn't connected.
  const output = await step.run("Front", () =>
    step.ctx.integrations.invoke("front", "findConversation", {
      "q": "<query>"
    }),
  );
  step.ctx.log("Front answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "front",
    "piece_action": "findConversation",
    "input": {
      "q": "<query>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/front/findConversation" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"q":"<query>"}}'

Actions

findConversation

Find Conversation. Find a conversation by search filters such as subject, participants, tags, inbox, etc.

Also accepted as find-conversation.

InputTypeDescription
qrequiredtextFront query string (e.g. subject:"Order", tag_ids:tag_123, inbox_id:inb_456, etc.). See https://dev.frontapp.com/docs/search-1
limitoptionalnumberMaximum number of conversations to return.
page_tokenoptionaltextToken for pagination.

sendMessage

Send Message. Send a new message (starts a conversation) with subject, recipients, body, attachments, tags, etc.

Also accepted as send_message.

InputTypeDescription
channel_idrequiredid (picked from your account)Select the channel
torequiredarrayList of recipient handles (email addresses, etc.).
ccoptionalarrayList of CC recipient handles.
bccoptionalarrayList of BCC recipient handles.
subjectoptionaltextThe subject of the message.
bodyrequiredlong textThe body of the message.
attachmentsoptionalarrayList of attachment URLs.
tag_idsoptionalids (picked from your account)Select one or more tags

addComment

Add Comment. Add a comment (internal note) to a conversation in Front.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
author_idrequiredid (picked from your account)Select the teammate
bodyrequiredlong textThe content of the comment.

addContactHandle

Add Contact Handle. Add a handle (email, phone number, etc.) to an existing Contact.

InputTypeDescription
contact_idrequiredid (picked from your account)Select the contact
handle_typerequiredone of "email" | "phone" | "twitter" | "facebook" | "intercom" | "front_chat" | "custom"Type of handle to add.
handle_valuerequiredtextThe value of the handle (e.g., email address, phone number).

Add Conversation Links. Link external references (URLs) to a conversation.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
link_idsoptionalids (picked from your account)Select one or more links

addConversationTags

Add Conversation Tags. Add one or more tags to a conversation.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
tag_idsoptionalids (picked from your account)Select one or more tags

assignUnassignConversation

Assign/Unassign Conversation. Assign a conversation to a teammate or remove assignment.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
assignee_idrequiredid (picked from your account)Select the teammate

createAccount

Create Account. Create a new account in Front.

InputTypeDescription
namerequiredtextThe name of the account to create.
descriptionoptionaltextA description for the account.
domainsoptionalarrayList of domains associated with the account.
external_idoptionaltextAn external identifier for the account.
custom_fieldsoptionalJSONCustom fields for this account, as a JSON object.

createContact

Create Contact. Create a new contact in Front.

InputTypeDescription
nameoptionaltextThe name of the contact.
descriptionoptionaltextA description for the contact.
handlesrequiredarrayList of contact handles (e.g., email, phone).
avatar_urloptionalfileURL of the contact’s avatar image.
linksoptionalarrayList of URLs associated with the contact.
group_namesoptionalarrayList of group names to associate with the contact.
list_namesoptionalarrayList of contact list names this contact belongs to. Front will create any that do not exist.
custom_fieldsoptionalJSONCustom fields for this contact, as a JSON object (e.g., {"CRM ID": "12345"}).

createDraft

Create Draft. Create a draft message in Front.

InputTypeDescription
channel_idrequiredid (picked from your account)Select the channel
torequiredarrayList of recipient handles (email addresses, etc.).
ccoptionalarrayList of CC recipient handles.
bccoptionalarrayList of BCC recipient handles.
subjectoptionaltextThe subject of the draft.
bodyrequiredlong textThe body of the draft message.
attachmentsoptionalarrayList of attachment URLs.
moderequiredone of "private" | "shared"Mode of the draft reply
signature_idoptionaltextThe ID of the signature to use for the draft reply (if applicable).
should_add_default_signatureoptionalbooleanWhether to append the default signature to the draft reply (if applicable).

createDraftReply

Create Draft Reply. Create a draft reply to an existing conversation (subject/quote etc.) without sending immediately.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
bodyrequiredlong textThe content of the draft reply.
subjectoptionaltextThe subject of the draft reply (for email channels).
author_idrequiredid (picked from your account)Select the teammate
channel_idrequiredid (picked from your account)Select the channel
tooptionalarrayList of recipient handles (email addresses, etc.).
ccoptionalarrayList of CC recipient handles.
bccoptionalarrayList of BCC recipient handles.
attachmentsoptionalarrayList of attachment URLs.
moderequiredone of "private" | "shared"Mode of the draft reply
signature_idoptionaltextThe ID of the signature to use for the draft reply (if applicable).
should_add_default_signatureoptionalbooleanWhether to append the default signature to the draft reply (if applicable).

Create Link. Create a Link in Front (name, external URL).

InputTypeDescription
namerequiredtextThe name of the link.
external_urlrequiredtextThe external URL for the link.
patternoptionaltextOptional pattern to match URLs (regex).

findAccount

Find Account. List company accounts and optionally filter by email domain or external ID.

InputTypeDescription
email_domainoptionaltextFilter accounts by email domain
external_idoptionaltextFilter accounts by external ID
limitoptionalnumberMaximum number of accounts to return (max 100).
page_tokenoptionaltextToken for pagination.
sort_byoptionalone of "created_at" | "updated_at"Field used to sort the accounts.
sort_orderoptionalone of "asc" | "desc"Order by which results should be sorted.

findContact

Find Contact. Look up a contact by handle (email, phone, etc.) or other identifying field.

InputTypeDescription
emailoptionaltextEmail address to search for.
phoneoptionaltextPhone number to search for.
custom_queryoptionaltextCustom Front query string (advanced).
limitoptionalnumberMaximum number of contacts to return.
page_tokenoptionaltextToken for pagination.

removeContactHandle

Remove Contact Handle. Remove a handle (email, phone number, etc.) from an existing Contact.

InputTypeDescription
contact_idrequiredid (picked from your account)Select the contact
handlerequiredtextThe handle to remove.
sourcerequiredone of "email" | "phone" | "twitter" | "facebook" | "intercom" | "front_chat" | "custom"The type of the handle to remove.
forceoptionalbooleanIf true, the entire contact will be deleted if this is their last handle.

Remove Conversation Links. Remove external links from a conversation in Front.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
linksrequiredarrayList of external URLs to remove from the conversation.

sendReply

Send Reply. Send a reply to a conversation in Front.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
bodyrequiredlong textThe content of the reply message.
author_idrequiredid (picked from your account)Select the teammate
subjectoptionaltextThe subject of the reply (for email channels).
tooptionalarrayList of recipient handles (email addresses, etc.).
ccoptionalarrayList of CC recipient handles.
bccoptionalarrayList of BCC recipient handles.
channel_idrequiredid (picked from your account)Select the channel
attachmentsoptionalarrayList of attachment URLs.

updateAccount

Update Account. Update an existing account in Front.

InputTypeDescription
account_idrequiredid (picked from your account)Select the account
nameoptionaltextThe new name for the account.
descriptionoptionaltextThe new description for the account.
domainsoptionalarrayList of domains associated with the account.
custom_fieldsoptionalJSONCustom fields to add or update. Existing fields will be preserved.

updateContact

Update Contact. Update an existing contact in Front.

InputTypeDescription
contact_idrequiredid (picked from your account)Select the contact
nameoptionaltextThe new name for the contact.
descriptionoptionaltextA new description for the contact.
avatar_urloptionaltextURL of the contact’s avatar image.
linksoptionalarrayList of URLs associated with the contact.

updateConversation

Update Conversation. Modify conversation properties: status, assignee, inbox, tags, etc.

InputTypeDescription
conversation_idrequiredid (picked from your account)Select the conversation
statusoptionalone of "open" | "archived" | "deleted"The new status for the conversation.
assignee_idrequiredid (picked from your account)Select the teammate
inbox_idoptionalid (picked from your account)Select the inbox
tag_idsoptionalids (picked from your account)Select one or more tags

Update Link. Update the name or external URL of a Link in Front.

InputTypeDescription
link_idoptionalid (picked from your account)Select the link
nameoptionaltextThe new name for the link.
external_urloptionaltextThe new external URL for the link.

Details

Id
front
Category
Customer support
Tags
inbox, support, email, team
Package
@activepieces/piece-front@0.1.3
Runs
Through the integration runner