Skip to content

Conversation

@VellummyilumVinoth
Copy link
Contributor

@VellummyilumVinoth VellummyilumVinoth commented Dec 5, 2025

Description

This PR adds comprehensive documentation for AI Data Mapper user guide.
Resolves: wso2/product-ballerina-integrator#1883

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Documentation
    • Added a new AI Data Mapping guide covering the concept, four-step workflow, guarantees, features, healthcare examples, responsible-use guidance, and integration scenarios.
    • Renamed "Data Mapping" to "Manual Data Mapping" and updated related content, images, and GIFs to reflect the manual flow.
    • Updated site navigation and cross-references to split Data Mapping into Manual Data Mapping and AI Data Mapping with contextual links.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 5, 2025

Walkthrough

This PR adds an AI Data Mapper documentation page, renames the existing Data Mapping guide to Manual Data Mapping (updating images/links), updates related cross-links, and changes mkdocs navigation to expose Manual and AI Data Mapping as sub-pages under Data Mapping.

Changes

Cohort / File(s) Summary
New AI Data Mapper Documentation
en/docs/developer-guides/data-mapping/ai-data-mapping.md
Adds a new doc describing the AI Data Mapper concept, 4-step workflow, guarantees, features (automated mapping generation, expression/function extraction, reference doc support, sub-mapping reuse), healthcare examples, responsible-use guidance, and integration scenarios.
Manual Data Mapping Guide (renamed/updated)
en/docs/developer-guides/data-mapping/manual-data-mapping.md
Renames "Data Mapping" to "Manual Data Mapping"; updates asset/image paths to manual-data-mapping/*, replaces/adjusts terminology (e.g., Auto Map → AI data mapping), updates GIFs/images, and adds cross-links to the AI Data Mapper doc.
Navigation and Index Updates
en/mkdocs.yml, en/docs/index.md
Replaces single Data Mapping nav entry with nested entries for Manual Data Mapping and AI Data Mapping; updates index tiles/links (including trailing slash and added AI Data Mapping link).
Related docs link updates
en/docs/integration-guides/usecases/datamapper/overview.md
Updates "Data Mapping Quick Start" link target to the new Manual Data Mapping path.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐇🌿 I hopped through pages, nudged each link in place,
A new AI mapper found its space,
Manual maps polished, images aligned,
Paths redirected, cross-links combined,
A rabbit's wink—docs tidy, swift, and ace.

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides a basic Purpose statement and references the related issue, but most required template sections (Goals, Approach, User stories, Release note, Documentation, Training, Certification, Marketing, Automation tests, Security checks, Samples, Related PRs, Migrations, Test environment, and Learning) remain as empty template placeholders without substantive content. Complete all remaining template sections with specific details: Goals and implementation approach for the documentation, relevant release notes, training/certification/marketing links or N/A explanations, automation test coverage, security check confirmations, and test environment details.
Linked Issues check ⚠️ Warning Issue #1883 requires two comprehensive blog posts (internal and external perspectives), but the PR contains only user guide documentation files, not blog posts addressing the issue's specific objectives. Clarify whether this PR addresses the blog post requirement from issue #1883 or if separate PRs will handle the internal/external blog posts. If this PR is intended to satisfy the issue, the content should include both internal and external blog perspectives as specified.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add AI Data Mapping user guide' is clear and directly related to the main change—adding comprehensive documentation for the AI Data Mapper. It accurately summarizes the primary objective of the PR.
Out of Scope Changes check ✅ Passed The PR updates navigation structure (mkdocs.yml), links in documentation files, and creates new documentation. These changes are all directly related to adding and organizing the AI Data Mapping documentation, with no apparent out-of-scope modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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


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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
en/docs/developer-guides/data-mapping/manual-data-mapping.md (1)

134-143: Consider improving section title clarity and addressing linter feedback.

The section "AI data mapping" (line 134) describes the AI-assisted Auto Map feature within the manual mapper, which may cause confusion with the separate AI Data Mapping guide. While the content is accurate, the section header could be renamed to "Auto Mapping with AI Assistance" for clarity. Additionally, the static analysis tool flagged excessive exclamation marks in this vicinity; review the overall tone across this section to ensure documentation maintains a professional, measured voice.

Consider renaming for clarity:

-### AI data mapping
+### Auto Mapping with AI Assistance
en/docs/developer-guides/data-mapping/ai-data-mapping.md (3)

17-18: Improve sentence variety to enhance readability.

Three consecutive sentences begin with "It's," which reduces impact and readability. The static analysis tool flagged this as a style concern.

Suggested revision:

-It's slow. It's error-prone. It eats weeks of developer time.
+It's slow and error-prone, consuming weeks of developer time.

Alternatively:

-It's slow. It's error-prone. It eats weeks of developer time.
+Slow. Error-prone. Time-consuming. Traditional data mapping drains developer weeks.

60-60: Use hyphenation for compound adjectives.

Line 60: "Array to array mappings" should be "Array-to-array mappings" when used as a compound adjective modifying "mappings."

-- **Array to array mappings**: Element-wise transformations with proper iteration
+- **Array-to-array mappings**: Element-wise transformations with proper iteration

158-159: Fix sentence structure and remove duplication.

Lines 158–159 contain awkward phrasing and duplication. The phrase "we're continuously improving based on real-world usage" appears twice in slightly different forms, disrupting flow.

Current:

"We're continuously improving based on real-world usage. Share your feedback, suggestions, or issues through the Ballerina community channels we're continuously improving based on your real-world usage."

Suggested fix:

-We're continuously improving based on real-world usage. Share your feedback, suggestions, or issues through the [Ballerina community channels](https://ballerina.io/community/) we're continuously improving based on your real-world usage.
+We're continuously improving based on your real-world usage. Share your feedback, suggestions, or issues through the [Ballerina community channels](https://ballerina.io/community/).
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 441ec63 and 99861ee.

⛔ Files ignored due to path filters (19)
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/ai-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/claim-submission-to-international401-claim.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/hl7v23-pid-to-international401-patient.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/manual-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-inline-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-return.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/array-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/auto-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-integration.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-new-type.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-service.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-resource.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/inline-data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/many-to-one-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/simple-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/type-from-json.gif is excluded by !**/*.gif
📒 Files selected for processing (5)
  • en/docs/developer-guides/data-mapping/ai-data-mapping.md (1 hunks)
  • en/docs/developer-guides/data-mapping/manual-data-mapping.md (7 hunks)
  • en/docs/index.md (2 hunks)
  • en/docs/integration-guides/usecases/datamapper/overview.md (1 hunks)
  • en/mkdocs.yml (1 hunks)
🧰 Additional context used
🪛 LanguageTool
en/docs/developer-guides/data-mapping/ai-data-mapping.md

[style] ~17-~17: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...tandards. It's slow. It's error-prone. It eats weeks of developer time. And every...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~59-~59: Consider a different adjective to strengthen your wording.
Context: ...ull-safety checks - Nested records: Deep structure transformations - **Array to ...

(DEEP_PROFOUND)


[grammar] ~60-~60: Use a hyphen to join words.
Context: ...p structure transformations - Array to array mappings: Element-wise transform...

(QB_NEW_EN_HYPHEN)

en/docs/developer-guides/data-mapping/manual-data-mapping.md

[style] ~140-~140: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 5621 characters long)
Context: ...f" alt="Auto Mapping" width="70%"> !!! info "AI Data Mapper" To learn more...

(EN_EXCESSIVE_EXCLAMATION)

🔇 Additional comments (6)
en/docs/developer-guides/data-mapping/ai-data-mapping.md (3)

85-99: Verify Ballerina code example is correct and production-ready.

The sub-mapping reuse example (lines 85–99) demonstrates a transformation function. Ensure this code:

  • Compiles without errors
  • Correctly demonstrates the intended sub-mapping reuse pattern
  • Is idiomatic Ballerina

Can you confirm the code example compiles and accurately represents how the AI Data Mapper would generate and reuse such expressions?


