Skip to content

feat: Add ai-travel-planner template#185

Open
znabhi wants to merge 1 commit into
Lamatic:mainfrom
znabhi:feat/ai-travel-planner
Open

feat: Add ai-travel-planner template#185
znabhi wants to merge 1 commit into
Lamatic:mainfrom
znabhi:feat/ai-travel-planner

Conversation

@znabhi

@znabhi znabhi commented Jul 7, 2026

Copy link
Copy Markdown

PR Checklist

1. Select Contribution Type

  • Kit (kits/<category>/<kit-name>/)
  • Bundle (bundles/<bundle-name>/)
  • Template (templates/<template-name>/)

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)

  • config.json present with valid metadata (name, description, tags, steps, author, env keys)
  • All flows in flows/<flow-name>/ (where applicable) include:
    • config.json (Lamatic flow export)
    • inputs.json
    • meta.json
    • README.md
  • .env.example with placeholder values only (kits only)
  • No hand‑edited flow config.json node graphs (changes via Lamatic Studio export)

4. Validation

  • npm install && npm run dev works locally (kits: UI runs; bundles/templates: flows are valid)
  • PR title is clear (e.g., [kit] Add <name> for <use case>)
  • GitHub Actions workflows pass (all checks are green)
  • All CodeRabbit or other PR review comments are addressed and resolved
  • No unrelated files or projects are modified
  • Added kits/ai-travel-planner/.gitignore to exclude .lamatic/, node_modules/, and local env files.
  • Added kits/ai-travel-planner/README.md documenting the AI Travel Planner template, setup steps, usage, flow overview, config, and example output.
  • Added kits/ai-travel-planner/agent.md describing the agent's purpose, capabilities, model choice, and guardrails.
  • Added kits/ai-travel-planner/constitutions/default.md with baseline safety, data-handling, and tone rules.
  • Added kits/ai-travel-planner/lamatic.config.ts defining the kit metadata, author info, tags, required step id, and repository link.
  • Added kits/ai-travel-planner/flows/ai-travel-planner-agent.ts defining the flow graph and references.
    • Flow node types: chat trigger → variables parsing → LLM generation → response streaming.
    • High-level behavior: collects user trip details, parses them into variables, uses a Groq-hosted llama-3.3-70b-versatile model with prompt/config references, then returns a markdown travel plan.
  • Added kits/ai-travel-planner/model-configs/ai-travel-planner-agent_llmnode-1_generative-model-name.ts with the Groq model configuration.
  • Added kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_system_0.md for the system instructions.
  • Added kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_user_1.md for the user prompt template and required travel-plan structure.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This PR adds a new "AI Travel Planner" kit under kits/ai-travel-planner, including a lamatic.config.ts template definition, a flow graph (chat trigger, variable parsing, LLM node, response node), a Groq model configuration, system/user prompt templates, a default constitution, agent.md, README.md, and .gitignore.

Changes

AI Travel Planner Kit

Layer / File(s) Summary
Kit configuration and ignore rules
kits/ai-travel-planner/lamatic.config.ts, kits/ai-travel-planner/.gitignore
Adds template metadata (name, description, version, type, author, tags, steps, links) and gitignore patterns for .lamatic/, node_modules/, .env, .env.local.
Flow graph definition
kits/ai-travel-planner/flows/ai-travel-planner-agent.ts
Exports meta, inputs, references, nodes, edges, and a default export wiring chat trigger → variables parsing → LLM generation → response.
Model config and prompt templates
kits/ai-travel-planner/model-configs/ai-travel-planner-agent_llmnode-1_generative-model-name.ts, kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_system_0.md, kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_user_1.md
Adds Groq llama-3.3-70b-versatile model config and system/user prompts defining travel plan generation structure.
Agent, constitution, and README documentation
kits/ai-travel-planner/agent.md, kits/ai-travel-planner/constitutions/default.md, kits/ai-travel-planner/README.md
Documents agent identity, flow, model config, example interaction, safety/tone constitution, and setup/usage instructions.

