I have a lobster workflow that looks like this, but it's only outputting the first entry in the leads file and not creating the summary header, can you tell me what I need to do to fix it
name: sql_lead_drafts_email_output
steps:
-
id: read_leads
command: cat /home/admin/.openclaw/workspace-dba-scout/sql_leads.md -
id: build_llm_request
command: node /home/admin/.openclaw/workspace-dba-scout/lobster-scripts/build-llm-request.js
stdin: $read_leads.stdout -
id: debug_llm_request
command: tee /home/admin/.openclaw/workspace-dba-scout/debug-llm-request.json
stdin: $build_llm_request.stdout -
id: draft_email
command: sh -c 'node /home/admin/.openclaw/workspace-dba-scout/lobster-scripts/invoke-llm-task.js 2> /home/admin/.openclaw/workspace-dba-scout/debug-draft-email-stderr.txt'
stdin: $debug_llm_request.stdout -
id: debug_draft_email
command: tee /home/admin/.openclaw/workspace-dba-scout/debug-draft-email.json
stdin: $draft_email.stdout -
id: extract_llm_json
command: node /home/admin/.openclaw/workspace-dba-scout/lobster-scripts/extract-llm-json.js
stdin: $debug_draft_email.stdout -
id: debug_extracted_json
command: tee /home/admin/.openclaw/workspace-dba-scout/debug-extracted-json.json
stdin: $extract_llm_json.stdout -
id: render_email_html
command: node /home/admin/.openclaw/workspace-dba-scout/lobster-scripts/render-email-html.js
stdin: $debug_extracted_json.stdout -
id: debug_rendered_email
command: tee /home/admin/.openclaw/workspace-dba-scout/debug-rendered-email.json
stdin: $render_email_html.stdout -
id: write_email_html_file
command: node /home/admin/.openclaw/workspace-dba-scout/lobster-scripts/write-email-html-file.js
stdin: $debug_rendered_email.stdout -
id: final_output
command: cat /home/admin/.openclaw/workspace-dba-scout/sql-leads-draft-output.html