Help Scout

Create conversations, list conversations, and add replies in Help Scout.

Customer supportAPI key9 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (9)
  4. create_conversation
  5. find_conversation
  6. send_reply
  7. add_note
  8. create_customer
  9. custom_api_call
  10. find_customer
  11. find_user
  12. update_customer_properties
  13. 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("help-scout", action, input) resolves with the provider's answer and rejects when Help Scout 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: "help-scout"} says whether yours can call it.

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

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

Actions

create_conversation

Create Conversation. Start a new conversation.

InputTypeDescription
mailboxIdrequiredid (picked from your account)Mailbox
subjectrequiredtextSubject
customerEmailrequiredtextCustomer Email
fromUseroptionalid (picked from your account)From User
threadTyperequiredone of "chat" | "phone" | "reply" | "customer"Thread Type
statusrequiredone of "active" | "closed" | "pending"Conversation Status
bodyrequiredlong textBody
assignTooptionalid (picked from your account)Assigned User
tagsoptionalarrayTags
ccoptionalarrayCC
bccoptionalarrayBCC
importedoptionalbooleanImported

find_conversation

Find Conversation. Finds an existing conversation using provided filter.

InputTypeDescription
subjectoptionaltextSubject
mailboxIdoptionalid (picked from your account)Mailbox
statusoptionalone of "active" | "open" | "closed" | "pending" | "spam" | "all"Status
assignTooptionalid (picked from your account)Assigned User
emailoptionaltextEmail
tagsoptionalarrayTags
queryoptionaltextCustom Query

send_reply

Send Reply. Sends a reply in an existing conversation.

InputTypeDescription
conversationIdoptionalid (picked from your account)Conversation
textrequiredlong textReply Text
customerEmailrequiredtextCustomer Email
draftoptionalbooleanDraft
statusoptionalone of "active" | "pending" | "closed" | "spam"Conversation Status
userIdoptionalid (picked from your account)User (who adds the reply)
ccoptionalarrayCC (emails)
bccoptionalarrayBCC (emails)

add_note

Add Note. Adds a note to a conversation.

InputTypeDescription
conversationIdoptionalid (picked from your account)Conversation
textrequiredlong textNote Text
userIdoptionalid (picked from your account)User

create_customer

Create Customer. Adds a new customer to Help Scout.

InputTypeDescription
emailrequiredtextEmail
firstNameoptionaltextFirst Name
lastNameoptionaltextLast Name
phoneoptionaltextPhone
photoUrloptionaltextPhoto URL
jobTitleoptionaltextJob Title
locationoptionaltextLocation
backgroundoptionallong textBackground
ageoptionaltextCustomer’s age (string, e.g. "30-35")
genderoptionalone of "male" | "female" | "unknown"Gender
organizationoptionaltextOrganization
socialProfilesoptionalarrayURLs for social profiles (type will be set to "other")

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

find_customer

Find Customer. Finds a customer by email.

InputTypeDescription
emailrequiredtextEmail

find_user

Find User. Finds a user by email.

InputTypeDescription
emailrequiredtextEmail

update_customer_properties

Update Customer Properties. Updates customer's properties.

InputTypeDescription
customerIdrequiredid (picked from your account)Customer
fieldsrequiredobject (depends on other props)Customer Properties

Details

Id
help-scout
Category
Customer support
Tags
helpdesk, email, support, shared-inbox
Package
@activepieces/piece-help-scout@0.1.4
Runs
Through the integration runner