Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ __snapshots__
.genenv.*
tilt_config.json
/.idea
hubspot.config.yml
hubspot.config.yml
.claude
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export * as output from "./output";
export const createUser = {
"input": input.input,
"output": output.output,
"title": "Create external user",
"description": "Create an end user in the external service and in Botpress",
"billable": false,
"cacheable": false,
"attributes": { "bpActionHiddenInStudio": "true" },
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,28 @@

import { z } from "@botpress/sdk";
export const input = {
schema: z.object({
name: z.optional(z.string()),
pictureUrl: z.optional(z.string()),
email: z.optional(z.string()),
}),
schema: z
.object({
name: z
.string()
.title("Display name")
.describe("Display name of the end user"),
pictureUrl: z
.optional(
z
.string()
.title("Picture URL")
.describe("URL of the end user\'s avatar"),
)
.describe("URL of the end user\'s avatar"),
email: z
.optional(
z
.string()
.title("Email address")
.describe("Email address of the end user"),
)
.describe("Email address of the end user"),
})
.catchall(z.never()),
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

import { z } from "@botpress/sdk";
export const output = {
schema: z.object({
userId: z.string(),
}),
schema: z
.object({
userId: z
.string()
.title("Botpress user ID")
.describe("ID of the Botpress user representing the end user"),
})
.catchall(z.never()),
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export * as output from "./output";
export const startHitl = {
"input": input.input,
"output": output.output,
"title": "Start new HITL session",
"description": "Create a new HITL session in the external service and in Botpress",
"billable": false,
"cacheable": false,
"attributes": { "bpActionHiddenInStudio": "true" },
}
Loading
Loading