LaTeX Tasks
This flow allows us to obtain the LaTeX code with the assignment of elements by the user.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
ChatInput-5prdh[<div><img alt="logo" src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Elementos a LaTex]
style ChatInput-5prdh stroke:#a170ff
Prompt-yvmly[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Instrucciones]
style Prompt-yvmly stroke:#a170ff
ChatOutput-xcex0[<div><img alt="logo" src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-xcex0 stroke:#a170ff
GroqModel-wyv59[<div><img alt="logo" src="/_astro/Groq.CT__qXjF.svg" style="height: 20px !important;width: 20px !important"/></div>Groq]
style GroqModel-wyv59 stroke:#a170ff
ChatInput-5prdh -.- Prompt-yvmly
linkStyle 0 stroke:#a170ff
Prompt-yvmly -.- GroqModel-wyv59
linkStyle 1 stroke:#a170ff
GroqModel-wyv59 -.- ChatOutput-xcex0
linkStyle 2 stroke:#a170ff
LaTeX Tasks Workflow Documentation
đź§© Overview
The LaTeX Tasks workflow transforms user‑specified activities into a ready‑to‑use LaTeX task list. It collects a plain‑text description, generates a prompt for a language model, obtains LaTeX code from the model, and presents the result back to the user. This automation removes the manual effort of writing LaTeX syntax, enabling rapid creation of structured documents.
⚙️ Main Features
- Accepts a free‑form list of activities from the user and captures it as input data.
- Builds a dynamic prompt that instructs an AI model to output only LaTeX code.
- Utilises the Groq language model to generate the LaTeX task list, with configurable token limits and temperature.
- Returns the generated LaTeX directly in the chat interface for immediate use.
- Provides optional labels that describe each step of the workflow in the UI.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Collects the user’s list of tasks and associated metadata. | User‑provided text of tasks, conversation context, and optional file attachments. | Structured message containing the task list. |
| Prompt | Constructs a prompt template that instructs the model to produce LaTeX code for the tasks. | Task list message from the Chat Input component. | Prompt message formatted for the language model. |
| Groq Model | Generates the LaTeX code using the Groq API. | Prompt message, system message, and model configuration (e.g., max tokens, temperature). | Message containing the generated LaTeX code. |
| Chat Output | Displays the LaTeX code back to the user in the chat interface. | Generated LaTeX message from the Groq Model. | Visible chat message showing the LaTeX code. |
đź§ Notes
- The Groq Model component requires a valid Groq API key and credential; ensure credentials are stored securely.
- The
max_tokensandtemperatureparameters influence the length and creativity of the output; adjust them to match the desired verbosity. - The model can operate in streaming mode; when enabled, partial responses are sent incrementally to the chat.
- Empty or missing task lists result in the prompt component receiving no input; the workflow will terminate early unless the user supplies a valid list.
- The workflow is designed for single‑batch execution; batch mode features are present but not activated by default.
- Labels used for UI guidance are purely decorative and do not affect the logical flow of data.