Skip to content

fix: add missing memories/messages properties to resolve 500 error on node click in Lamatic Studio#173

Merged
akshatvirmani merged 7 commits into
Lamatic:mainfrom
geeked-anshuk666:agentkit-challenge
Jun 7, 2026
Merged

fix: add missing memories/messages properties to resolve 500 error on node click in Lamatic Studio#173
akshatvirmani merged 7 commits into
Lamatic:mainfrom
geeked-anshuk666:agentkit-challenge

Conversation

@geeked-anshuk666

@geeked-anshuk666 geeked-anshuk666 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

1. Select Contribution Type

  • Template (templates/<template-name>/) Note: Followed the new flat repository structure under kits/ai-onboarding-buddy/ per the updated CONTRIBUTING.md

2. General Requirements

  • PR is for one project only (no unrelated changes)
  • No secrets, API keys, or real credentials are committed
  • Folder name uses kebab-case and matches the flow ID
  • All changes are documented in README.md (purpose, setup, usage)

3. File Structure (Check what applies)

  • lamatic.config.ts present with valid metadata (name, description, tags, steps, author, env keys)
  • All flow resources in flows/, prompts/, model-configs/, constitutions/ follow the extraction format.
  • No hand‑edited flow node graphs (changes via Lamatic Studio export format)

4. Validation

  • Flows are verified and structurally valid.
  • PR title is clear (fix: resolve 500 error on node click in Lamatic Studio)
  • GitHub Actions workflows pass (all checks are green)
  • No unrelated files or projects are modified

Description

This is a follow-up fix for the newly merged ai-onboarding-buddy template. The LLMNode configurations in flows/ai-onboarding-buddy.ts were missing memories and messages references.

This omission causes a 500 error in the Lamatic Studio dashboard UI when clicking to open or edit the node panels. This PR adds the missing references to ensure a seamless template import and editing experience from the Studio Hub.

Flow Overview

The AI Onboarding Buddy flow is a multi-step generative employee enablement agent that analyzes new hire skill gaps and constructs a tailored 30/60/90-day onboarding plan with personalized welcome messages.

Node Types Introduced

  • triggerNode (1): API Request entry point that accepts candidateProfile, jobDescription, and companyContext
  • dynamicNode/LLMNode (3):
    • Skill Gap Analyzer: Compares candidate profile against job description requirements
    • Plan Generator: Creates a structured 30/60/90-day onboarding plan based on identified gaps
    • Welcome message drafter: Generates a personalized manager welcome message
  • graphqlResponseNode (1): API Response node that aggregates output from all three LLM nodes

How It Works

  1. Flow is triggered with API request containing candidate resume/profile, target job description, and optional company context
  2. Skill Gap Analyzer processes candidate profile vs. job description to identify strengths and skill gaps
  3. Plan Generator uses the gap analysis to create a personalized three-phase onboarding milestone plan
  4. Welcome message drafter generates a warm, personalized welcome greeting from the manager
  5. All three outputs are aggregated and returned as a unified API response containing skillGapAnalysis, onboardingPlan, and welcomeMessage

PR Changes

Modified File: kits/ai-onboarding-buddy/flows/ai-onboarding-buddy.ts

The fix adds missing memories and messages configuration properties to the three LLMNode nodes:

  • Skill Gap Analyzer node: Added references to @model-configs/gap-analyzer.ts for both memories and messages
  • Plan Generator node: Added references to @model-configs/plan-generator.ts for both memories and messages
  • Welcome message drafter node: Added references to @model-configs/welcome-drafter.ts for both memories and messages

These properties were required to prevent 500 errors when opening/editing node panels in the Lamatic Studio dashboard and to enable proper template import and editing from the Studio Hub.

Lines changed: +6/-0

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • agentkit-challenge

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8e1a5672-4f91-4e04-a694-8c8f692c7efa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

Your mission: examine three LLM nodes in the onboarding buddy flow that now carry enhanced configuration. The skill gap analyzer, plan generator, and welcome message drafter nodes are each updated to reference their corresponding model configurations via new memories and messages fields. The flow topology and prompt content remain intact.

Changes

LLM Node Configuration

Layer / File(s) Summary
Configure LLM nodes with model-config references
kits/ai-onboarding-buddy/flows/ai-onboarding-buddy.ts
Three LLM nodes (gapAnalyzer_2, planGenerator_3, welcomeDrafter_4) are updated to include memories and messages fields, each wired to its corresponding model-config reference (@model-configs/gap-analyzer.ts, @model-configs/plan-generator.ts, @model-configs/welcome-drafter.ts).

Suggested reviewers

  • amanintech
  • d-pamneja
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding missing memories/messages properties to fix a 500 error in Lamatic Studio when clicking nodes.
Description check ✅ Passed The description follows the repository template structure, completes all required checklist items, and provides clear context about the bug fix, its impact, and the solution.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot requested review from amanintech and d-pamneja June 5, 2026 10:00
@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

/validate

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Studio Runtime Validation (Phase 2)

Studio validation passed. The kit loaded successfully in Lamatic Studio.

This PR is ready for final review and merge.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

@akshatvirmani Please review my PR and merge it with main.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

/validate

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

@coderabbitai resume

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Reviews resumed.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@geeked-anshuk666

Copy link
Copy Markdown
Contributor Author

/validate

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@akshatvirmani akshatvirmani merged commit bd79f12 into Lamatic:main Jun 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants