chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { z, InterfaceDefinition } from '@botpress/sdk'
|
||||
|
||||
export default new InterfaceDefinition({
|
||||
name: 'proactive-conversation',
|
||||
version: '0.0.4',
|
||||
entities: {
|
||||
conversation: {
|
||||
title: 'Conversation',
|
||||
description: 'The conversation object fields',
|
||||
schema: z.object({}).title('Conversation').describe('The conversation object fields'),
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
getOrCreateConversation: {
|
||||
title: 'Get or Create a Conversation',
|
||||
description: 'Proactively create a conversation from a bot',
|
||||
input: {
|
||||
schema: ({ conversation }) =>
|
||||
z.object({
|
||||
conversation: conversation.title('Conversation').describe('The conversation object fields'),
|
||||
}),
|
||||
},
|
||||
output: {
|
||||
schema: () =>
|
||||
z.object({
|
||||
conversationId: z.string().title('Conversation ID').describe('The Botpress ID of the created conversation'),
|
||||
}),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user