diff --git a/DSL/Ruuter/services/TEMPLATES/jump-to-service.yml b/DSL/Ruuter/services/TEMPLATES/jump-to-service.yml index 795bb5383..11a5050df 100644 --- a/DSL/Ruuter/services/TEMPLATES/jump-to-service.yml +++ b/DSL/Ruuter/services/TEMPLATES/jump-to-service.yml @@ -8,6 +8,12 @@ declaration: namespace: service allowlist: body: + - field: chatId + type: string + description: "The chat ID for the message" + - field: authorId + type: string + description: "The author ID for the message" - field: serviceName type: string description: "Name of the target active service to trigger" @@ -25,7 +31,9 @@ trigger_service: call: http.post args: url: "[#SERVICE_RUUTER]/services/active/${incoming.body.serviceName}" - body: + body: + chatId: ${incoming.body.chatId} + authorId: ${incoming.body.authorId} input: ${incoming.body.input} result: trigger_result diff --git a/GUI/src/services/service-builder.ts b/GUI/src/services/service-builder.ts index 6cfef2451..7f0925afc 100644 --- a/GUI/src/services/service-builder.ts +++ b/GUI/src/services/service-builder.ts @@ -980,6 +980,8 @@ function handleJumpToServiceStep(parentNode: Node, finishedFlow: template: '[#SERVICE_PROJECT_LAYER]/jump-to-service', requestType: 'templates', body: { + chatId: "${chatId ?? ''}", + authorId: "${authorId ?? ''}", serviceName: parentNode.data.jumpToService?.serviceName ?? '', input: (parentNode.data.jumpToService?.input ?? []).map((e: Assign) => normalizeAssignValue(e.value)), }, @@ -1072,6 +1074,8 @@ const getTemplateDataFromNode = (node: Node): { templateName: string; body?: any return { templateName: '[#SERVICE_PROJECT_LAYER]/jump-to-service', body: { + chatId: "${chatId ?? ''}", + authorId: "${authorId ?? ''}", serviceName: node.data.jumpToService?.serviceName ?? '', input: (node.data.jumpToService?.input ?? []).map((e: Assign) => normalizeAssignValue(e.value)), },