Skip to content

How to call LLM task with stdin input? #41

@RatkoJ

Description

@RatkoJ

Hi all,

I've been trying to process email contents (from gog) one by one using a simple lobster workflow but I cannot seem to get the LLM task working. Claude has looked at the lobster source code many times, tried different things but nothing works. It should be simple but I am missing something.

What I've tried:

pipeline: llm.invoke --provider openclaw --prompt "Hello. What's your name?"
stdin: $fetch_email_body.stdout
Fails with `"message": "llm.invoke received invalid response envelope"`
command: openclaw.invoke --tool llm-task --action json --args-json '{"prompt":"How many words have been pasted below?"}'
stdin: $fetch_email_body.stdout

Returns: word count: 0 (to me this means the stdin isn't being passed in somehow)
run: llm_task.invoke --prompt "Hi, what's your name?"
/bin/sh: 1: llm_task.invoke: not found"

I am also unclear on the when i should be using pipeline: and when command: openclaw.invoke --tool llm-task

I've made sure that the previous task indeed returns the email contents via:

command: echo $EMAIL_BODY
env:
      EMAIL_BODY: $fetch_email_body.stdout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions