Zum Hauptinhalt springen

Ask by email and wait for the reply

Schrittask-by-emailnotifyexterne Wirkung

Emails numbered questions and waits for the reply. The reply comes back to this run, its files included, and can send it back to the step that asked, which reads the answers and asks again or goes on. With no reply in time the run goes on with the questions open.

Auf einen Blick​

EigenschaftWert
Schrittnameask-by-email
RessourceClusterStep (lumen.ai/v1alpha1)
Palettengruppe, Kategorienotify, messages
Credits1 Credit bei jedem Erfolg
Externe Wirkungja Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun.
Die Installation muss bereitstellenmail

Eingaben​

EigenschaftWert
Brauchtnichts
Liefertfields
Arbeitet aufitem einem Dokument nach dem anderen

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe Dokumente und Daten.

Ausgaben​

Ein späterer Knoten verweist auf eine Ausgabe als {nodeId.field} in einem Text oder als nodeId.field in einer Bedingung.

AusgabeTyp
replystring
replyQuotedstring
replyFromstring
repliedAtdate
roundnumber
timedOutboolean
replyFilesnumber
questionsstring
askedboolean
opennumber
rulesProposedstring

Einstellungen​

Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.

EinstellungTypStandardwertBeschreibung
toerforderlichtext or list-AskmaxLength 2000; maxItems 20
subjectstring-A custom subject starts a new conversation in Gmail, apart from the email that started the run. Leave it empty to reply in that conversation.maxLength 200
introstring-Intro is a short paragraph above the questions, Markdown.maxLength 2000
questionserforderlichstring-Questions is a list field (an agent's questions, {extract.reply.questions}), each a text or {"id","text"}; or text, one question per line.minLength 1; maxLength 4000
answersFromstring-AnswersFrom is the list field the flow's agent reads the reply into, [{"question_id","answer","applies"}], recorded on the round for the run's conversation, and the lasting ones proposed as rules.maxLength 200
redostring-Redo is the node, upstream of this one, the run goes back to with the reply (the agent that asked): it reads {<this node>.replyQuoted} and asks again or goes on. Empty goes on to this node's next with the reply.maxLength 63
maxRoundsinteger3MaxRounds is how many questions emails one run sends at most: 1 to 5, default 3. After the last round the run goes on with what is open.minimum 1; maximum 5
timeoutHoursinteger72TimeoutHours is how long each round waits: 1 to 720, default 72. With no reply by then the run goes on with the questions open.minimum 1; maximum 720
remindersobject-Reminders are sent in the questions email's thread while nobody has replied; each is measured from when the email went out.
reminders.afterlist of string-How long after the email went out, such as 24h. Each one sends a reminder if nobody answered by then; at most three, each shorter than the wait.maxItems 3
reminders.messagestring-Empty is Lumen's own text, in the email's language.maxLength 1000
onTimeoutobject-OnTimeout says who is told when the deadline passes with no reply and the run goes on with the questions open.
onTimeout.notifylist of string-Addresses told when nobody answered in time; {email.from} is the sender of the email that started the run.maxItems 5
onTimeout.messagestring-Empty is Lumen's own text, in the email's language.maxLength 1000
langstring-Lang is the email's language, he or en; empty follows the questions.one of, he, en
replyConnectorstring-ReplyConnector is the email-forward connection replies come back to; empty is the one whose email started the run.maxLength 253
acknowledgeboolean-Acknowledge sends a short "got it" when a reply is taken.
testColumnstring-TestColumn starts the test case columns that answer the rounds in an evaluation: <column>_1, <column>_2; default reply.maxLength 63

Das vollständige JSON Schema dieser Einstellungen: ask-by-email.schema.json.

Beispiel​

config
questions: '{questions}'
timeoutHours: 72
to: ops@yourcompany.co.il

Im Flow verwenden​

Ein Knoten, der ask-by-email ausführt, steht unter spec.nodes eines Flow. Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: ask-by-email-example
namespace: tenant-acme
spec:
displayName: "Ask by email and wait for the reply"
triggers:
- id: start
ref: {name: manual-run}
next: [ask-by-email]
nodes:
- id: ask-by-email
stepRef: {name: ask-by-email}
config:
questions: '{questions}'
timeoutHours: 72
to: ops@yourcompany.co.il