120-129: Verify that healthcare examples are representative and accurate.

The PR references resolving issue #1883, which calls for comprehensive blog posts with real healthcare examples. This guide includes two healthcare examples (ClaimSubmission → international401:Claim and hl7v23:PID → international401:Patient).

Confirm:

  • The schemas and transformations shown are realistic healthcare use cases
  • The GIFs/visual examples accurately depict the AI Data Mapper behavior
  • The external links to Ballerina Central (international401:Claim, hl7v23:PID) are current

1-165: Clarify alignment between documentation guide and PR objectives.

The PR description references issue #1883, which calls for two comprehensive blog posts: one internal (developer perspective) and one external (user perspective). This file reads as a polished user/product guide rather than a blog post.

Confirm whether:

  • This guide is intended to replace or supplement the planned blog posts
  • Separate blog post artifacts are planned or already exist
  • The structure and tone align with the stated objectives for external user-facing documentation
en/docs/index.md (1)

20-20: Navigation links updated appropriately.

The Data Mapping link now correctly points to the manual-data-mapping subdirectory (line 20), and the new AI Data Mapping link has been added to the AI tile (line 37). The trailing slash consistency on line 36 also improves uniformity. Changes align well with the mkdocs.yml restructuring.

Also applies to: 36-37

en/docs/integration-guides/usecases/datamapper/overview.md (1)

43-43: Data Mapping link correctly updated for new nested structure.

The link has been updated to point to the manual-data-mapping subdirectory, aligning with the reorganized documentation hierarchy. The relative path is correct.

en/mkdocs.yml (1)

112-114: Navigation structure correctly nested for Manual and AI Data Mapping guides.

The Data Mapping section is now properly nested with Manual Data Mapping and AI Data Mapping as sub-entries. YAML indentation and syntax appear correct. Ensure any legacy data-mapping.md file (if it existed) has been removed to prevent navigation conflicts.

Please confirm:

  1. The mkdocs build succeeds with this navigation structure
  2. Any previous data-mapping.md file at the root level has been removed or replaced

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
en/docs/developer-guides/data-mapping/ai-data-mapping.md (2)

38-122: Minor wording suggestion: Replace "prior to" with shorter alternative.

Line 113 uses "prior to output" which is slightly wordy. Consider "All generated mappings are validated by the Ballerina Language Server before output, ensuring:" for improved conciseness.


131-131: Grammar: Ensure proper hyphenation in "Standard to standard format" heading.

The heading "Standard to standard format" may benefit from a hyphen as compound adjective: "Standard-to-standard format". Similarly, check that "hl7v23:PID" is formatted consistently with style conventions. Refer to LanguageTool feedback for guidance.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 99861ee and 5a3715f.

⛔ Files ignored due to path filters (19)
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/ai-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/claim-submission-to-international401-claim.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/hl7v23-pid-to-international401-patient.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/manual-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-inline-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-return.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/array-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/auto-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-integration.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-new-type.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-service.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-resource.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/inline-data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/many-to-one-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/simple-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/type-from-json.gif is excluded by !**/*.gif
📒 Files selected for processing (5)
  • en/docs/developer-guides/data-mapping/ai-data-mapping.md (1 hunks)
  • en/docs/developer-guides/data-mapping/manual-data-mapping.md (7 hunks)
  • en/docs/index.md (2 hunks)
  • en/docs/integration-guides/usecases/datamapper/overview.md (1 hunks)
  • en/mkdocs.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • en/docs/index.md
  • en/docs/integration-guides/usecases/datamapper/overview.md
  • en/mkdocs.yml
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-11-12T05:34:18.459Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/os-level-security.md:1-25
Timestamp: 2025-11-12T05:34:18.459Z
Learning: In the WSO2 docs-bi repository, specifically in deployment best practices documentation files under en/docs/deploy/deployment-best-practices/, using h3 (###) headings directly after h1 titles (instead of h2) is intentional and should not be flagged.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
📚 Learning: 2025-11-12T05:34:19.589Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/network-level-security.md:1-20
Timestamp: 2025-11-12T05:34:19.589Z
Learning: In the wso2/docs-bi repository documentation files, using h3 (###) subsection headings directly under h1 (#) titles is an intentional style choice, even though it violates standard markdown heading increment rules.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
🪛 LanguageTool
en/docs/developer-guides/data-mapping/manual-data-mapping.md

[style] ~140-~140: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 5621 characters long)
Context: ...f" alt="Auto Mapping" width="70%"> !!! info "AI Data Mapper" To learn more...

(EN_EXCESSIVE_EXCLAMATION)

en/docs/developer-guides/data-mapping/ai-data-mapping.md

[style] ~113-~113: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...idated by the Ballerina Language Server prior to output, ensuring: - Syntactic correctn...

(EN_WORDINESS_PREMIUM_PRIOR_TO)


[grammar] ~131-~131: Use a hyphen to join words.
Context: ...dth="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https:/...

(QB_NEW_EN_HYPHEN)


[grammar] ~131-~131: Use a hyphen to join words.
Context: ...="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https://ce...

(QB_NEW_EN_HYPHEN)

🔇 Additional comments (4)
en/docs/developer-guides/data-mapping/ai-data-mapping.md (2)

1-39: Heading structure and introductory content look good.

The page title is clear, and the introductory sections correctly use h3 headings (skipping h2), which aligns with WSO2 docs-bi style. The healthcare and financial integration examples are concrete and relevant. The cross-reference to the manual data mapper on line 5 is correct.


125-125: Verify external FHIR type references align with documentation strategy.

Lines 125 and 131 link directly to Ballerina Central for FHIR types (international401:Claim, hl7v23:PID, international401:Patient). Based on previous feedback, consider whether these should be internal BI documentation references instead. If external links are intentional for technical reference, this is acceptable; otherwise, align with the strategy of pointing to BI docs.

Also applies to: 131-131

en/docs/developer-guides/data-mapping/manual-data-mapping.md (2)

131-142: New AI data mapping section is well-integrated.

The addition of the "AI data mapping" subsection (lines 134-142) appropriately replaces the previous "Auto Map" terminology. The cross-reference to the AI Data Mapper guide and the info box with the Copilot mention integrate smoothly. The image path has been correctly updated to the manual-data-mapping directory.


112-170: All remaining image path updates are consistent and complete.

Lines 112, 122, 124, 148, 154, 161, and 170 all have image paths correctly migrated from the data-mapping to manual-data-mapping subdirectory. Image alt text is preserved, and the updates align with the file rename and directory reorganization. No content changes have been introduced.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
en/docs/developer-guides/data-mapping/ai-data-mapping.md (1)

112-112: Minor: Consider more direct wording.

The phrase "prior to output" can be simplified to "before output" for more direct technical documentation style.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a3715f and 4f39081.

⛔ Files ignored due to path filters (19)
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/ai-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/claim-submission-to-international401-claim.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/hl7v23-pid-to-international401-patient.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/manual-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-inline-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-return.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/array-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/auto-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-integration.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-new-type.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-service.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-resource.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/inline-data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/many-to-one-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/simple-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/type-from-json.gif is excluded by !**/*.gif
📒 Files selected for processing (5)
  • en/docs/developer-guides/data-mapping/ai-data-mapping.md (1 hunks)
  • en/docs/developer-guides/data-mapping/manual-data-mapping.md (7 hunks)
  • en/docs/index.md (2 hunks)
  • en/docs/integration-guides/usecases/datamapper/overview.md (1 hunks)
  • en/mkdocs.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • en/docs/integration-guides/usecases/datamapper/overview.md
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-11-12T05:34:18.459Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/os-level-security.md:1-25
Timestamp: 2025-11-12T05:34:18.459Z
Learning: In the WSO2 docs-bi repository, specifically in deployment best practices documentation files under en/docs/deploy/deployment-best-practices/, using h3 (###) headings directly after h1 titles (instead of h2) is intentional and should not be flagged.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
📚 Learning: 2025-11-12T05:34:19.589Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/network-level-security.md:1-20
Timestamp: 2025-11-12T05:34:19.589Z
Learning: In the wso2/docs-bi repository documentation files, using h3 (###) subsection headings directly under h1 (#) titles is an intentional style choice, even though it violates standard markdown heading increment rules.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
🪛 LanguageTool
en/docs/developer-guides/data-mapping/manual-data-mapping.md

[style] ~140-~140: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 5621 characters long)
Context: ...f" alt="Auto Mapping" width="70%"> !!! info "AI Data Mapper" To learn more...

(EN_EXCESSIVE_EXCLAMATION)

en/docs/developer-guides/data-mapping/ai-data-mapping.md

[style] ~112-~112: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...idated by the Ballerina Language Server prior to output, ensuring: - Syntactic correctn...

(EN_WORDINESS_PREMIUM_PRIOR_TO)


[grammar] ~129-~129: Use a hyphen to join words.
Context: ...idth="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https:/...

(QB_NEW_EN_HYPHEN)


[grammar] ~129-~129: Use a hyphen to join words.
Context: ...h="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https://ce...

(QB_NEW_EN_HYPHEN)

🔇 Additional comments (5)
en/docs/index.md (1)

20-20: Navigation updates correctly reflect new documentation structure.

The changes to link Data Mapping to manual-data-mapping and the addition of AI Data Mapping in the appropriate tiles align with the documentation restructuring. The URL formatting is consistent.

Also applies to: 36-37

en/docs/developer-guides/data-mapping/ai-data-mapping.md (2)

37-37: Fix heading capitalization and terminology consistency.

Line 37 uses "AI datamapper features" but should align with the consistent terminology used throughout the document: "AI Data Mapper features". Additionally, "datamapper" should be two words ("data mapper") to match the pattern in other section headings and follow sentence case conventions.

[raise_essential_issue]
Apply this diff:

-## AI datamapper features
+## AI Data Mapper features

5-5: Verify link strategy for external vs. internal documentation.

The document references external Ballerina documentation (lines 124, 129) with direct links to ballerina.io resources. Based on past review feedback, confirm whether these should instead point to internal BI documentation or reference a BI-specific data mapping overview page. This affects user consistency and reduces dependency on external resources.

Also applies to: 124-124, 129-129

en/docs/developer-guides/data-mapping/manual-data-mapping.md (1)

1-1: Asset paths and cross-references properly updated for documentation restructuring.

All asset paths have been consistently updated from data-mapping/ to manual-data-mapping/, and the new "AI Data Mapping" section with its cross-reference to the AI Data Mapping guide is well-placed within the workflow. The naming reflects the document's focus on manual mapping techniques.

Also applies to: 13-14, 22-23, 80-81, 112-113, 122-124, 134-142

en/mkdocs.yml (1)

112-114: Navigation structure properly reorganized for dual data mapping documentation.

The transition from a single Data Mapping entry to a nested structure with Manual Data Mapping and AI Data Mapping sub-pages correctly reflects the documentation split. YAML formatting and file paths are accurate.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @en/docs/developer-guides/data-mapping/ai-data-mapping.md:
- Around line 110-120: In the "### 6. Code validation" section remove the stray
blank line between the list items so the "- Reserved keyword handling" line is
part of the same hyphen list; ensure each bullet uses the same "- " prefix and
no extra blank lines so the list renders continuously under "Code validation".

In @en/mkdocs.yml:
- Around line 114-116: The "Data Mapping" nav block is missing YAML list markers
for its nested items; update the "Data Mapping:" entry so the nested pages
"Manual Data Mapping" and "AI Data Mapping" are prefixed with '-' like the other
sections (i.e., treat "Data Mapping" as a parent and add '-' before "Manual Data
Mapping: developer-guides/data-mapping/manual-data-mapping.md" and '-' before
"AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md" so they
become proper YAML list items).
🧹 Nitpick comments (1)
en/docs/developer-guides/data-mapping/manual-data-mapping.md (1)

134-142: Consider capitalizing section heading for consistency.

The heading "AI data mapping" uses lowercase "data mapping" while other H3 headings in this file use title case (e.g., "Create simple mapping", "Many-to-one mapping"). Consider using "AI Data Mapping" for consistency.

📝 Suggested fix
-### AI data mapping
+### AI Data Mapping
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f9a6624 and 86ce7d9.

⛔ Files ignored due to path filters (19)
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/ai-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/claim-submission-to-international401-claim.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/hl7v23-pid-to-international401-patient.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/ai-data-mapping/manual-data-mapper-visualizer.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-inline-data-mapper.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/add-return.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/array-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/auto-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-integration.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-new-type.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/create-service.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/edit-resource.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/inline-data-mapper-added.png is excluded by !**/*.png
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/many-to-one-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/simple-mapping.gif is excluded by !**/*.gif
  • en/docs/assets/img/developer-guides/data-mapping/manual-data-mapping/type-from-json.gif is excluded by !**/*.gif
📒 Files selected for processing (5)
  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
  • en/docs/developer-guides/data-mapping/manual-data-mapping.md
  • en/docs/index.md
  • en/docs/integration-guides/usecases/datamapper/overview.md
  • en/mkdocs.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • en/docs/index.md
  • en/docs/integration-guides/usecases/datamapper/overview.md
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-11-12T05:34:18.459Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/os-level-security.md:1-25
Timestamp: 2025-11-12T05:34:18.459Z
Learning: In the WSO2 docs-bi repository, specifically in deployment best practices documentation files under en/docs/deploy/deployment-best-practices/, using h3 (###) headings directly after h1 titles (instead of h2) is intentional and should not be flagged.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
📚 Learning: 2025-11-12T05:34:19.589Z
Learnt from: dulajdilshan
Repo: wso2/docs-bi PR: 169
File: en/docs/deploy/deployment-best-practices/network-level-security.md:1-20
Timestamp: 2025-11-12T05:34:19.589Z
Learning: In the wso2/docs-bi repository documentation files, using h3 (###) subsection headings directly under h1 (#) titles is an intentional style choice, even though it violates standard markdown heading increment rules.

Applied to files:

  • en/docs/developer-guides/data-mapping/ai-data-mapping.md
🪛 LanguageTool
en/docs/developer-guides/data-mapping/manual-data-mapping.md

[style] ~140-~140: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 5621 characters long)
Context: ...f" alt="Auto Mapping" width="70%"> !!! info "AI Data Mapper" To learn more...

(EN_EXCESSIVE_EXCLAMATION)

en/docs/developer-guides/data-mapping/ai-data-mapping.md

[style] ~112-~112: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...idated by the Ballerina Language Server prior to output, ensuring: - Syntactic correctn...

(EN_WORDINESS_PREMIUM_PRIOR_TO)


[grammar] ~129-~129: Use a hyphen to join words.
Context: ...idth="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https:/...

(QB_NEW_EN_HYPHEN)


[grammar] ~129-~129: Use a hyphen to join words.
Context: ...h="70%"> ### Example 2: Standard to standard format ([hl7v23:PID](https://ce...

(QB_NEW_EN_HYPHEN)

🔇 Additional comments (2)
en/docs/developer-guides/data-mapping/ai-data-mapping.md (1)

1-153: Well-structured documentation for the AI Data Mapper feature.

The documentation is comprehensive, covering the concept, workflow, features, healthcare examples, and responsible use guidance. The content aligns well with the PR objectives of creating user-facing documentation for the AI Data Mapper.

A few optional suggestions:

  • Line 112: Consider using "before" instead of "prior to" for conciseness (per static analysis hint).
  • Line 129: The heading "Standard to standard format" could optionally be hyphenated as "Standard-to-standard format" for consistency.
en/docs/developer-guides/data-mapping/manual-data-mapping.md (1)

1-170: Documentation updates look good.

The renaming to "Manual Data Mapping" and path updates are consistent throughout the file. The cross-reference to the new AI Data Mapping guide at line 142 provides good navigation between the two related documentation pages.

Comment on lines +110 to +120
### 6. Code validation

All generated mappings are validated by the Ballerina Language Server prior to output, ensuring:

- Syntactic correctness
- Type safety compliance
- Proper import statements

- Reserved keyword handling

The output is guaranteed to be compilable code.
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix the list formatting issue in the code validation section.

There's a blank line between list items at lines 117-118 which breaks the Markdown list continuity. The "Reserved keyword handling" item appears disconnected from the rest of the list.

📝 Suggested fix
 All generated mappings are validated by the Ballerina Language Server prior to output, ensuring:

 - Syntactic correctness
 - Type safety compliance
 - Proper import statements
-
 - Reserved keyword handling

 The output is guaranteed to be compilable code.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### 6. Code validation
All generated mappings are validated by the Ballerina Language Server prior to output, ensuring:
- Syntactic correctness
- Type safety compliance
- Proper import statements
- Reserved keyword handling
The output is guaranteed to be compilable code.
### 6. Code validation
All generated mappings are validated by the Ballerina Language Server prior to output, ensuring:
- Syntactic correctness
- Type safety compliance
- Proper import statements
- Reserved keyword handling
The output is guaranteed to be compilable code.
🧰 Tools
🪛 LanguageTool

[style] ~112-~112: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...idated by the Ballerina Language Server prior to output, ensuring: - Syntactic correctn...

(EN_WORDINESS_PREMIUM_PRIOR_TO)

🤖 Prompt for AI Agents
In @en/docs/developer-guides/data-mapping/ai-data-mapping.md around lines 110 -
120, In the "### 6. Code validation" section remove the stray blank line between
the list items so the "- Reserved keyword handling" line is part of the same
hyphen list; ensure each bullet uses the same "- " prefix and no extra blank
lines so the list renders continuously under "Code validation".

Comment on lines +114 to +116
- Data Mapping:
Manual Data Mapping: developer-guides/data-mapping/manual-data-mapping.md
AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

YAML syntax issue: missing list markers for nested navigation items.

The nested navigation items under "Data Mapping" are missing the - list markers. Comparing to other nested sections in this file (e.g., "Debugging & Troubleshooting" at lines 119-124), each sub-item should be prefixed with -.

🐛 Proposed fix
       - Data Mapping: 
-          Manual Data Mapping: developer-guides/data-mapping/manual-data-mapping.md
-          AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md
+        - Manual Data Mapping: developer-guides/data-mapping/manual-data-mapping.md
+        - AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Data Mapping:
Manual Data Mapping: developer-guides/data-mapping/manual-data-mapping.md
AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md
- Data Mapping:
- Manual Data Mapping: developer-guides/data-mapping/manual-data-mapping.md
- AI Data Mapping: developer-guides/data-mapping/ai-data-mapping.md
🤖 Prompt for AI Agents
In @en/mkdocs.yml around lines 114 - 116, The "Data Mapping" nav block is
missing YAML list markers for its nested items; update the "Data Mapping:" entry
so the nested pages "Manual Data Mapping" and "AI Data Mapping" are prefixed
with '-' like the other sections (i.e., treat "Data Mapping" as a parent and add
'-' before "Manual Data Mapping:
developer-guides/data-mapping/manual-data-mapping.md" and '-' before "AI Data
Mapping: developer-guides/data-mapping/ai-data-mapping.md" so they become proper
YAML list items).

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.

[AI Data Mapper] Write internal and external POV blog posts for AI Data Mapper

2 participants