Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Update component help texts and add documentation links for improved user guidance

samme-abdul94908257fc46
diff --git a/packages/app/src/builder-ui/components/APICall.class.ts b/packages/app/src/builder-ui/components/APICall.class.ts
index bae6ed97..7e8be1b9 100644
--- a/packages/app/src/builder-ui/components/APICall.class.ts
+++ b/packages/app/src/builder-ui/components/APICall.class.ts
@@ -94,7 +94,7 @@ export class APICall extends Component {
options: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],
value: 'GET',
validate: 'required',
- help: `The Method field defines the type of HTTP request your API call will use—such as GET to retrieve data, POST to create, or DELETE to remove. <br /><a style="color: #3b82f6;text-decoration: underline;" href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call" target="_blank">See full method guide →</a>`,
+ help: 'Choose the HTTP method to read, create, update, or delete data.',
hintPosition: 'bottom',
tooltipClasses: 'w-64',
arrowClasses: '-ml-11',
@@ -108,7 +108,7 @@ export class APICall extends Component {
validateMessage: 'Provide a valid URL',
attributes: { 'data-template-vars': 'true' },
cls: 'pr-4',
- help: `Configure the URL field using static or dynamic values for flexibility. Use query (?key={{value}}) and path parameters ({{url}}/segment) to adapt endpoints. <br /><a style="color: #3b82f6;text-decoration: underline;" href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call" target="_blank">See URL configuration guide →</a>`,
+ help: `Enter the website address and add any path or query parts.\n <a href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=url#step-1-choose-method-and-url" target="_blank" class="text-blue-600 hover:text-blue-800">See URL patterns</a>`,
hintPosition: 'bottom',
tooltipClasses: 'w-64',
arrowClasses: '-ml-15',
@@ -130,7 +130,7 @@ export class APICall extends Component {
type: 'textarea',
label: 'Headers',
readonly: true,
- help: `Headers pass essential metadata like Content-Type and authentication details. <br />Edit them in the API component settings to match your API's requirements. <br /><a style="color: #3b82f6;text-decoration: underline;" href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call" target="_blank">See headers guide →</a>`,
+ help: 'Add keys the service needs, like Authorization or Content-Type.<br /><a href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=url#step-2-add-headers-and-body" target="_blank" class="text-blue-600 hover:text-blue-800">See header usage</a>',
tooltipClasses: 'w-64',
arrowClasses: '-ml-13',
validate: `custom=isValidJson`,
@@ -152,7 +152,7 @@ export class APICall extends Component {
contentType: {
type: 'select',
label: 'Content-Type',
- help: `The Content-Type header specifies the format of the data in the request body—e.g., application/json, multipart/form-data, or text/plain. Choose the type that matches your API's requirements. <br /><a style="color: #3b82f6;text-decoration: underline;" href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call" target="_blank">See Content-Type guide →</a>`,
+ help: 'Tell the server what kind of body you are sending, like JSON or form data.',
tooltipClasses: 'w-64',
arrowClasses: '-ml-5',
options: [
@@ -173,7 +173,7 @@ export class APICall extends Component {
type: 'textarea',
label: 'Body',
attributes: { 'data-template-vars': 'true', 'data-vault': `${COMP_NAMES.apiCall},All` },
- help: `Body contains data sent to the server. SmythOS dynamically adapts content based on selected Content-Type and allows integration of variables from other components. <br /><a style="color: #3b82f6;text-decoration: underline;" href="${SMYTHOS_DOCS_URL}/agent-studio/components/advanced/api-call" target="_blank">See Body guide →</a>`,
+ help: 'Write what you want to send and use variables from earlier steps.',
tooltipClasses: 'w-64',
arrowClasses: '-ml-17',
actions: [
diff --git a/packages/app/src/builder-ui/components/APIEndpoint.class.ts b/packages/app/src/builder-ui/components/APIEndpoint.class.ts
index 6eb21a33..a663c36a 100644
--- a/packages/app/src/builder-ui/components/APIEndpoint.class.ts
+++ b/packages/app/src/builder-ui/components/APIEndpoint.class.ts
@@ -57,6 +57,7 @@ export class APIEndpoint extends Component {
value: '',
validate: `required maxlength=50 custom=isValidEndpoint`,
validateMessage: `Provide a valid endpoint that only contains 'a-z', 'A-Z', '0-9', '-', '_' , without leading or trailing spaces. Length should be less than 50 characters.`,
+ help: 'Give the skill a unique, valid name using letters, numbers, hyphens, or underscores for workflows to call on.',
events: {
input: (e) => {
const endpointLabelText = document.querySelector(
@@ -130,7 +131,7 @@ export class APIEndpoint extends Component {
type: 'textarea',
label: 'Instructions',
value: '',
- help: 'Instructions for AI Agent, Describes how to use this endpoint when exposed to an LLM',
+ help: 'Define when to run the skill, what inputs it needs, and the results it should return. <a href="https://smythos.com/docs/agent-studio/components/base/agent-skill/#step-1-define-the-skills-core-details" target="_blank" class="text-blue-600 hover:text-blue-800">See skill guidelines</a>',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
validate: `maxlength=5000`,
@@ -140,7 +141,7 @@ export class APIEndpoint extends Component {
type: 'toggle',
label: 'Expose to AI',
value: true,
- help: 'If enabled, the endpoint can be discovered and used as a skill by AI (E.g. ChatGPT, chatbot, AgentLLM ...)',
+ help: 'Make the skill available for autonomous use by chat agents.',
tooltipClasses: 'w-64 ',
arrowClasses: '-ml-11',
display: 'inline',
@@ -153,7 +154,7 @@ export class APIEndpoint extends Component {
type: 'textarea',
label: 'Description',
value: '',
- help: 'Short description of the endpoint, used for documentation',
+ help: 'Provide a short overview for teammates and AI to understand the skill\'s purpose.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
validate: `maxlength=1000`,
@@ -166,7 +167,7 @@ export class APIEndpoint extends Component {
label: 'Advanced Request Parts',
value: this.isOnAdvancedMode || false,
display: 'inline',
- help: 'Enabling this option will permanently expose HTTP headers, request body, and query parameters. This cannot be undone.',
+ help: 'Lock this skill into a fixed API-style request with details like headers, methods, and body. <a href="https://smythos.com/docs/agent-studio/components/base/agent-skill/#step-3-configure-advanced-options" target="_blank" class="text-blue-600 hover:text-blue-800">See details</a>',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
section: 'Advanced',
diff --git a/packages/app/src/builder-ui/components/APIOutput.class.ts b/packages/app/src/builder-ui/components/APIOutput.class.ts
index d48a29f7..c1c6be1d 100644
--- a/packages/app/src/builder-ui/components/APIOutput.class.ts
+++ b/packages/app/src/builder-ui/components/APIOutput.class.ts
@@ -9,7 +9,7 @@ export class APIOutput extends Component {
label: 'Output Format',
value: 'full',
options: ['full', 'minimal', 'raw'],
- help: 'API Output component refines and standardizes output data, ensuring relevance and clarity for user requirements.',
+ help: 'Choose the response shape: Full adds metadata; Minimal returns mapped fields; Raw passes the source. <a href="https://smythos.com/docs/agent-studio/components/base/api-output/#step-2-select-an-output-format" target="_blank" class="text-blue-600 hover:text-blue-800">See response examples</a>',
tooltipClasses: 'w-64',
arrowClasses: '-ml-11',
hintPosition: 'bottom',
diff --git a/packages/app/src/builder-ui/components/Await.class.ts b/packages/app/src/builder-ui/components/Await.class.ts
index 0221e641..b99ae694 100644
--- a/packages/app/src/builder-ui/components/Await.class.ts
+++ b/packages/app/src/builder-ui/components/Await.class.ts
@@ -10,6 +10,7 @@ export class Await extends Component {
jobs_count: {
type: 'range',
label: 'Minimum Jobs Count',
+ help: 'Resume when at least this many async jobs finish; set 1 to continue on the first result.',
min: 1,
max: 100,
value: 1,
@@ -20,6 +21,7 @@ export class Await extends Component {
max_time: {
type: 'range',
label: 'Maximum wait time in seconds',
+ help: 'Stop waiting after this many seconds and continue with any finished jobs.',
min: 1,
max: 10800,
value: 1,
diff --git a/packages/app/src/builder-ui/components/Classifier.class.ts b/packages/app/src/builder-ui/components/Classifier.class.ts
index 3fff97ce..1cd5f19c 100644
--- a/packages/app/src/builder-ui/components/Classifier.class.ts
+++ b/packages/app/src/builder-ui/components/Classifier.class.ts
@@ -39,7 +39,7 @@ export class Classifier extends Component {
model: {
type: 'select',
label: 'Select a model',
- help: 'Choose an AI model to process the prompt.',
+ help: 'Choose a model that applies labels and fits your context size.',
tooltipClasses: 'w-56',
arrowClasses: '-ml-11',
value: this.defaultModel,
@@ -77,6 +77,7 @@ export class Classifier extends Component {
value:
'Classify the input content to one of the categories.\nSet the selected category to true and the others to empty value',
attributes: { 'data-template-vars': 'true' },
+ help: 'Explain how text should be classified and what labels to return. <a href="https://smythos.com/docs/agent-studio/components/base/classifier/?utm_source=studio&utm_medium=tooltip&utm_campaign=classifier&utm_content=prompt#step-2---write-or-update-the-prompt" target="_blank" class="text-blue-600 hover:text-blue-800">See prompt tips</a>',
},
};
diff --git a/packages/app/src/builder-ui/components/Component.class/component-documentation.ts b/packages/app/src/builder-ui/components/Component.class/component-documentation.ts
new file mode 100644
index 00000000..ec11e0d2
--- /dev/null
+++ b/packages/app/src/builder-ui/components/Component.class/component-documentation.ts
@@ -0,0 +1,692 @@
+/**
+ * Component Documentation Data
+ * Contains component descriptions and field tooltips for the UI
+ * Based on: https://docs.google.com/document/d/1d6onoVfFS6QHMOlI-ZpbB7OaJuwtCMijpI6x0BC8csA/edit?usp=sharing
+ */
+
+export interface ComponentFieldTooltip {
+ tooltip: string;
+ docsLink?: string;
+}
+
+export interface ComponentDocumentation {
+ description: string;
+ docsLink?: string;
+ fieldTooltips: Record<string, ComponentFieldTooltip>;
+}
+
+/**
+ * Component documentation mapping
+ * Key: Component class name
+ * Value: Component documentation data
+ */
+export const COMPONENT_DOCUMENTATION: Record<string, ComponentDocumentation> = {
+ // Base Components
+ APIEndpoint: {
+ description: 'Define a reusable skill your agent can call across workflows. Describe what it does, the inputs it needs, and the result it returns so assistants pick it at the right time. For patterns, naming, and step-by-step builds, see the skill guidelines.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/agent-skill/?utm_source=studio&utm_medium=tooltip&utm_campaign=agent-skill&utm_content=component-header',
+ fieldTooltips: {
+ skillName: {
+ tooltip: 'Give the skill a unique, valid name using letters, numbers, hyphens, or underscores for workflows to call on.',
+ },
+ name: {
+ tooltip: 'Give the skill a unique, valid name using letters, numbers, hyphens, or underscores for workflows to call on.',
+ },
+ instructions: {
+ tooltip: 'Define when to run the skill, what inputs it needs, and the results it should return. See skill guidelines',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/agent-skill/#step-1-define-the-skills-core-details',
+ },
+ exposeToAI: {
+ tooltip: 'Make the skill available for autonomous use by chat agents.',
+ },
+ description: {
+ tooltip: 'Provide a short overview for teammates and AI to understand the skill\'s purpose.',
+ },
+ advancedRequestParts: {
+ tooltip: 'Lock this skill into a fixed API-style request with details like headers, methods, and body. See details',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/agent-skill/#step-3-configure-advanced-options',
+ },
+ },
+ },
+
+ APIOutput: {
+ description: 'Set the final return for your workflow as clean JSON. Choose a format and map fields so callers always get the same structure in production. For examples, see the output guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/api-output/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-output&utm_content=component-header#step-2-select-an-output-format',
+ fieldTooltips: {
+ outputFormat: {
+ tooltip: 'Choose the response shape: Full adds metadata; Minimal returns mapped fields; Raw passes the source. See response examples',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/api-output/#step-2-select-an-output-format',
+ },
+ },
+ },
+
+ Note: {
+ description: 'Add annotations and lightweight docs on the Canvas to explain decisions, label sections, and help teammates move faster. For quick tips and examples, see the Note guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/note/?utm_source=studio&utm_medium=tooltip&utm_campaign=note&utm_content=component-header',
+ fieldTooltips: {
+ description: {
+ tooltip: 'Store note content for context, decisions, and next steps.',
+ },
+ textColor: {
+ tooltip: 'Set text color for readability and clear grouping.',
+ },
+ backgroundColor: {
+ tooltip: 'Pick a background color to label or highlight sections.',
+ },
+ enableMarkdown: {
+ tooltip: 'Turn on headings, lists, links, and code formatting. Processes content in Markdown format for notes, headings, lists, and styled text instead of plain text.',
+ },
+ markdownContent: {
+ tooltip: 'Renders Markdown in the note. See Markdown tips',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/note/?utm_source=studio&utm_medium=tooltip&utm_campaign=note&utm_content=enable-markdown#formatting-mode',
+ },
+ },
+ },
+
+ Classifier: {
+ description: 'Sort unstructured text into clear categories using a simple prompt. Pick a suitable model, define labels, and test edge cases for consistency. For examples, see the Classification guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/classifier/?utm_source=studio&utm_medium=tooltip&utm_campaign=classifier&utm_content=component-header#step-2-write-or-update-the-prompt',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Choose a model that applies labels and fits your context size.',
+ },
+ prompt: {
+ tooltip: 'Explain how text should be classified and what labels to return. See prompt tips',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/classifier/?utm_source=studio&utm_medium=tooltip&utm_campaign=classifier&utm_content=prompt#step-2---write-or-update-the-prompt',
+ },
+ },
+ },
+
+ ImageGenerator: {
+ description: 'Create images from text or edit existing ones with model controls for size, quality, and style. Write specific prompts and iterate quickly using the image generation guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/image-generator/#step-1-select-a-model-and-configure-settings',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Choose a model that matches your style and detail needs.',
+ },
+ prompt: {
+ tooltip: 'Describe what to generate by describing the subject, style, and constraints. See prompt tips',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/image-generator/?utm_source=studio&utm_medium=tooltip&utm_campaign=image-generator&utm_content=prompt#step-2-define-inputs',
+ },
+ aspectRatio: {
+ tooltip: 'Set the shape of the image, like square (1:1) or widescreen (16:9).',
+ },
+ personGeneration: {
+ tooltip: 'Control if people can appear and which age groups are included. See policy rules',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/image-generator/?utm_source=studio&utm_medium=tooltip&utm_campaign=image-generator&utm_content=person-generation#model-verification-and-troubleshooting',
+ },
+ quality: {
+ tooltip: 'Decide how detailed the output is, trading off speed and cost.',
+ },
+ outputFormat: {
+ tooltip: 'Set the file type you\'ll get back, like JPEG for photos, PNG for transparency, or WebP for web use.',
+ },
+ strength: {
+ tooltip: 'Control how much an input image influences the final result (higher = closer match).',
+ },
+ negativePrompt: {
+ tooltip: 'Block unwanted elements, styles, or colors from appearing in the image.',
+ },
+ },
+ },
+
+ GenAILLM: {
+ description: 'Give your agent language skills for summarising, generating, extracting, and classifying text. Pick a model, write a clear prompt, connect inputs, then tune settings for length, quality, and cost. For proven prompts, model tips, and steps, see the GenAI LLM guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=component-header',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Choose the model that will generate and interpret text.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=model#step-1-choose-a-model',
+ },
+ prompt: {
+ tooltip: 'Write clear instructions with placeholders (e.g., {{input}}) and state the expected format.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=prompt#step-2-write-your-prompt',
+ },
+ contextWindowSize: {
+ tooltip: 'Set a token budget for prompt and reply to fit within model limits. See context guidelines',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=stop-sequence#step-4-configure-advanced-settings',
+ },
+ maximumOutputTokens: {
+ tooltip: 'Limit reply length to manage cost and avoid cutoffs. See token limits',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=context-window-size#step-4-configure-advanced-settings',
+ },
+ maxTokens: {
+ tooltip: 'Limit reply length to manage cost and avoid cutoffs. See token limits',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=context-window-size#step-4-configure-advanced-settings',
+ },
+ stopSequence: {
+ tooltip: 'End output when any of the stop strings (sequence of up to 4 strings) appear. See stopping examples',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=stop-sequence#step-4-configure-advanced-settings',
+ },
+ stopSequences: {
+ tooltip: 'End output when any of the stop strings (sequence of up to 4 strings) appear. See stopping examples',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=stop-sequence#step-4-configure-advanced-settings',
+ },
+ frequencyPenalty: {
+ tooltip: 'Reduce repeats by penalising words already used in the reply.',
+ },
+ presencePenalty: {
+ tooltip: 'Encourage new topics by penalising words seen in the input.',
+ },
+ verbosity: {
+ tooltip: 'Control how much reasoning detail appears in the response.',
+ },
+ passthrough: {
+ tooltip: 'Stream the response live to chat, or turn off for batch runs. See passthrough details',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=passthrough#step-4-configure-advanced-settings',
+ },
+ useAgentSystemPrompt: {
+ tooltip: 'Apply the agent\'s rules and tone to this call for consistency.',
+ },
+ useContextWindow: {
+ tooltip: 'Include recent chat history when responses depend on prior turns.',
+ },
+ reasoningEffort: {
+ tooltip: 'Set how deeply the model reasons; higher is slower but more accurate.',
+ },
+ useWebSearch: {
+ tooltip: 'Allow the model to fetch fresh, real-time information.',
+ },
+ useReasoning: {
+ tooltip: 'Enable step-by-step reasoning for complex or multi-step tasks.',
+ },
+ topP: {
+ tooltip: 'Control variety by sampling from the smallest set of likely words that reach probability P.',
+ },
+ topK: {
+ tooltip: 'Restrict generation to the top K most likely words to reduce randomness.',
+ },
+ },
+ },
+
+ // Advanced Components
+ Sleep: {
+ description: 'Use Sleep to pause a workflow for a set time so you can respect API rate limits, wait for slow external work, or add natural pacing. Set the delay in seconds, then the flow resumes and passes its input through unchanged. If you need examples, see delay tips and best practices.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/sleep/?utm_source=studio&utm_medium=tooltip&utm_campaign=sleep&utm_content=component-header#best-practices',
+ fieldTooltips: {
+ delay: {
+ tooltip: 'Pause for the set seconds, then continue; input passes through unchanged. See dynamic delays and limits',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/sleep/?utm_source=studio&utm_medium=tooltip&utm_campaign=sleep&utm_content=component-header#step-1-set-the-delay-duration',
+ },
+ },
+ },
+
+ LLMAssistant: {
+ description: 'Build a chat assistant that remembers the conversation and gives coherent replies across turns. Pick a model, set the behaviour, wire the inputs, then choose how replies stream. For help in understanding, see the LLM Assistant guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/llm-assistant/?utm_source=studio&utm_medium=tooltip&utm_campaign=llm-assistant&utm_content=component-header',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Choose the chat model for this assistant; balance speed, cost, and context.',
+ },
+ behavior: {
+ tooltip: 'Set the assistant\'s tone, rules, and actions so replies fit the intended use case. See behaviour examples',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/llm-assistant/?utm_source=studio&utm_medium=tooltip&utm_campaign=llm-assistant&utm_content=behavior#step-2-define-the-behavior',
+ },
+ passthrough: {
+ tooltip: 'Send raw replies into the workflow for filtering or transformation before display. See passthrough control',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/llm-assistant/?utm_source=studio&utm_medium=tooltip&utm_campaign=llm-assistant&utm_content=passthrough#step-4-configure-advanced-settings',
+ },
+ },
+ },
+
+ Await: {
+ description: 'Use Await to pause your flow until background jobs finish so you can use their results. Set how many jobs to wait for and a time limit so the flow stays responsive. For examples, race rules, and partial results, see wait conditions and timeouts.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/await/?utm_source=studio&utm_medium=tooltip&utm_campaign=await&utm_content=component-header#step-1-set-wait-conditions',
+ fieldTooltips: {
+ minimumJobsCount: {
+ tooltip: 'Resume when at least this many async jobs finish; set 1 to continue on the first result.',
+ },
+ maximumWaitTimeInSeconds: {
+ tooltip: 'Stop waiting after this many seconds and continue with any finished jobs.',
+ },
+ },
+ },
+
+ ForEach: {
+ description: 'Use ForEach to loop through a list and run the same steps for each item. It aggregates every run into one result you can pass to the next step. For steps and output response details, see the For Each guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/for-each/?utm_source=studio&utm_medium=tooltip&utm_campaign=for-each&utm_content=for-each-header#',
+ fieldTooltips: {
+ outputFormat: {
+ tooltip: 'Choose Full for item plus metadata, Minimal for the last step\'s output only, or Array of Results for a simple list. See format examples',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/for-each/?utm_source=studio&utm_medium=tooltip&utm_campaign=for-each&utm_content=output-format#step-3-select-an-output-format',
+ },
+ },
+ },
+
+ JSONFilter: {
+ description: 'Use JSON Filter to keep only the parts of a JSON object you need and drop the rest. This trims noisy API responses, speeds later steps, and saves tokens when sending data to an LLM. For path syntax, nested keys, and arrays, see examples.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/json-filter/?utm_source=studio&utm_medium=tooltip&utm_campaign=json-filter&utm_content=fields#step-1-define-filter-parameters',
+ fieldTooltips: {
+ fields: {
+ tooltip: 'List the paths to keep, like user.email, id, or items[0].name; anything not listed is removed. See path rules and nested keys',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/json-filter/?utm_source=studio&utm_medium=tooltip&utm_campaign=json-filter&utm_content=fields#step-1-define-filter-parameters',
+ },
+ },
+ },
+
+ FileStore: {
+ description: 'Use Filestore to save binary data and get a public link you can share. Name the file as users will download it, then set how long the link should stay valid. For input rules, file naming, and TTL limits, see Filestore inputs and TTL.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/filestore/?utm_source=studio&utm_medium=tooltip&utm_campaign=filestore&utm_content=component-header',
+ fieldTooltips: {
+ fileName: {
+ tooltip: 'Name the download and include an extension like .json or .png for easy use. See naming tips',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/filestore/?utm_source=studio&utm_medium=tooltip&utm_campaign=filestore&utm_content=file-name#step-1-define-inputs',
+ },
+ ttl: {
+ tooltip: 'Set how long the public link stays valid before it expires. See TTL options',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/base/filestore/?utm_source=studio&utm_medium=tooltip&utm_campaign=filestore&utm_content=ttl#step-1-define-inputs',
+ },
+ },
+ },
+
+ Code: {
+ description: 'Use the Code component to run JavaScript inside your workflow. Transform inputs, validate data, and add custom logic without an external service. Set _output to pass results and use _error for safe failures. If you want to understand the code template and variable rules, see the Code guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/code/?utm_source=studio&utm_medium=tooltip&utm_campaign=code&utm_content=variables',
+ fieldTooltips: {
+ code_vars: {
+ tooltip: 'Define variables to store and reuse values in your script. See input and output variables',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/code/?utm_source=studio&utm_medium=tooltip&utm_campaign=code&utm_content=variables#step-1-understand-inputs-and-outputs',
+ },
+ code_body: {
+ tooltip: 'Write JavaScript that reads inputs and sets _output for the next step. See code guidelines',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/code/?utm_source=studio&utm_medium=tooltip&utm_campaign=code&utm_content=variables#step-2-write-your-code',
+ },
+ },
+ },
+
+ APICall: {
+ description: 'Use API Call to connect your flow to any HTTP API. Set the method, URL, headers, body, and auth, then test and reuse the result in later steps. For step-by-step setup with examples, see the API Call guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=component-header',
+ fieldTooltips: {
+ method: {
+ tooltip: 'Choose the HTTP method to read, create, update, or delete data.',
+ },
+ url: {
+ tooltip: 'Enter the website address and add any path or query parts. See URL patterns',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=url#step-1-choose-method-and-url',
+ },
+ headers: {
+ tooltip: 'Add keys the service needs, like Authorization or Content-Type. See header usage',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=url#step-2-add-headers-and-body',
+ },
+ contentType: {
+ tooltip: 'Tell the server what kind of body you are sending, like JSON or form data.',
+ },
+ body: {
+ tooltip: 'Write what you want to send and use variables from earlier steps.',
+ },
+ oauth: {
+ tooltip: 'Sign in once and let tokens attach to your calls automatically. See OAuth setup',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/api-call/?utm_source=studio&utm_medium=tooltip&utm_campaign=api-call&utm_content=url#step-3-add-authentication',
+ },
+ proxyUrls: {
+ tooltip: 'Send calls through a proxy if your network or vendor asks for it.',
+ },
+ },
+ },
+
+ // Tools Components
+ ComputerUse: {
+ description: 'Gives your agent a virtual computer that can browse, click, type, and gather data from the web. Describe the task in plain steps and the result you expect, then the agent runs it and returns structured output. For prompt tips and real examples, see the Computer Use guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/computer-use/?utm_source=studio&utm_medium=tooltip&utm_campaign=computer-use&utm_content=header',
+ fieldTooltips: {
+ prompt: {
+ tooltip: 'Describe the on-screen task with clear steps, needed URLs, and what success looks like.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/computer-use/?utm_source=studio&utm_medium=tooltip&utm_campaign=computer-use&utm_content=header#step-2-define-the-task-prompt',
+ },
+ },
+ },
+
+ ServerlessCode: {
+ description: 'Run custom JavaScript with NPM packages in a safe, serverless runtime. Use it when built-in steps are not enough and you need full control. For code structure, inputs, and package tips, see the NodeJS guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/node-js/?utm_source=studio&utm_medium=tooltip&utm_campaign=nodejs&utm_content=component-header',
+ fieldTooltips: {
+ code_imports: {
+ tooltip: 'Write Node.js that runs in a managed serverless runtime and returns an Output value.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/node-js/?utm_source=studio&utm_medium=tooltip&utm_campaign=nodejs&utm_content=component-header#step-1-write-your-nodejs-code',
+ },
+ use_own_keys: {
+ tooltip: 'Run with your AWS credentials to reach VPC or private services.',
+ },
+ accessKeyId: {
+ tooltip: 'Enter the AWS Access Key ID used when runs use your account.',
+ },
+ secretAccessKey: {
+ tooltip: 'Paste the matching AWS Secret Access Key; it is stored encrypted.',
+ },
+ region: {
+ tooltip: 'Choose the AWS Region for execution to reduce latency and keep related services together.',
+ },
+ },
+ },
+
+ WebSearch: {
+ description: 'Search the web for information and return relevant results with citations.',
+ fieldTooltips: {
+ sourcesLimit: {
+ tooltip: 'Choose how many results to fetch, up to 20; start with 3 to 5 for speed.',
+ },
+ searchTopic: {
+ tooltip: 'Pick General for evergreen pages or News for recent reporting.',
+ },
+ includeQAs: {
+ tooltip: 'Add a short AI answer with citations from the top sources.',
+ },
+ includeImages: {
+ tooltip: 'Return image results with titles and links for quick preview.',
+ },
+ timeRange: {
+ tooltip: 'Limit results to the last 24 hours, 7 days, 30 days, or a year.',
+ },
+ includeRawContent: {
+ tooltip: 'Return the page text for each result for RAG or summaries.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/web-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=web-search&utm_content=raw-content',
+ },
+ excludeDomains: {
+ tooltip: 'Filter out sites you do not want, one domain per line.',
+ },
+ },
+ },
+
+ WebScrape: {
+ description: 'Pull clean content from webpages into your flow. Choose the format you need and turn on extras for sites that load data with JavaScript or on scroll. For setup tips and examples, see Web Scrape guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/web-scrape/?utm_source=studio&utm_medium=tooltip&utm_campaign=web-scrape&utm_content=component-header#step-1-configure-scraper-settings',
+ fieldTooltips: {
+ format: {
+ tooltip: 'Choose Markdown for readability, HTML or text for raw content, or JSON for structured parsing later.',
+ },
+ antiScrapingProtection: {
+ tooltip: 'Use a managed browser for sites with bot checks when you have rights.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/web-scrape/?utm_source=studio&utm_medium=tooltip&utm_campaign=web-scrape&utm_content=anti-bot#step-1-configure-scraper-settings',
+ },
+ javascriptRendering: {
+ tooltip: 'Render the page with a headless browser to load dynamic content.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/web-scrape/?utm_source=studio&utm_medium=tooltip&utm_campaign=web-scrape&utm_content=js-rendering#step-1-configure-scraper-settings',
+ },
+ autoScroll: {
+ tooltip: 'Scroll the page to load more items before scraping; set sensible limits for long feeds.',
+ },
+ },
+ },
+
+ MCPClient: {
+ description: 'Connect your agent to an MCP server so it can use external tools through one standard interface. Enter the server URL, write a clear prompt, and choose the model that will call tools. For URL format and setup steps, see MCP setup.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/mcp-client/?utm_source=studio&utm_medium=tooltip&utm_campaign=mcp-client&utm_content=component-header#step-2-configure-the-connection',
+ fieldTooltips: {
+ mcpUrl: {
+ tooltip: 'Enter the MCP server URL so the client can list the tools it offers.',
+ },
+ prompt: {
+ tooltip: 'Tell the tool what to do and what to return; name the tool and key parameters. See prompt patterns',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/tools/mcp-client/?utm_source=studio&utm_medium=tooltip&utm_campaign=mcp-client&utm_content=prompt#step-3-provide-inputs',
+ },
+ model: {
+ tooltip: 'Choose the model that will plan and call tools; larger models help with long or multi step tasks.',
+ },
+ systemPrompt: {
+ tooltip: 'Set rules for all calls, like allowed tools, tone, and required output format.',
+ },
+ },
+ },
+
+ // Crypto Components
+ FHash: {
+ description: 'Create a fixed-size fingerprint of your data for checks and IDs. Pick an algorithm, choose an output encoding, then pass the hash downstream. For quick picks and examples, see F:Hash guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/hash/?utm_source=studio&utm_medium=tooltip&utm_campaign=hash&utm_content=component-header',
+ fieldTooltips: {
+ hashAlgorithm: {
+ tooltip: 'Choose the hash function, like SHA-256 for integrity; avoid MD5 for security.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/hash/?utm_source=studio&utm_medium=tooltip&utm_campaign=hash&utm_content=hash-algorithm#step-1-select-an-algorithm-and-encoding',
+ },
+ outputEncoding: {
+ tooltip: 'Choose how the hash is returned: hex for readability or Base64 for compact size.',
+ },
+ },
+ },
+
+ FEncDec: {
+ description: 'Converts data between text and binary encodings for safe storage, transport, and API compatibility. Supports Base64, Base64URL, hex, UTF-8, and Latin-1 with encode or decode actions. For quick picks and examples, see encoding basics.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/encode-decode/?utm_source=studio&utm_medium=tooltip&utm_campaign=encode-decode&utm_content=component-header',
+ fieldTooltips: {
+ action: {
+ tooltip: 'Select Encode to produce a formatted string, or Decode to read one.',
+ },
+ encoding: {
+ tooltip: 'Choose the scheme: Base64 for binary, hex for hashes, UTF-8 for text.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/encode-decode/?utm_source=studio&utm_medium=tooltip&utm_campaign=encode-decode&utm_content=encoding#step-1-select-an-action-and-encoding-method',
+ },
+ },
+ },
+
+ FSign: {
+ description: 'Generates a digital signature with HMAC or RSA for webhook payloads and API requests. Verifiers must use the same method, key, hash, and encoding to match. For method tradeoffs and examples, see signing basics.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/sign/?utm_source=studio&utm_medium=tooltip&utm_campaign=sign&utm_content=component-header#step-1-select-a-signature-method-and-settings',
+ fieldTooltips: {
+ signatureMethod: {
+ tooltip: 'Choose HMAC with a shared secret or RSA with a private key.',
+ },
+ dataTransform: {
+ tooltip: 'Prepare the data to sign: raw bytes, JSON stringify, or a canonical form.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/crypto/sign/?utm_source=studio&utm_medium=tooltip&utm_campaign=sign&utm_content=data-transform#data-canonicalization',
+ },
+ keySecret: {
+ tooltip: 'Provide the signing secret or private key; store in Vault, not in code.',
+ },
+ hashType: {
+ tooltip: 'Select the digest used inside the method, for example SHA-256.',
+ },
+ outputEncoding: {
+ tooltip: 'Choose how the signature is returned: hex, Base64, or Base64URL.',
+ },
+ },
+ },
+
+ FTimestamp: {
+ description: 'Generate timestamps for your workflow.',
+ fieldTooltips: {},
+ },
+
+ // RAG Data Components
+ DataSourceLookup: {
+ description: 'Retrieves relevant text from indexed knowledge using semantic search. Searches a chosen namespace and returns top matches with optional metadata and scores. For setup and tuning, see RAG Search guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-search&utm_content=component-header',
+ fieldTooltips: {
+ namespace: {
+ tooltip: 'Select the memory bucket to search, matching the namespace used when indexing.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-search&utm_content=namespace#step-1-define-the-search-scope',
+ },
+ topK: {
+ tooltip: 'Choose how many top matches to return; more can raise cost.',
+ },
+ includeMetadata: {
+ tooltip: 'Return stored fields like title, URL, tags, and timestamps with each result.',
+ },
+ scoreThreshold: {
+ tooltip: 'Hide items below this 0–1 relevance score; higher keeps only strong matches.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-search&utm_content=score-threshold#step-2-filter-and-format-the-output',
+ },
+ includeScore: {
+ tooltip: 'Add the similarity score to each item for sorting and debugging.',
+ },
+ },
+ },
+
+ DataSourceIndexer: {
+ description: 'Adds or updates content in the agent\'s knowledge base. Stores text and optional metadata in a selected namespace with a stable source ID, enabling later search, updates, or deletion. Designed for incremental, traceable knowledge updates. For quick tips, see RAG Remember guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-remember/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-remember&utm_content=component-header',
+ fieldTooltips: {
+ namespace: {
+ tooltip: 'Select the memory bucket where this source is stored; keep staging and production separate.',
+ },
+ id: {
+ tooltip: 'Stable unique ID for this source; allowed: a–z, A–Z, 0–9, -, _, .; reusing updates the existing entry.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-remember/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-remember&utm_content=source-identifier#step-1-define-the-namespace-and-source-details',
+ },
+ name: {
+ tooltip: 'Human-readable name shown in dashboards and logs.',
+ },
+ metadata: {
+ tooltip: 'Optional JSON or text with author, tags, and timestamps to improve search and filtering.',
+ },
+ },
+ },
+
+ DataSourceCleaner: {
+ description: 'Deletes a specific source from a selected namespace using its exact source identifier. Operation is permanent and intended for data hygiene and compliance workflows. For quick tips, see RAG Forget guide.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-forget/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-forget&utm_content=source-identifier',
+ fieldTooltips: {
+ namespaceId: {
+ tooltip: 'Select the namespace that contains the source to remove.',
+ },
+ id: {
+ tooltip: 'Enter the exact ID used during indexing (a–z, A–Z, 0–9, -, _, .).',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/rag-data/rag-forget/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-forget&utm_content=source-identifier#step-1-specify-the-target-data',
+ },
+ },
+ },
+
+ // Memory Components
+ MemoryWriteInput: {
+ description: 'Write to memory by slot name for storing data that can be accessed later.',
+ fieldTooltips: {
+ name: {
+ tooltip: 'Give this slot a unique name other nodes can read. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ scope: {
+ tooltip: 'Choose scope: session, user, or project/global. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ },
+ },
+
+ MemoryWriteKeyVal: {
+ description: 'Store key-value pairs in memory for later retrieval.',
+ fieldTooltips: {
+ memoryName: {
+ tooltip: 'Select the key-value store to write into (e.g., \'crm_cache\'). <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ key: {
+ tooltip: 'Key for the value; supports dynamic inputs like {{user.id}}. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ value: {
+ tooltip: 'Data to save: string, number, or JSON. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ scope: {
+ tooltip: 'Pick persistence: session, user, or project. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ },
+ },
+
+ MemoryReadOutput: {
+ description: 'Read data from memory slots by name.',
+ fieldTooltips: {
+ name: {
+ tooltip: 'Name of the memory slot to read; must match the write. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ scope: {
+ tooltip: 'Scope to read: session, user, or project. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ },
+ },
+
+ MemoryReadKeyVal: {
+ description: 'Read key-value data from memory stores.',
+ fieldTooltips: {
+ name: {
+ tooltip: 'Select the key-value store to query (e.g., \'crm_cache\'). <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ scope: {
+ tooltip: 'Choose session, user, or project for the lookup. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ },
+ },
+
+ MemoryDeleteKey: {
+ description: 'Delete keys from memory stores.',
+ fieldTooltips: {
+ name: {
+ tooltip: 'Select the key-value store containing the key to delete. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ scope: {
+ tooltip: 'Choose the scope where the key should be removed. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ },
+ },
+ },
+
+ // Legacy Components
+ LLMPrompt: {
+ description: 'Generates a single, stateless completion from a text prompt using the selected model. Supports templated variables and an optional passthrough of the original input. This is a legacy component; for multi-turn chat or newer controls, see LLM Assistant and GenAI LLM.',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Select the language model that generates the response; larger models handle longer or harder tasks.',
+ },
+ prompt: {
+ tooltip: 'Write clear instructions with placeholders (e.g., {{input}}) and state the expected format.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/advanced/llm-assistant/?utm_source=app&utm_medium=component&utm_campaign=docs&utm_content=llm-prompt-legacy#step-2-define-the-behavior',
+ },
+ },
+ },
+
+ MultimodalLLM: {
+ description: 'Runs a single-turn prompt on a multimodal model that reads text plus images, audio, or video. Accepts media inputs and returns a result ready for downstream steps. See setup, limits, and file types.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/legacy/multimodal-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=multimodal-llm-overview',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Select a multimodal model for text plus images, audio, or video.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/legacy/multimodal-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=multimodal-llm',
+ },
+ prompt: {
+ tooltip: 'Describe the task and how the attached media is used (e.g., extract, compare, caption).',
+ },
+ },
+ },
+
+ VisionLLM: {
+ description: 'Processes images with a vision model to extract text, detect objects, or describe scenes. Accepts one or more image inputs and returns a structured result. See supported formats and steps.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/legacy/vision-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=vision-llm-overview',
+ fieldTooltips: {
+ model: {
+ tooltip: 'Choose a vision model for image understanding.',
+ docsLink: 'https://smythos.com/docs/agent-studio/components/legacy/vision-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=vision-llm-model#step-1-select-a-model',
+ },
+ prompt: {
+ tooltip: 'Explain what to extract or describe from the images (for example, detection, OCR, quality check).',
+ },
+ },
+ },
+};
+
+/**
+ * Check if a component should have tooltips
+ * Memory and Logic components are excluded
+ */
+export function shouldShowComponentTooltips(componentClassName: string): boolean {
+ // Exclude Logic components
+ if (componentClassName.startsWith('Logic')) {
+ return false;
+ }
+
+ return true;
+}
+
+/**
+ * Get component documentation
+ */
+export function getComponentDocumentation(componentClassName: string): ComponentDocumentation | null {
+ if (!shouldShowComponentTooltips(componentClassName)) {
+ return null;
+ }
+
+ return COMPONENT_DOCUMENTATION[componentClassName] || null;
+}
+
+/**
+ * Get field tooltip for a specific component and field
+ */
+export function getFieldTooltip(componentClassName: string, fieldName: string): ComponentFieldTooltip | null {
+ const componentDoc = getComponentDocumentation(componentClassName);
+ if (!componentDoc || !componentDoc.fieldTooltips[fieldName]) {
+ return null;
+ }
+
+ return componentDoc.fieldTooltips[fieldName];
+}
\ No newline at end of file
diff --git a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts b/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
index e1c81ee1..a1691a59 100644
--- a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
+++ b/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
@@ -11,6 +11,7 @@ import {
import { setReadonlyMode } from '../../ui/dom';
import { readFormValues, syncCompositeValues } from '../../ui/form';
import { delay, dispatchSubmitEvent } from '../../utils';
+import { getComponentDocumentation } from './component-documentation';
async function onComponentLoad(sidebar) {
const component = this;
@@ -20,6 +21,61 @@ async function onComponentLoad(sidebar) {
const titleRightActions = sidebar.querySelector('.title-right-buttons');
const titleLeftActions = sidebar.querySelector('.title-left-buttons');
+ // Add component description below title if available
+ const componentDoc = getComponentDocumentation(component.constructor.name);
+ if (componentDoc) {
+ const contentElement = sidebar.querySelector('.dialog-content');
+ if (contentElement) {
+ const descriptionDiv = document.createElement('div');
+ descriptionDiv.className = 'component-description px-4 pb-3 border-b border-gray-100';
+
+ // Split description into sentences and check if it's longer than 2 sentences
+ const sentences = componentDoc.description.split(/(?<=[.!?])\s+/);
+ const isLongDescription = sentences.length > 2;
+ const shortDescription = sentences.slice(0, 2).join(' ');
+ const fullDescription = componentDoc.description;
+
+ if (isLongDescription) {
+ descriptionDiv.innerHTML = `
+ <p class="text-sm text-gray-600 leading-relaxed">
+ <span class="description-short">${shortDescription}</span>
+ <span class="description-full hidden">${fullDescription}</span>
+ <button class="see-more-btn text-blue-600 hover:text-blue-800 text-xs ml-1 cursor-pointer">See more</button>
+ <button class="see-less-btn text-blue-600 hover:text-blue-800 text-xs ml-1 cursor-pointer hidden">See less</button>
+ </p>
+ ${componentDoc.docsLink ? `<a href="${componentDoc.docsLink}" target="_blank" class="text-xs text-blue-600 hover:text-blue-800 mt-1 inline-block">View Documentation →</a>` : ''}
+ `;
+
+ // Add event listeners for see more/less functionality
+ const seeMoreBtn = descriptionDiv.querySelector('.see-more-btn');
+ const seeLessBtn = descriptionDiv.querySelector('.see-less-btn');
+ const shortSpan = descriptionDiv.querySelector('.description-short');
+ const fullSpan = descriptionDiv.querySelector('.description-full');
+
+ seeMoreBtn.addEventListener('click', () => {
+ shortSpan.classList.add('hidden');
+ fullSpan.classList.remove('hidden');
+ seeMoreBtn.classList.add('hidden');
+ seeLessBtn.classList.remove('hidden');
+ });
+
+ seeLessBtn.addEventListener('click', () => {
+ shortSpan.classList.remove('hidden');
+ fullSpan.classList.add('hidden');
+ seeMoreBtn.classList.remove('hidden');
+ seeLessBtn.classList.add('hidden');
+ });
+ } else {
+ descriptionDiv.innerHTML = `
+ <p class="text-sm text-gray-600 leading-relaxed">${componentDoc.description}</p>
+ ${componentDoc.docsLink ? `<a href="${componentDoc.docsLink}" target="_blank" class="text-xs text-blue-600 hover:text-blue-800 mt-1 inline-block">View Documentation →</a>` : ''}
+ `;
+ }
+
+ contentElement.insertBefore(descriptionDiv, contentElement.firstChild);
+ }
+ }
+
const deleteButton: HTMLButtonElement = actionElement.querySelector('button.del-btn');
deleteButton.classList.remove('hidden');
deleteButton.onclick = component.delete.bind(this, false);
diff --git a/packages/app/src/builder-ui/components/FEncDec.class.ts b/packages/app/src/builder-ui/components/FEncDec.class.ts
index 221c985d..02e847f6 100644
--- a/packages/app/src/builder-ui/components/FEncDec.class.ts
+++ b/packages/app/src/builder-ui/components/FEncDec.class.ts
@@ -1,5 +1,3 @@
-import { Component } from './Component.class';
-import { delay } from '../utils';
import { FunctionComponent } from './FunctionComponent.class';
const encodings = ['hex', 'base64', 'base64url', 'latin1'];
@@ -10,7 +8,7 @@ export class FEncDec extends FunctionComponent {
action: {
type: 'select',
label: 'Action',
- hint: 'Action to perform',
+ help: 'Select Encode to produce a formatted string, or Decode to read one.',
value: 'Encode',
options: ['Encode', 'Decode'],
},
@@ -19,6 +17,7 @@ export class FEncDec extends FunctionComponent {
label: 'encoding',
value: 'hex',
options: encodings,
+ help: 'Choose the scheme: Base64 for binary, hex for hashes, UTF-8 for text. <a href="https://smythos.com/docs/agent-studio/components/crypto/encode-decode/?utm_source=studio&utm_medium=tooltip&utm_campaign=encode-decode&utm_content=encoding#step-1-select-an-action-and-encoding-method" target="_blank" class="text-blue-600 hover:text-blue-800">See common schemes</a>',
},
};
diff --git a/packages/app/src/builder-ui/components/FHash.class.ts b/packages/app/src/builder-ui/components/FHash.class.ts
index 7b87df60..167cdc25 100644
--- a/packages/app/src/builder-ui/components/FHash.class.ts
+++ b/packages/app/src/builder-ui/components/FHash.class.ts
@@ -1,5 +1,3 @@
-import { Component } from './Component.class';
-import { delay } from '../utils';
import { FunctionComponent } from './FunctionComponent.class';
const hashAlgos = [
@@ -29,6 +27,7 @@ export class FHash extends FunctionComponent {
//hint: 'Action to perform',
value: 'md5',
options: hashAlgos,
+ help: 'Choose the hash function, like SHA-256 for integrity; avoid MD5 for security. <a href="https://smythos.com/docs/agent-studio/components/crypto/hash/?utm_source=studio&utm_medium=tooltip&utm_campaign=hash&utm_content=hash-algorithm#step-1-select-an-algorithm-and-encoding" target="_blank" class="text-blue-600 hover:text-blue-800">See algorithm guidance</a>',
},
encoding: {
type: 'select',
@@ -36,6 +35,7 @@ export class FHash extends FunctionComponent {
//hint: 'Output encoding',
value: 'hex',
options: encodings,
+ help: 'Choose how the hash is returned: hex for readability or Base64 for compact size.',
},
};
diff --git a/packages/app/src/builder-ui/components/FSign.class.ts b/packages/app/src/builder-ui/components/FSign.class.ts
index 30ea7ec7..131fa498 100644
--- a/packages/app/src/builder-ui/components/FSign.class.ts
+++ b/packages/app/src/builder-ui/components/FSign.class.ts
@@ -1,4 +1,3 @@
-import { Component } from './Component.class';
import { delay } from '../utils';
import { FunctionComponent } from './FunctionComponent.class';
@@ -11,14 +10,14 @@ export class FSign extends FunctionComponent {
signMethod: {
type: 'select',
label: 'Signature Method',
- //hint: 'Action to perform',
+ help: 'Choose HMAC with a shared secret or RSA with a private key.',
value: 'HMAC',
options: ['HMAC', 'RSA'],
},
dataTransform: {
type: 'select',
label: 'Data Transform',
- help: 'If the provided data is not a string, it will be transformed using the selected method before signing',
+ help: 'Prepare the data to sign: raw bytes, JSON stringify, or a canonical form. <a href="https://smythos.com/docs/agent-studio/components/crypto/sign/?utm_source=studio&utm_medium=tooltip&utm_campaign=sign&utm_content=data-transform#data-canonicalization" target="_blank" class="text-blue-600 hover:text-blue-800">See canonical formats</a>',
//hint: 'Action to perform',
value: 'Stringify',
options: ['Stringify', 'Querystring'],
@@ -27,7 +26,7 @@ export class FSign extends FunctionComponent {
type: 'textarea',
label: 'Key / Secret',
attributes: { 'data-template-vars': 'true', 'data-vault': `APICall,ALL_NON_GLOBAL_KEYS` },
- hint: 'This will be used if the input key is not supplied as input',
+ help: 'Provide the signing secret or private key; store in Vault, not in code.',
value: '',
},
keyMessage: {
@@ -40,6 +39,7 @@ export class FSign extends FunctionComponent {
label: 'Hash Type',
value: 'md5',
options: ['md5', 'sha1', 'sha256', 'sha512'],
+ help: 'Select the digest used inside the method, for example SHA-256.',
},
RSA_padding: {
type: 'select',
@@ -57,7 +57,7 @@ export class FSign extends FunctionComponent {
encoding: {
type: 'select',
label: 'Output encoding',
- //hint: 'Output encoding',
+ help: 'Choose how the signature is returned: hex, Base64, or Base64URL.',
value: 'hex',
options: ['hex', 'base64', 'base64url', 'latin1', 'utf8'],
},
@@ -91,17 +91,15 @@ export class FSign extends FunctionComponent {
this.drawSettings.color = '#0083ff';
// #endregion
- this.properties.title = `${this.data.signMethod.toUpperCase()}-${this.data.hashType.toUpperCase()} :: ${
- this.data.encoding
- }`;
+ this.properties.title = `${this.data.signMethod.toUpperCase()}-${this.data.hashType.toUpperCase()} :: ${this.data.encoding
+ }`;
this.drawSettings.displayName = 'F:Sign';
}
protected async run() {
if (!this.domElement.style.width) this.domElement.style.width = '130px';
this.addEventListener('settingsSaved', async () => {
- this.title = `${this.data.signMethod.toUpperCase()}-${this.data.hashType.toUpperCase()} :: ${
- this.data.encoding
- }`;
+ this.title = `${this.data.signMethod.toUpperCase()}-${this.data.hashType.toUpperCase()} :: ${this.data.encoding
+ }`;
this.domElement.querySelector('.title .text').textContent = this.title;
});
diff --git a/packages/app/src/builder-ui/components/FSleep.class.ts b/packages/app/src/builder-ui/components/FSleep.class.ts
index 2c92d6c9..79e5b512 100644
--- a/packages/app/src/builder-ui/components/FSleep.class.ts
+++ b/packages/app/src/builder-ui/components/FSleep.class.ts
@@ -1,5 +1,3 @@
-import { Component } from './Component.class';
-import { delay } from '../utils';
import { FunctionComponent } from './FunctionComponent.class';
const encodings = ['hex', 'base64', 'base64url', 'latin1'];
@@ -10,8 +8,7 @@ export class FSleep extends FunctionComponent {
delay: {
type: 'range',
label: 'Delay',
- hint: 'Delay in seconds',
- help: 'Wait for the specified number of seconds before continuing.The provided input will be passed to the output without any changes.',
+ help: 'Pause for the set seconds, then continue; input passes through unchanged. <a href="https://smythos.com/docs/agent-studio/components/advanced/sleep/?utm_source=studio&utm_medium=tooltip&utm_campaign=sleep&utm_content=component-header#step-1-set-the-delay-duration" target="_blank" class="text-blue-600 hover:text-blue-800">See dynamic delays and limits</a>',
min: 1,
max: 3600,
value: 1,
diff --git a/packages/app/src/builder-ui/components/FileStore.class.ts b/packages/app/src/builder-ui/components/FileStore.class.ts
index e82b83f7..4f398f1c 100644
--- a/packages/app/src/builder-ui/components/FileStore.class.ts
+++ b/packages/app/src/builder-ui/components/FileStore.class.ts
@@ -7,6 +7,7 @@ export class FileStore extends Component {
name: {
type: 'input',
label: 'File Name',
+ help: 'Name the download and include an extension like .json or .png for easy use. <a href="https://smythos.com/docs/agent-studio/components/base/filestore/?utm_source=studio&utm_medium=tooltip&utm_campaign=filestore&utm_content=file-name#step-1-define-inputs" target="_blank" class="text-blue-600 hover:text-blue-800">See naming tips</a>',
validate: `maxlength=50 custom=isValidS3FileName`,
validateMessage: `Only alphanumeric characters, '-', '_' and '.' are allowed.`,
value: '',
@@ -15,8 +16,8 @@ export class FileStore extends Component {
ttl: {
type: 'select',
label: 'TTL',
- help: 'Time to live',
value: '86400', // Default to 1 day
+ help: 'Set how long the public link stays valid before it expires. <a href="https://smythos.com/docs/agent-studio/components/base/filestore/?utm_source=studio&utm_medium=tooltip&utm_campaign=filestore&utm_content=ttl#step-1-define-inputs" target="_blank" class="text-blue-600 hover:text-blue-800">See TTL options</a>',
tooltipClasses: 'w-28',
arrowClasses: '-ml-11',
options: [
diff --git a/packages/app/src/builder-ui/components/ForEach.class.ts b/packages/app/src/builder-ui/components/ForEach.class.ts
index 0f4ffeff..64cb0241 100644
--- a/packages/app/src/builder-ui/components/ForEach.class.ts
+++ b/packages/app/src/builder-ui/components/ForEach.class.ts
@@ -6,6 +6,7 @@ export class ForEach extends Component {
format: {
type: 'select',
label: 'Output Format',
+ help: 'Choose Full for item plus metadata, Minimal for the last step\'s output only, or Array of Results for a simple list. <a href="https://smythos.com/docs/agent-studio/components/advanced/for-each/?utm_source=studio&utm_medium=tooltip&utm_campaign=for-each&utm_content=output-format#step-3-select-an-output-format" target="_blank" class="text-blue-600 hover:text-blue-800">See format examples</a>',
value: 'full',
options: [
{ text: 'Full', value: 'full' },
diff --git a/packages/app/src/builder-ui/components/GenAILLM.class.ts b/packages/app/src/builder-ui/components/GenAILLM.class.ts
index dcb2563d..027318df 100644
--- a/packages/app/src/builder-ui/components/GenAILLM.class.ts
+++ b/packages/app/src/builder-ui/components/GenAILLM.class.ts
@@ -10,7 +10,6 @@ import { delay } from '../utils/general.utils';
import { Component } from './Component.class';
// Since getWebSearchFields is called multiple times, using a static import is more efficient than a lazy import.
-import { SMYTHOS_DOCS_URL } from '../../shared/constants/general';
import ianaTimezones from '../params/IANA-time-zones';
import isoCountryCodes from '../params/ISO-country-code';
@@ -342,7 +341,7 @@ export class GenAILLM extends Component {
model: {
type: 'select',
label: 'Select a Model',
- help: 'Choose an AI model to process the prompt.',
+ help: 'Choose the model that will generate and interpret text. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=model#step-1-choose-a-model" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
hintPosition: 'after_label',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
@@ -491,7 +490,7 @@ export class GenAILLM extends Component {
validate: `required`, // Omit maximum length, as the tokens counted in backend may be different from the frontend.
validateMessage: `Please provide a prompt. It's required!`,
value: defaultPromptValue,
- hint: `Your prompt is aware of any files you add to the Attachment or Binary type input.\nSee <a href="${SMYTHOS_DOCS_URL}/agent-studio/components/base/gen-ai-llm" class="underline" target="_blank">documentation</a>.`,
+ help: 'Write clear instructions with placeholders (e.g., {{input}}) and state the expected format. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=prompt#step-2-write-your-prompt" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
hintPosition: 'after_label',
attributes: {
'data-template-vars': 'true',
@@ -512,9 +511,8 @@ export class GenAILLM extends Component {
},
maxContextTokens: {
type: 'div',
- html: `<strong class="px-2">Context window size: <span class="tokens_num">${
- allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
- }</span> tokens</strong>`,
+ html: `<strong class="px-2">Context window size: <span class="tokens_num">${allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
+ }</span> tokens</strong>`,
cls: 'mb-0',
attributes: {
'data-supported-models':
@@ -529,9 +527,8 @@ export class GenAILLM extends Component {
},
webSearchContextSizeInfo: {
type: 'div',
- html: `<strong class="px-2">Search Context Size: <span class="tokens_num">${
- allowedWebSearchContextTokens ? allowedWebSearchContextTokens.toLocaleString() : 'Unknown'
- }</span> tokens</strong>`,
+ html: `<strong class="px-2">Search Context Size: <span class="tokens_num">${allowedWebSearchContextTokens ? allowedWebSearchContextTokens.toLocaleString() : 'Unknown'
+ }</span> tokens</strong>`,
attributes: {
'data-supported-models': [...this.searchModels].join(','),
},
@@ -581,7 +578,7 @@ export class GenAILLM extends Component {
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere',
},
section: 'Advanced',
- help: hint.maxTokens,
+ help: 'Limit reply length to manage cost and avoid cutoffs. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=context-window-size#step-4-configure-advanced-settings" target="_blank" class="text-blue-600 hover:text-blue-800">See token limits</a>',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
@@ -600,7 +597,7 @@ export class GenAILLM extends Component {
].join(','),
},
section: 'Advanced',
- help: hint.stopSequences,
+ help: 'End output when any of the stop strings (sequence of up to 4 strings) appear. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=stop-sequence#step-4-configure-advanced-settings" target="_blank" class="text-blue-600 hover:text-blue-800">See stopping examples</a>',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
hint: 'Input a sequence and press Enter, Space, or Comma to add it to the list.',
@@ -628,7 +625,7 @@ export class GenAILLM extends Component {
].join(','),
},
section: 'Advanced',
- help: hint.topP,
+ help: 'Control variety by sampling from the smallest set of likely words that reach probability P.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
@@ -646,7 +643,7 @@ export class GenAILLM extends Component {
'data-excluded-models': this.anthropicThinkingModels.join(','),
},
section: 'Advanced',
- help: hint.topK,
+ help: 'Restrict generation to the top K most likely words to reduce randomness.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
@@ -668,7 +665,7 @@ export class GenAILLM extends Component {
].join(','),
},
section: 'Advanced',
- help: hint.frequencyPenalty,
+ help: 'Reduce repeats by penalising words already used in the reply.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
@@ -690,7 +687,7 @@ export class GenAILLM extends Component {
].join(','),
},
section: 'Advanced',
- help: hint.presencePenalty,
+ help: 'Encourage new topics by penalising words seen in the input.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
@@ -706,7 +703,7 @@ export class GenAILLM extends Component {
attributes: {
'data-supported-models': this.gpt5Models.join(','),
},
- help: "Controls the verbosity of the model's response. Lower values result in more concise responses, while higher values result in more verbose responses. Currently supported by GPT-5 models.",
+ help: 'Control how much reasoning detail appears in the response.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
section: 'Advanced',
@@ -719,7 +716,7 @@ export class GenAILLM extends Component {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere,Echo',
}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported models
- help: 'If the component is running under a chatbot or agentLLM, The generated output will be directly streamed to the chat output',
+ help: 'Stream the response live to chat, or turn off for batch runs. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=passthrough#step-4-configure-advanced-settings" target="_blank" class="text-blue-600 hover:text-blue-800">See passthrough details</a>',
section: 'Advanced',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
@@ -734,7 +731,7 @@ export class GenAILLM extends Component {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',
}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported models
- help: 'The running Agent system prompt will be passed as a system prompt to this component',
+ help: 'Apply the agent\'s rules and tone to this call for consistency.',
section: 'Advanced',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
@@ -747,7 +744,7 @@ export class GenAILLM extends Component {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',
}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported models
- help: 'The running Agent context window will be passed as a context window to this component',
+ help: 'Include recent chat history when responses depend on prior turns.',
section: 'Advanced',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
@@ -791,7 +788,7 @@ export class GenAILLM extends Component {
...this.groqReasoningModels,
].join(','),
},
- help: 'Enable thinking capabilities to allow the model to break down complex problems into steps and think through solutions methodically',
+ help: 'Enable step-by-step reasoning for complex or multi-step tasks.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
section: 'Advanced',
@@ -831,7 +828,7 @@ export class GenAILLM extends Component {
this.getReasoningEffortOptions(this.data.model || this.defaultModel),
),
options: this.getReasoningEffortOptions(this.data.model || this.defaultModel),
- help: 'Controls the level of effort the model will put into reasoning. GPT-OSS models support low/medium/high levels, while Qwen models support none/default.',
+ help: 'Set how deeply the model reasons; higher is slower but more accurate.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
section: 'Advanced',
@@ -895,7 +892,7 @@ export class GenAILLM extends Component {
label: 'Use Web Search',
value: false,
attributes: openAIAttributes,
- help: 'Allow models to search the web for the latest information before generating a response.',
+ help: 'Allow the model to fetch fresh, real-time information.',
section: 'Advanced',
events: {
change: (event) => {
@@ -1585,18 +1582,18 @@ export class GenAILLM extends Component {
// Fallback to input value if MetroUI component not available
return input.value
? input.value
- .split(',')
- .map((tag) => tag.trim())
- .filter((tag) => tag)
+ .split(',')
+ .map((tag) => tag.trim())
+ .filter((tag) => tag)
: [];
} catch (error) {
console.warn('Error getting tag input value:', error);
// Final fallback to input value
return input.value
? input.value
- .split(',')
- .map((tag) => tag.trim())
- .filter((tag) => tag)
+ .split(',')
+ .map((tag) => tag.trim())
+ .filter((tag) => tag)
: [];
}
};
@@ -1814,18 +1811,18 @@ export class GenAILLM extends Component {
// Fallback to input value if MetroUI component not available
return input.value
? input.value
- .split(',')
- .map((tag) => tag.trim())
- .filter((tag) => tag)
+ .split(',')
+ .map((tag) => tag.trim())
+ .filter((tag) => tag)
: [];
} catch (error) {
console.warn('Error getting tag input value:', error);
// Final fallback to input value
return input.value
? input.value
- .split(',')
- .map((tag) => tag.trim())
- .filter((tag) => tag)
+ .split(',')
+ .map((tag) => tag.trim())
+ .filter((tag) => tag)
: [];
}
};
diff --git a/packages/app/src/builder-ui/components/ImageGenerator.class.ts b/packages/app/src/builder-ui/components/ImageGenerator.class.ts
index d39d4f9a..293eb864 100644
--- a/packages/app/src/builder-ui/components/ImageGenerator.class.ts
+++ b/packages/app/src/builder-ui/components/ImageGenerator.class.ts
@@ -1,4 +1,3 @@
-import { SMYTHOS_DOCS_URL } from '../../shared/constants/general';
import { LLM_PROVIDERS } from '../constants';
import { LLMFormController } from '../helpers/LLMFormController.helper';
import { createBadge } from '../ui/badges';
@@ -111,7 +110,7 @@ export class ImageGenerator extends Component {
type: 'select',
withoutSearch: true,
label: 'Select a model',
- help: 'Choose an AI model to process the prompt.',
+ help: 'Choose a model that matches your style and detail needs.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
value: this.defaultModel,
@@ -181,8 +180,7 @@ export class ImageGenerator extends Component {
validateMessage: `The length of the prompt must be between 2 and 2000 characters.`,
class: 'mt-1',
value: '{{Prompt}}',
- hint: `Your prompt is aware of any files you add to the Attachment or Binary type input.\nSee <a href="${SMYTHOS_DOCS_URL}/agent-studio/components/base/image-generator" class="underline" target="_blank">documentation</a>.`,
- hintPosition: 'after_label',
+ help: 'Describe what to generate by describing the subject, style, and constraints. <a href="https://smythos.com/docs/agent-studio/components/base/image-generator/?utm_source=studio&utm_medium=tooltip&utm_campaign=image-generator&utm_content=prompt#step-2-define-inputs" target="_blank" class="text-blue-600 hover:text-blue-800">See prompt tips</a>',
attributes: {
'data-template-vars': 'true',
'data-template-excluded-vars': 'Attachment',
@@ -194,7 +192,7 @@ export class ImageGenerator extends Component {
type: 'select',
withoutSearch: true,
label: 'Quality',
- help: 'Choose the image quality—high for best clarity, medium for a balance between quality and size, or low for faster processing and smaller file size.',
+ help: 'Decide how detailed the output is, trading off speed and cost.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-15',
value: '', // We need to keep this empty as 'standard' is not supported for other models like GPT Image 1
@@ -213,7 +211,7 @@ export class ImageGenerator extends Component {
type: 'select',
withoutSearch: true,
label: 'Output Format',
- help: 'Select the output format: JPEG for smaller size, PNG for transparency support, or WebP for modern compression with good quality. ',
+ help: 'Set the file type you\'ll get back, like JPEG for photos, PNG for transparency, or WebP for web use.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
value: 'JPEG',
@@ -279,7 +277,7 @@ function getRunwareSettings(savedData: Record<string, string>) {
value: savedData.negativePrompt || '',
section: 'Advanced',
attributes: { 'data-supported-models': LLM_PROVIDERS.RUNWARE },
- help: `A negative prompt is a text instruction to guide the model on generating the image. It is usually a sentence or a paragraph that provides negative guidance for the task. This parameter helps to avoid certain undesired results.\nFor example, if the negative prompt is &#34;red dragon, cup&#34;, the model will follow the positive prompt but will avoid generating an image of a red dragon or including a cup. The more detailed the prompt, the more accurate the results.`,
+ help: 'Block unwanted elements, styles, or colors from appearing in the image.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
},
diff --git a/packages/app/src/builder-ui/components/JSONFilter.class.ts b/packages/app/src/builder-ui/components/JSONFilter.class.ts
index 2c2cb76d..98fe0c6d 100644
--- a/packages/app/src/builder-ui/components/JSONFilter.class.ts
+++ b/packages/app/src/builder-ui/components/JSONFilter.class.ts
@@ -9,7 +9,7 @@ export class JSONFilter extends Component {
value: '',
validate: `maxlength=1000`,
validateMessage: `Maximun 1000 characters`,
- hint: 'Comma separated json fields to keep',
+ help: 'List the paths to keep, like user.email, id, or items[0].name; anything not listed is removed. <a href="https://smythos.com/docs/agent-studio/components/advanced/json-filter/?utm_source=studio&utm_medium=tooltip&utm_campaign=json-filter&utm_content=fields#step-1-define-filter-parameters" target="_blank" class="text-blue-600 hover:text-blue-800">See path rules and nested keys</a>',
attributes: { 'data-template-vars': '' },
},
};
diff --git a/packages/app/src/builder-ui/components/MCPClient.class.ts b/packages/app/src/builder-ui/components/MCPClient.class.ts
index 90538ed8..80937f29 100644
--- a/packages/app/src/builder-ui/components/MCPClient.class.ts
+++ b/packages/app/src/builder-ui/components/MCPClient.class.ts
@@ -51,6 +51,7 @@ export class MCPClient extends Component {
value: '',
validate: `required`,
label: 'MCP URL',
+ help: 'Enter the MCP server URL so the client can list the tools it offers.',
validateMessage: 'MCP URL is required',
},
prompt: {
@@ -59,6 +60,7 @@ export class MCPClient extends Component {
value: '{{Prompt}}',
validate: `required`,
validateMessage: 'Prompt is required',
+ help: 'Tell the tool what to do and what to return; name the tool and key parameters. <a href="https://smythos.com/docs/agent-studio/components/tools/mcp-client/?utm_source=studio&utm_medium=tooltip&utm_campaign=mcp-client&utm_content=prompt#step-3-provide-inputs" target="_blank" class="text-blue-600 hover:text-blue-800">See prompt patterns</a>',
attributes: {
'data-template-vars': 'true',
'data-template-excluded-vars': 'Attachment',
@@ -69,13 +71,14 @@ export class MCPClient extends Component {
model: {
type: 'select',
label: 'Model',
+ help: 'Choose the model that will plan and call tools; larger models help with long or multi step tasks.',
value: this.defaultModel,
options: this.modelOptions,
},
descForModel: {
type: 'textarea',
label: 'System Prompt',
- hint: 'The system prompt can be used to customize the behavior of your MCP',
+ help: 'Set rules for all calls, like allowed tools, tone, and required output format.',
section: 'Advanced',
value: this.descForModel,
validate: `maxlength=5000`,
diff --git a/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts
index 2d228bfe..77819464 100644
--- a/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts
+++ b/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts
@@ -19,6 +19,15 @@ export class MemoryDeleteKeyVal extends Component {
hint: 'Key to delete from memory',
validate: `maxlength=50`,
attributes: { 'data-template-vars': 'true' },
+ help: 'Select the key-value store containing the key to delete. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ validateMessage: 'Enter a non-empty name, not more than 50 characters.',
+ },
+ scope: {
+ type: 'select',
+ label: 'Scope',
+ help: 'Choose the scope where the key should be removed. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ value: 'Session',
+ options: ['Session'],
},
};
diff --git a/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts
index ae740d34..2987fa0e 100644
--- a/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts
+++ b/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts
@@ -19,6 +19,15 @@ export class MemoryReadKeyVal extends Component {
hint: 'Key to read from memory',
validate: `maxlength=50`,
attributes: { 'data-template-vars': 'true' },
+ help: 'Select the key-value store to query (e.g., \'crm_cache\'). <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ validateMessage: 'Enter a non-empty name, not more than 50 characters.',
+ },
+ scope: {
+ type: 'select',
+ label: 'Scope',
+ help: 'Choose session, user, or project for the lookup. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
+ value: 'Session',
+ options: ['Session'],
},
// scope: {
// type: 'select',
diff --git a/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts
index b6943323..44502262 100644
--- a/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts
+++ b/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts
@@ -11,12 +11,13 @@ export class MemoryWriteKeyVal extends Component {
validate: `required maxlength=100`,
validateMessage: 'Enter a non-empty name, not more than 100 characters.',
attributes: { 'data-template-vars': 'true' },
+ help: 'Select the key-value store to write into (e.g., \'crm_cache\'). <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
},
key: {
type: 'input',
label: 'Key',
value: '{{Key}}',
- hint: 'Key to store in memory',
+ help: 'Key for the value; supports dynamic inputs like {{user.id}}. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
validate: `maxlength=50`,
attributes: { 'data-template-vars': 'true' },
},
@@ -24,13 +25,12 @@ export class MemoryWriteKeyVal extends Component {
type: 'textarea',
label: 'Value',
value: '{{Value}}',
- hint: 'Text value to store in memory',
+ help: 'Data to save: string, number, or JSON. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
attributes: { 'data-template-vars': 'true' },
},
scope: {
type: 'select',
label: 'Scope',
- hint: 'Memory Scope',
value: 'ttl',
options: [
{ value: 'ttl', text: 'TTL' },
@@ -47,11 +47,11 @@ export class MemoryWriteKeyVal extends Component {
else ttl?.classList.add('hidden');
},
},
+ help: 'Pick persistence: session, user, or project. <a href="#" target="_blank" class="text-blue-600 hover:text-blue-800">Go to Docs</a>',
},
ttl: {
type: 'select',
label: 'TTL',
- hint: 'Time to live',
value: '300',
options: [
{ value: '300', text: '5 minutes' },
@@ -66,6 +66,7 @@ export class MemoryWriteKeyVal extends Component {
{ value: '86400', text: '1 day' },
{ value: '604800', text: '1 week' },
],
+ hint: 'Time to live',
},
};
diff --git a/packages/app/src/builder-ui/components/MultimodalLLM.class.ts b/packages/app/src/builder-ui/components/MultimodalLLM.class.ts
index 9824deef..d441b9dd 100644
--- a/packages/app/src/builder-ui/components/MultimodalLLM.class.ts
+++ b/packages/app/src/builder-ui/components/MultimodalLLM.class.ts
@@ -111,7 +111,7 @@ export class MultimodalLLM extends Component {
model: {
type: 'select',
label: 'Model',
- hint: 'Model name',
+ help: 'Select a multimodal model for text plus images, audio, or video. <a href="https://smythos.com/docs/agent-studio/components/legacy/multimodal-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=multimodal-llm" target="_blank" class="text-blue-600 hover:text-blue-800">See Model details</a>',
value: this.defaultModel,
options: this.modelOptions,
events: {
@@ -127,13 +127,13 @@ export class MultimodalLLM extends Component {
validate: `required`, // Omit maximum length, as the tokens counted in backend may be different from the frontend.
validateMessage: `Please provide a prompt. It's required!`,
value: 'What is the video about?',
+ help: 'Describe the task and how the attached media is used (e.g., extract, compare, caption).',
attributes: { 'data-template-vars': 'true' },
},
maxContextTokens: {
type: 'div',
- html: `<strong class="px-2">Context window size: <span class="tokens_num">${
- allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
- }</span> tokens</strong><br/>`,
+ html: `<strong class="px-2">Context window size: <span class="tokens_num">${allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
+ }</span> tokens</strong><br/>`,
attributes: {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',
diff --git a/packages/app/src/builder-ui/components/Note.class.ts b/packages/app/src/builder-ui/components/Note.class.ts
index 8c20cff6..5a3ea630 100644
--- a/packages/app/src/builder-ui/components/Note.class.ts
+++ b/packages/app/src/builder-ui/components/Note.class.ts
@@ -43,7 +43,7 @@ export class Note extends Component {
{ text: 'Plain Text', value: 'plaintext' },
{ text: 'Markdown', value: 'markdown' },
],
- help: 'Choose how your note content is formatted and displayed.',
+ help: 'Turn on headings, lists, links, and code formatting. Processes content in Markdown format for notes, headings, lists, and styled text instead of plain text.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
hintPosition: 'bottom',
@@ -59,7 +59,7 @@ export class Note extends Component {
type: 'textarea',
label: 'Content',
value: this.data.content || '',
- help: "Add your note's text or markdown content.",
+ help: 'Store note content for context, decisions, and next steps.',
tooltipClasses: 'w-40',
arrowClasses: '-ml-11',
hintPosition: 'bottom',
@@ -72,7 +72,7 @@ export class Note extends Component {
label: 'Text Color',
class: 'w-full',
value: this.data.textColor || '#000000',
- help: "Choose the color of the note's text to improve readability or match your style.",
+ help: 'Set text color for readability and clear grouping.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
hintPosition: 'bottom',
@@ -90,7 +90,7 @@ export class Note extends Component {
label: 'Background Color',
class: 'w-full',
value: this.data.color || '#c7ff1529',
- help: 'Set the background color of the note to organize or highlight different types of information.',
+ help: 'Pick a background color to label or highlight sections.',
tooltipClasses: 'w-56 ',
arrowClasses: '-ml-11',
events: {
diff --git a/packages/app/src/builder-ui/components/PromptGenerator.class.ts b/packages/app/src/builder-ui/components/PromptGenerator.class.ts
index bc0b7eac..ee818ff5 100644
--- a/packages/app/src/builder-ui/components/PromptGenerator.class.ts
+++ b/packages/app/src/builder-ui/components/PromptGenerator.class.ts
@@ -207,7 +207,7 @@ export class PromptGenerator extends Component {
model: {
type: 'select',
label: 'Model',
- hint: 'Model name',
+ help: 'Select the language model that generates the response; larger models handle longer or harder tasks.',
value: this.defaultModel,
options: this.modelOptions,
dropdownHeight: 350, // In pixels
@@ -287,13 +287,13 @@ export class PromptGenerator extends Component {
class: 'mt-1',
validateMessage: `Please provide a prompt. It's required!`,
value: 'Summarize the input text\nInput : {{Input}}',
+ help: 'Write clear instructions with placeholders (e.g., {{input}}) and state the expected format. <a href="https://smythos.com/docs/agent-studio/components/advanced/llm-assistant/?utm_source=app&utm_medium=component&utm_campaign=docs&utm_content=llm-prompt-legacy#step-2-define-the-behavior" target="_blank" class="text-blue-600 hover:text-blue-800">See prompt templates</a>',
attributes: { 'data-template-vars': 'true', 'data-supported-models': 'all' },
},
maxContextTokens: {
type: 'div',
- html: `<strong class="px-2">Context window size: <span class="tokens_num">${
- allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
- }</span> tokens</strong><br/>`,
+ html: `<strong class="px-2">Context window size: <span class="tokens_num">${allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
+ }</span> tokens</strong><br/>`,
attributes: {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,xAI,TogetherAI,VertexAI,Bedrock,cohere',
diff --git a/packages/app/src/builder-ui/components/VisionLLM.class.ts b/packages/app/src/builder-ui/components/VisionLLM.class.ts
index 89729fbb..c8958416 100644
--- a/packages/app/src/builder-ui/components/VisionLLM.class.ts
+++ b/packages/app/src/builder-ui/components/VisionLLM.class.ts
@@ -104,7 +104,7 @@ export class VisionLLM extends Component {
model: {
type: 'select',
label: 'Model',
- hint: 'Model name',
+ help: 'Choose a vision model for image understanding. <a href="https://smythos.com/docs/agent-studio/components/legacy/vision-llm/?utm_source=app&utm_medium=tooltip&utm_campaign=docs&utm_content=vision-llm-model#step-1-select-a-model" target="_blank" class="text-blue-600 hover:text-blue-800">See Model details</a>',
value: this.defaultModel,
options: this.modelOptions,
events: {
@@ -120,13 +120,13 @@ export class VisionLLM extends Component {
validate: `required`, // Omit maximum length, as the tokens counted in backend may be different from the frontend.
validateMessage: `Please provide a prompt. It's required!`,
value: 'What’s in this image?',
+ help: 'Explain what to extract or describe from the images (for example, detection, OCR, quality check).',
attributes: { 'data-template-vars': 'true' },
},
maxContextTokens: {
type: 'div',
- html: `<strong class="px-2">Context window size: <span class="tokens_num">${
- allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
- }</span> tokens</strong><br/>`,
+ html: `<strong class="px-2">Context window size: <span class="tokens_num">${allowedContextTokens ? allowedContextTokens.toLocaleString() : 'Unknown'
+ }</span> tokens</strong><br/>`,
attributes: {
'data-supported-models':
'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',
diff --git a/packages/app/src/builder-ui/ui/form/fields.ts b/packages/app/src/builder-ui/ui/form/fields.ts
index 651ec2f3..aea0484f 100644
--- a/packages/app/src/builder-ui/ui/form/fields.ts
+++ b/packages/app/src/builder-ui/ui/form/fields.ts
@@ -187,7 +187,14 @@ export function createInfoButton(
},
entryIndex = 0,
) {
+ // Calculate width based on text length, but allow more space for tooltips with links
+ const hasLinks = text.includes('<a ');
let estimatedWidth = text.length * 2 > 48 ? 48 : text.length * 2;
+
+ // If tooltip contains links, use a more generous width calculation
+ if (hasLinks) {
+ estimatedWidth = Math.min(60, Math.max(40, text.length * 1.8));
+ }
// TODO: This is a temporary fix to avoid the tooltip being cutoff in the sidebar and showing it on the top.
// if (entryIndex < 2) {
// position = position || 'bottom';
@@ -221,7 +228,7 @@ export function createInfoButton(
}),
placement: position as any,
className:
- clsHint + ' whitespace-normal text-xs ' + (tooltipClasses || `w-${estimatedWidth}`),
+ clsHint + ' whitespace-normal text-xs ' + (tooltipClasses || (hasLinks ? `min-w-52 max-w-96` : `w-${estimatedWidth}`)) + ' [&_a]:whitespace-nowrap [&_a]:inline-block',
style: 'dark',
arrow: true,
},
diff --git a/packages/app/static/css/smyth-global.css b/packages/app/static/css/smyth-global.css
index 63544e6f..01a9bba2 100644
--- a/packages/app/static/css/smyth-global.css
+++ b/packages/app/static/css/smyth-global.css
@@ -1211,6 +1211,33 @@ html {
.tooltip-pill.tooltip-trigger[data-tooltip-position='right']::after {
border-right-color: #000;
}
+
+/* Ensure tooltip links stay on one line */
+.tooltip a,
+[role="tooltip"] a,
+.smt-hint a {
+ white-space: nowrap !important;
+ display: inline-block;
+ text-decoration: underline;
+ color: inherit;
+ word-break: keep-all;
+ overflow-wrap: normal;
+}
+
+.tooltip a:hover,
+[role="tooltip"] a:hover,
+.smt-hint a:hover {
+ text-decoration: underline;
+ opacity: 0.8;
+}
+
+/* Ensure tooltip containers can accommodate longer links */
+.smt-hint {
+ max-width: 400px !important;
+ min-width: 200px;
+ word-break: normal;
+}
+
.tooltip-pill.tooltip-trigger[data-tooltip-position='top']::after,
.tooltip-pill.tooltip-trigger[data-tooltip-position='top-left']::after,
.tooltip-pill.tooltip-trigger[data-tooltip-position='top-right']::after {