@@ -263,12 +263,38 @@ export const workflowTemplates: WorkflowTemplate[] = [
263263 type : "email_message" ,
264264 tags : [ "email" , "sentiment" , "ai" , "analysis" ] ,
265265 nodes : [
266+ {
267+ id : "email-parameters-1" ,
268+ name : "Email Parameters" ,
269+ type : "email-parameters" ,
270+ description : "Extract email parameters from context" ,
271+ position : { x : 100 , y : 100 } ,
272+ inputs : [ ] ,
273+ outputs : [
274+ {
275+ name : "from" ,
276+ type : "string" ,
277+ } ,
278+ {
279+ name : "to" ,
280+ type : "string" ,
281+ } ,
282+ {
283+ name : "headers" ,
284+ type : "json" ,
285+ } ,
286+ {
287+ name : "raw" ,
288+ type : "string" ,
289+ } ,
290+ ] ,
291+ } ,
266292 {
267293 id : "email-parser-1" ,
268294 name : "Email Parser" ,
269295 type : "email-parser" ,
270296 description : "Extract text from email" ,
271- position : { x : 100 , y : 100 } ,
297+ position : { x : 500 , y : 100 } ,
272298 inputs : [
273299 {
274300 name : "rawEmail" ,
@@ -336,7 +362,7 @@ export const workflowTemplates: WorkflowTemplate[] = [
336362 name : "DistilBERT SST-2 Int8" ,
337363 type : "distilbert-sst-2-int8" ,
338364 description : "Analyze sentiment of email content" ,
339- position : { x : 500 , y : 100 } ,
365+ position : { x : 900 , y : 100 } ,
340366 inputs : [
341367 {
342368 name : "text" ,
@@ -346,17 +372,25 @@ export const workflowTemplates: WorkflowTemplate[] = [
346372 ] ,
347373 outputs : [
348374 {
349- name : "label" ,
350- type : "string" ,
375+ name : "positive" ,
376+ description : "positive" ,
377+ type : "number" ,
351378 } ,
352379 {
353- name : "score" ,
380+ name : "negative" ,
381+ description : "negative" ,
354382 type : "number" ,
355383 } ,
356384 ] ,
357385 } ,
358386 ] ,
359387 edges : [
388+ {
389+ source : "email-parameters-1" ,
390+ target : "email-parser-1" ,
391+ sourceOutput : "raw" ,
392+ targetInput : "rawEmail" ,
393+ } ,
360394 {
361395 source : "email-parser-1" ,
362396 target : "sentiment-1" ,
0 commit comments