Folk
Create and list contacts in Folk's collaborative CRM.
On this page
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.
// 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);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "folk",
"piece_action": "createCompany",
"input": {
"name": "<company name>"
},
"env": "dev"
}
}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.
| Input | Type | Description |
|---|---|---|
namerequired | text | The name of the company |
descriptionoptional | long text | A short description of the company |
industryoptional | text | The industry the company operates in |
addressesoptional | array | Physical addresses for the company. The first address is primary. |
emailsoptional | array | Email addresses for the company. The first email is primary. |
phonesoptional | array | Phone numbers for the company. The first phone is primary. |
urlsoptional | array | Website URLs for the company. The first URL is primary. |
groupIdoptional | id (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.
| Input | Type | Description |
|---|---|---|
firstNameoptional | text | The first name of the person |
lastNameoptional | text | The last name of the person |
fullNameoptional | text | The full name of the person (alternative to first/last) |
descriptionoptional | long text | A short description of the person |
birthdayoptional | text | The birthday in YYYY-MM-DD format |
jobTitleoptional | text | The job title of the person |
companyNamesoptional | array | The names of companies to associate with the person. The first company will be primary. |
companyIdsoptional | ids (picked from your account) | Select companies to associate with the person. |
addressesoptional | array | Physical addresses for the person. The first address is primary. |
emailsoptional | array | Email addresses for the person. The first email is primary. |
phonesoptional | array | Phone numbers for the person. The first phone is primary. |
urlsoptional | array | Website URLs for the person. The first URL is primary. |
groupIdoptional | id (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.
| Input | Type | Description |
|---|---|---|
queryrequired | text | Enter company name or email to search for |
findPerson
List People. Retrieve a paginated list of people in your Folk workspace with optional filtering.
| Input | Type | Description |
|---|---|---|
limitoptional | number | The number of items to return (1-100) |
cursoroptional | text | A cursor for pagination. Use the nextLink value from a previous response. |
combinatoroptional | one of "and" | "or" | The logical operator to combine multiple filters |
nameFilteroptional | text | Filter by person name (contains) |
emailFilteroptional | text | Filter by email address (contains) |
getCompany
Get Company. Retrieve detailed information about a company from your Folk workspace.
| Input | Type | Description |
|---|---|---|
companyIdrequired | id (picked from your account) | Select a company from your Folk workspace. |
getPerson
Get Person. Retrieve detailed information about a person from your Folk workspace.
| Input | Type | Description |
|---|---|---|
personIdrequired | id (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.
| Input | Type | Description |
|---|---|---|
companyIdrequired | id (picked from your account) | Select a company from your Folk workspace. |
nameoptional | text | The name of the company |
descriptionoptional | long text | A short description of the company |
industryoptional | text | The industry the company operates in |
addressesoptional | array | Physical addresses for the company. The first address is primary. |
emailsoptional | array | Email addresses for the company. The first email is primary. |
phonesoptional | array | Phone numbers for the company. The first phone is primary. |
urlsoptional | array | Website URLs for the company. The first URL is primary. |
groupIdoptional | id (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.
| Input | Type | Description |
|---|---|---|
personIdrequired | id (picked from your account) | Select a person from your Folk workspace. |
firstNameoptional | text | The first name of the person |
lastNameoptional | text | The last name of the person |
fullNameoptional | text | The full name of the person (alternative to first/last) |
descriptionoptional | long text | A short description of the person |
birthdayoptional | text | The birthday in YYYY-MM-DD format |
jobTitleoptional | text | The job title of the person |
companyIdsoptional | ids (picked from your account) | Select companies to associate with the person. |
companyNamesoptional | array | Company names to create or associate with. Companies will be created if they don't exist. |
addressesoptional | array | Physical addresses for the person. The first address is primary. |
emailsoptional | array | Email addresses for the person. The first email is primary. |
phonesoptional | array | Phone numbers for the person. The first phone is primary. |
urlsoptional | array | Website URLs for the person. The first URL is primary. |
groupIdoptional | id (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