mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-04 11:45:07 -05:00
* improvement(collab): do not refetch active workflow id * progress on files * more integrations * separate server and client logic * consolidate more code * fix integrations * fix types * consolidate more code * fix tests * fix more bugbot comments * fix type check * fix circular impport * address more bugbot comments * fix ocr integrations * fix typing * remove leftover type * address bugbot comment * fix file block adv mode * fix * normalize file input * fix v2 blocmks for ocr * fix for v2 versions * fix more v2 blocks * update single file blocks * make interface simpler * cleanup fireflies * remove file only annotation * accept all types * added wand to ssh block * user files should be passed through * improve docs * fix slack to include successful execs * fix dropbox upload file * fix sendgrid * fix dropbox * fix * fix * update skills * fix uploaded file --------- Co-authored-by: waleed <walif6@gmail.com>
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import type { SVGProps } from 'react'
|
|
import { createElement } from 'react'
|
|
import { MessageCircle } from 'lucide-react'
|
|
import type { BlockConfig } from '@/blocks/types'
|
|
|
|
const ChatTriggerIcon = (props: SVGProps<SVGSVGElement>) => createElement(MessageCircle, props)
|
|
|
|
export const ChatTriggerBlock: BlockConfig = {
|
|
type: 'chat_trigger',
|
|
triggerAllowed: true,
|
|
name: 'Chat',
|
|
description: 'Legacy chat start block. Prefer the unified Start block.',
|
|
longDescription: 'Chat trigger to run the workflow via deployed chat interfaces.',
|
|
bestPractices: `
|
|
- Can run the workflow manually to test implementation when this is the trigger point by passing in a message.
|
|
`,
|
|
category: 'triggers',
|
|
hideFromToolbar: true,
|
|
bgColor: '#6F3DFA',
|
|
icon: ChatTriggerIcon,
|
|
subBlocks: [],
|
|
tools: {
|
|
access: [],
|
|
},
|
|
inputs: {},
|
|
outputs: {
|
|
input: { type: 'string', description: 'User message' },
|
|
conversationId: { type: 'string', description: 'Conversation ID' },
|
|
files: { type: 'file[]', description: 'Uploaded files' },
|
|
},
|
|
triggers: {
|
|
enabled: true,
|
|
available: ['chat'],
|
|
},
|
|
}
|