Folk

Create and list contacts in Folk's collaborative CRM.

CRM and salesAPI key8 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (8)
  4. createCompany
  5. createPerson
  6. findCompany
  7. findPerson
  8. getCompany
  9. getPerson
  10. updateCompany
  11. updatePerson
  12. 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("folk", action, input) resolves with the provider's answer and rejects when Folk 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: "folk"} says whether yours can call it.

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

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

Actions

createCompany

Create Company. Create a new company in your Folk workspace. You can add emails, links, phone numbers, and assign it to a group.

InputTypeDescription
namerequiredtextThe name of the company
descriptionoptionallong textA short description of the company
industryoptionaltextThe industry the company operates in
addressesoptionalarrayPhysical addresses for the company. The first address is primary.
emailsoptionalarrayEmail addresses for the company. The first email is primary.
phonesoptionalarrayPhone numbers for the company. The first phone is primary.
urlsoptionalarrayWebsite URLs for the company. The first URL is primary.
groupIdoptionalid (picked from your account)Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts.

createPerson

Create Person. Create a new person in your Folk workspace. You can link them to a company, add contact details, and assign to a group.

InputTypeDescription
firstNameoptionaltextThe first name of the person
lastNameoptionaltextThe last name of the person
fullNameoptionaltextThe full name of the person (alternative to first/last)
descriptionoptionallong textA short description of the person
birthdayoptionaltextThe birthday in YYYY-MM-DD format
jobTitleoptionaltextThe job title of the person
companyNamesoptionalarrayThe names of companies to associate with the person. The first company will be primary.
companyIdsoptionalids (picked from your account)Select companies to associate with the person.
addressesoptionalarrayPhysical addresses for the person. The first address is primary.
emailsoptionalarrayEmail addresses for the person. The first email is primary.
phonesoptionalarrayPhone numbers for the person. The first phone is primary.
urlsoptionalarrayWebsite URLs for the person. The first URL is primary.
groupIdoptionalid (picked from your account)Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts.

findCompany

Find Company. Search for companies in your Folk workspace by name or email address.

InputTypeDescription
queryrequiredtextEnter company name or email to search for

findPerson

List People. Retrieve a paginated list of people in your Folk workspace with optional filtering.

InputTypeDescription
limitoptionalnumberThe number of items to return (1-100)
cursoroptionaltextA cursor for pagination. Use the nextLink value from a previous response.
combinatoroptionalone of "and" | "or"The logical operator to combine multiple filters
nameFilteroptionaltextFilter by person name (contains)
emailFilteroptionaltextFilter by email address (contains)

getCompany

Get Company. Retrieve detailed information about a company from your Folk workspace.

InputTypeDescription
companyIdrequiredid (picked from your account)Select a company from your Folk workspace.

getPerson

Get Person. Retrieve detailed information about a person from your Folk workspace.

InputTypeDescription
personIdrequiredid (picked from your account)Select a person from your Folk workspace.

updateCompany

Update Company. Update an existing company in your Folk workspace. Select the company from the dropdown to update its details.

InputTypeDescription
companyIdrequiredid (picked from your account)Select a company from your Folk workspace.
nameoptionaltextThe name of the company
descriptionoptionallong textA short description of the company
industryoptionaltextThe industry the company operates in
addressesoptionalarrayPhysical addresses for the company. The first address is primary.
emailsoptionalarrayEmail addresses for the company. The first email is primary.
phonesoptionalarrayPhone numbers for the company. The first phone is primary.
urlsoptionalarrayWebsite URLs for the company. The first URL is primary.
groupIdoptionalid (picked from your account)Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts.

updatePerson

Update Person. Update an existing person in your Folk workspace with new information.

InputTypeDescription
personIdrequiredid (picked from your account)Select a person from your Folk workspace.
firstNameoptionaltextThe first name of the person
lastNameoptionaltextThe last name of the person
fullNameoptionaltextThe full name of the person (alternative to first/last)
descriptionoptionallong textA short description of the person
birthdayoptionaltextThe birthday in YYYY-MM-DD format
jobTitleoptionaltextThe job title of the person
companyIdsoptionalids (picked from your account)Select companies to associate with the person.
companyNamesoptionalarrayCompany names to create or associate with. Companies will be created if they don't exist.
addressesoptionalarrayPhysical addresses for the person. The first address is primary.
emailsoptionalarrayEmail addresses for the person. The first email is primary.
phonesoptionalarrayPhone numbers for the person. The first phone is primary.
urlsoptionalarrayWebsite URLs for the person. The first URL is primary.
groupIdoptionalid (picked from your account)Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts.

Details

Id
folk
Category
CRM and sales
Tags
crm, contacts, relationships, collaborative
Package
@activepieces/piece-folk@0.1.4
Runs
Through the integration runner