Skip to content

[P2] flow: create_record node value semantics ambiguous (literal vs CEL vs macro vs ref) #1315

Description

@xuyushun441-sys

来源:docs/PLATFORM_GAPS_FROM_TEMPLATES.md 第 16 条(P2)。

现象

Flow 节点 create_recordvalue 字段语义不明:

  • 字面字符串?
  • CEL 表达式?
  • macro?
  • 同名 source 字段引用?

模板作者写流靠猜,文档没有明确指引哪个字段是哪种解析。

复现

{kind: 'create_record',object: 'helpdesk_message',values: {body: '{{ai_suggested_reply}}',// 这是 macro?ticket: '$source.id',// 这是引用?direction: 'outbound',// 字面?},}// 实际行为不一致,部分字段被原样字符串化

建议范围

M1:统一语义

  • 显式区分:{ literal: '...' } / { expr: '...' } / { ref: 'source.field' }
  • 或:所有 value 默认 CEL,字面值用 '"text"'

M2:文档 + IDE

  • 节点参考文档配示例
  • TS 类型让 IDE 提示语义

M3:lint / build 校验

  • 编译时校验 value 写法 + 提示常见错误

验收

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestpriority:p2Medium: important, M3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions