📝 Add Contribute docs
This commit is contained in:
@@ -25,7 +25,7 @@ export const bookEvent = createAction({
|
||||
}),
|
||||
saveBookedDateInVariableId: option.string.layout({
|
||||
label: 'Save booked date',
|
||||
input: 'variableDropdown',
|
||||
inputType: 'variableDropdown',
|
||||
}),
|
||||
}),
|
||||
getSetVariableIds: ({ saveBookedDateInVariableId }) =>
|
||||
|
||||
@@ -23,7 +23,7 @@ export const sendMessage = createAction({
|
||||
message: option.string.layout({
|
||||
label: 'Message',
|
||||
placeholder: 'Hi, what can I do with ChatNode',
|
||||
input: 'textarea',
|
||||
inputType: 'textarea',
|
||||
}),
|
||||
responseMapping: option.saveResponseArray(['Message', 'Thread ID']).layout({
|
||||
accordion: 'Save response',
|
||||
|
||||
@@ -9,7 +9,8 @@ export const auth = {
|
||||
isRequired: true,
|
||||
helperText:
|
||||
'You can generate an API key [here](https://go.chatnode.ai/typebot).',
|
||||
input: 'password',
|
||||
inputType: 'password',
|
||||
withVariableButton: false,
|
||||
}),
|
||||
}),
|
||||
} satisfies AuthDefinition
|
||||
|
||||
@@ -8,7 +8,10 @@ import { auth } from '../auth'
|
||||
import { baseOptions } from '../baseOptions'
|
||||
|
||||
const nativeMessageContentSchema = {
|
||||
content: option.string.layout({ input: 'textarea', placeholder: 'Content' }),
|
||||
content: option.string.layout({
|
||||
inputType: 'textarea',
|
||||
placeholder: 'Content',
|
||||
}),
|
||||
}
|
||||
|
||||
const systemMessageItemSchema = option
|
||||
@@ -32,7 +35,7 @@ const assistantMessageItemSchema = option
|
||||
const dialogueMessageItemSchema = option.object({
|
||||
role: option.literal('Dialogue'),
|
||||
dialogueVariableId: option.string.layout({
|
||||
input: 'variableDropdown',
|
||||
inputType: 'variableDropdown',
|
||||
placeholder: 'Dialogue variable',
|
||||
}),
|
||||
startsBy: option.enum(['user', 'assistant']).layout({
|
||||
@@ -75,6 +78,7 @@ export const createChatCompletion = createAction({
|
||||
name: 'Create chat completion',
|
||||
auth,
|
||||
baseOptions,
|
||||
options,
|
||||
getSetVariableIds: (options) =>
|
||||
options.responseMapping?.map((res) => res.variableId).filter(isDefined) ??
|
||||
[],
|
||||
@@ -177,5 +181,4 @@ export const createChatCompletion = createAction({
|
||||
},
|
||||
},
|
||||
},
|
||||
options,
|
||||
})
|
||||
|
||||
@@ -19,14 +19,14 @@ export const createSpeech = createAction({
|
||||
}),
|
||||
input: option.string.layout({
|
||||
label: 'Input',
|
||||
input: 'textarea',
|
||||
inputType: 'textarea',
|
||||
}),
|
||||
voice: option.enum(openAIVoices).layout({
|
||||
label: 'Voice',
|
||||
placeholder: 'Select a voice',
|
||||
}),
|
||||
saveUrlInVariableId: option.string.layout({
|
||||
input: 'variableDropdown',
|
||||
inputType: 'variableDropdown',
|
||||
label: 'Save URL in variable',
|
||||
}),
|
||||
}),
|
||||
|
||||
@@ -29,13 +29,13 @@ export const searchDocuments = createAction({
|
||||
label: 'System prompt',
|
||||
moreInfoTooltip:
|
||||
'System prompt to send to the summarization LLM. This is prepended to the prompt and helps guide system behavior.',
|
||||
input: 'textarea',
|
||||
inputType: 'textarea',
|
||||
}),
|
||||
prompt: option.string.layout({
|
||||
accordion: 'Advanced settings',
|
||||
label: 'Prompt',
|
||||
moreInfoTooltip: 'Prompt to send to the summarization LLM.',
|
||||
input: 'textarea',
|
||||
inputType: 'textarea',
|
||||
}),
|
||||
responseMapping: option
|
||||
.saveResponseArray([
|
||||
|
||||
Reference in New Issue
Block a user