app: description: '' icon: 🗒️ icon_background: '#EFF1F5' mode: advanced-chat name: Save to Notion use_icon_as_answer_icon: false kind: app version: 0.1.3 workflow: conversation_variables: [] environment_variables: - description: '' id: 8648fdcd-cd62-47d8-b0f2-52da865cfafc name: database_id value: '' value_type: secret features: file_upload: allowed_file_extensions: - .JPG - .JPEG - .PNG - .GIF - .WEBP - .SVG allowed_file_types: - image allowed_file_upload_methods: - local_file - remote_url enabled: false fileUploadConfig: audio_file_size_limit: 50 batch_count_limit: 100 file_size_limit: 100 image_file_size_limit: 50 video_file_size_limit: 100 workflow_file_upload_limit: 10 image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url number_limits: 3 opening_statement: '' retriever_resource: enabled: true sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: isInIteration: false sourceType: start targetType: tool id: 1731032958735-source-1731033003028-target source: '1731032958735' sourceHandle: source target: '1731033003028' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: tool targetType: code id: 1731033003028-source-1731033483885-target source: '1731033003028' sourceHandle: source target: '1731033483885' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: code targetType: llm id: 1731033483885-source-llm-target source: '1731033483885' sourceHandle: source target: llm targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: http-request targetType: answer id: 1731033172249-source-1731033618766-target source: '1731033172249' sourceHandle: source target: '1731033618766' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: llm targetType: code id: llm-source-1731037022122-target source: llm sourceHandle: source target: '1731037022122' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false sourceType: code targetType: http-request id: 1731037022122-source-1731033172249-target source: '1731037022122' sourceHandle: source target: '1731033172249' targetHandle: target type: custom zIndex: 0 nodes: - data: desc: '' selected: false title: Start type: start variables: [] height: 52 id: '1731032958735' position: x: -269 y: 273.43847105677764 positionAbsolute: x: -269 y: 273.43847105677764 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: context: enabled: false variable_selector: [] desc: '' memory: query_prompt_template: '{{#sys.query#}} --- 文章内容: {{#1731033003028.text#}}' role_prefix: assistant: '' user: '' window: enabled: false size: 10 model: completion_params: max_tokens: 8192 temperature: 0.7 mode: chat name: claude-3-5-sonnet-20240620 provider: anthropic prompt_template: - id: 1bec3fdd-2de3-489f-9a48-7f364b9bc08e role: system text: "\n你的任务是为给定的网页全文内容生成一个简洁的摘要。请按照以下步骤操作:\n\n1. 仔细阅读整个网页内容,理解其主要观点和关键信息。\n\ 2. 识别出至少3个最重要的关键观点。这些观点应该能概括网页的核心内容。\n3. 用你自己的话将这些关键观点综合成一个连贯的段落。不要直接复制原文。\n\ 4. 确保摘要段落流畅自然,各个观点之间有逻辑联系。不要使用列表或分点的形式。\n5. 用markdown格式编写输出:\n - 标题前有一个\ \ ▶ 和空格,然后才是标题\n - 标题下直接跟随摘要段落,不要有空行\n - 摘要应该是单个段落,不要分段\n - 不要使用有序或无序列表\n\ 6. 摘要应该简明扼要,但要包含足够的细节以传达主要内容。\n7. 不要在输出中添加任何额外的解释或评论,只输出标题和唯一的摘要段落。\n\ 8. 检查并确保你的输出严格遵循了以上所有要求。\n9. 英文或单词、数字、emoji 都需要和中文之间有一个空格\n\n记住,你的输出不应包含任何XML标签。只需要用markdown格式的标题和段落即可。\n\ \n\n\n输入:\n新研究表明,每天喝咖啡可能有助于延长寿命。这项发表在《内科医学年鉴》上的研究追踪调查了超过50万名英国成年人,平均随访时间为7年。研究发现,与不喝咖啡的人相比,每天喝1-8杯咖啡的人死亡风险降低10-15%。这种保护作用似乎适用于各种咖啡,包括速溶、研磨和脱因咖啡。研究人员表示,咖啡含有许多生物活性化合物,可能有抗炎和抗氧化作用。不过他们也强调,这项研究只显示了相关性,还需要进一步研究来证实因果关系。专家建议,健康的成年人可以适度饮用咖啡,但孕妇和对咖啡因敏感的人应该限制摄入量。\n\ \n输出:\n▶ 每日 1-8 杯咖啡或可降低死亡风险\n新研究显示,适度饮用咖啡可能有助于延长寿命。这项大规模研究发现,每天喝1-8杯咖啡的人比不喝咖啡的人死亡风险低10-15%。这种保护作用似乎适用于各种类型的咖啡,可能与咖啡中的生物活性化合物有关。然而,研究人员强调这只是相关性,还需要进一步研究来确定因果关系。专家建议健康成年人可以适度饮用咖啡,但特定人群应该限制摄入。\n\ " selected: false title: Summarize type: llm variables: [] vision: enabled: false height: 96 id: llm position: x: 364.93152321836203 y: 364.1914564049538 positionAbsolute: x: 364.93152321836203 y: 364.1914564049538 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: desc: '' provider_id: jina provider_name: jina provider_type: builtin selected: false title: Fetch Single Page tool_configurations: gather_all_images_at_the_end: 0 gather_all_links_at_the_end: 0 image_caption: 0 max_retries: 3 no_cache: 0 proxy_server: null summary: 0 target_selector: null wait_for_selector: null tool_label: Fetch Single Page tool_name: jina_reader tool_parameters: url: type: mixed value: '{{#sys.query#}}' type: tool height: 296 id: '1731033003028' position: x: 37.77692443668252 y: 273.43847105677764 positionAbsolute: x: 37.77692443668252 y: 273.43847105677764 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: authorization: config: api_key: '{{#env.notion_api_key#}}' type: bearer type: api-key body: data: - id: key-value-128 key: '' type: text value: '{{#1731037022122.result#}}' type: json desc: '' headers: 'Content-Type:application/json Notion-Version:2022-06-28' method: post params: '' selected: false timeout: max_connect_timeout: 0 max_read_timeout: 0 max_write_timeout: 0 title: HTTP Request type: http-request url: https://api.notion.com/v1/pages variables: [] height: 108 id: '1731033172249' position: x: 364.93152321836203 y: 570.7609459035235 positionAbsolute: x: 364.93152321836203 y: 570.7609459035235 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: code: "import json\n\ndef main(arg1: str) -> dict:\n try:\n # 解析\ \ JSON 数据\n parsed_data = json.loads(arg1)\n \n # 获取\ \ title 字段\n title = parsed_data.get(\"data\", {}).get(\"title\"\ , \"\")\n \n # 返回结果\n return {\"result\": title}\n\ \ except json.JSONDecodeError:\n return {\"result\": \"\"}" code_language: python3 desc: '' outputs: result: children: null type: string selected: false title: Extract Title type: code variables: - value_selector: - '1731033003028' - text variable: arg1 height: 52 id: '1731033483885' position: x: 364.93152321836203 y: 273.43847105677764 positionAbsolute: x: 364.93152321836203 y: 273.43847105677764 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: answer: '# Summary {{#llm.text#}}' desc: '' selected: false title: Answer type: answer variables: [] height: 101 id: '1731033618766' position: x: 669.7925110944673 y: 273.43847105677764 positionAbsolute: x: 669.7925110944673 y: 273.43847105677764 selected: false sourcePosition: right targetPosition: left type: custom width: 243 - data: code: "import json\n\ndef main(title: str, summary: str, url: str) -> dict:\n\ \ json_data = {\n \"parent\": {\n \"database_id\":\ \ \"\U0001F449 input your database id here \U0001F448\"\n },\n \ \ \"properties\": {\n \"title\": {\n \"title\"\ : [\n {\n \"text\": {\n \ \ \"content\": title\n }\n \ \ }\n ]\n },\n \"\ url\": {\n \"url\": url\n }\n },\n \ \ \"children\": [\n {\n \"object\": \"block\"\ ,\n \"type\": \"paragraph\",\n \"paragraph\"\ : {\n \"rich_text\": [\n {\n \ \ \"type\": \"text\",\n \ \ \"text\": {\n \"content\": summary\n\ \ }\n }\n \ \ ]\n }\n }\n ]\n }\n \n \ \ return {\n \"result\": json.dumps(json_data)\n }" code_language: python3 desc: '' outputs: result: children: null type: string selected: true title: JSON type: code variables: - value_selector: - sys - query variable: url - value_selector: - llm - text variable: summary - value_selector: - '1731033483885' - result variable: title height: 52 id: '1731037022122' position: x: 364.93152321836203 y: 485.0650380709134 positionAbsolute: x: 364.93152321836203 y: 485.0650380709134 selected: true sourcePosition: right targetPosition: left type: custom width: 243 viewport: x: -128.70492880042133 y: 115.27418667054278 zoom: 0.9221683746142603