Suggested reviewers: amanintech, d-pamneja

Your mission, should you choose to accept it: review this new AI Travel Planner kit before it self-destructs into main. Godspeed, agent.

This message will not self-destruct — but the PR review timer is ticking.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title is concise and clearly identifies the AI travel planner addition.
Description check ✅ Passed The description follows the required checklist template and covers the major sections with reasonable detail.
✨ 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.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

:robot_face: AgentKit Structural Validation

New Contributions Detected

  • Template: kits/ai-travel-planner

Check Results

Check Status
No edits to existing kits ✅ Pass
Required root files present ✅ Pass
Flow .ts files present ✅ Pass
lamatic.config.ts valid ✅ Pass
No changes outside kits/ ✅ Pass

🎉 All checks passed! This contribution follows the AgentKit structure.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/ai-travel-planner/agent.md`:
- Around line 53-55: The author block in the AI travel planner template is
exposing a personal email address that gets copied into generated kits. Update
the markdown section identified by the Author heading to remove the maintainer’s
private email and replace it with a shared project contact or omit the email
field entirely so the template no longer publishes PII.

In `@kits/ai-travel-planner/flows/ai-travel-planner-agent.ts`:
- Around line 80-93: The Parse Travel Inputs dynamic node is mapping every field
to the same raw chat message, so it never extracts structured travel data.
Update the variablesNode_1 mapping in aiTravelPlannerAgent to parse each field
separately from the chat input, using the existing Parse Travel Inputs node and
its destination, days, budget, travelStyle, interests, and userMessage keys so
downstream prompts receive distinct values instead of duplicates.

In `@kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_user_1.md`:
- Around line 1-11: The travel plan prompt in
ai-travel-planner-agent_llmnode-1_user_1.md only uses
variablesNode_1.output.userMessage, so the model must infer trip details from
raw text instead of the parsed fields. Update this prompt to include the
normalized destination, duration, budget, travel style, and interests produced
by the upstream parser, and keep userMessage only as supporting context for the
travel-plan generation.

In `@kits/ai-travel-planner/README.md`:
- Around line 34-49: The fenced example blocks in the README section are
unlabeled, which triggers markdownlint and removes syntax highlighting. Update
the example fences under the trip prompts to include an appropriate language tag
such as text or bash, keeping the content unchanged and ensuring the markdown
remains valid and readable.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1745d0fe-86d5-445e-bd36-ce85ab81ec12

📥 Commits

Reviewing files that changed from the base of the PR and between dafde4c and 137f5ff.

📒 Files selected for processing (9)
  • kits/ai-travel-planner/.gitignore
  • kits/ai-travel-planner/README.md
  • kits/ai-travel-planner/agent.md
  • kits/ai-travel-planner/constitutions/default.md
  • kits/ai-travel-planner/flows/ai-travel-planner-agent.ts
  • kits/ai-travel-planner/lamatic.config.ts
  • kits/ai-travel-planner/model-configs/ai-travel-planner-agent_llmnode-1_generative-model-name.ts
  • kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_system_0.md
  • kits/ai-travel-planner/prompts/ai-travel-planner-agent_llmnode-1_user_1.md

Comment thread kits/ai-travel-planner/agent.md
Comment thread kits/ai-travel-planner/flows/ai-travel-planner-agent.ts
Comment thread kits/ai-travel-planner/README.md
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Hi @znabhi! 👋

Before this PR can be reviewed by maintainers, please resolve all comments and requested changes from the CodeRabbit automated review.

Steps to follow:

  1. Read through all CodeRabbit comments carefully
  2. Address each issue raised (or reply explaining why you disagree)
  3. Push your fixes as new commits
  4. Once all issues are resolved, comment here so we can re-review

This helps keep the review process efficient for everyone. Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant