TagHelper.js Help & Usage Guide
TagHelper.js injects dynamic help/info icons into your Web Pages, providing contextual help, AI-powered FAQs, production notes,Videos and more. Designed for Web App projects.
What does TagHelper.js do?
- Automatically injects info icons () into elements you specify.
- Shows a popover with help text, video, FAQs, production notes, and an AI chat tab when the icon is clicked.
- Loads help content lazily from your server, specific to your organization.
- Lets users generate and submit help, FAQs, and notes, or ask questions to AI.
How to Use
-
Configure the Library
Add this to your main layout (e.g.,Layout.html
_SHLayout.cshtml
):
<script>
window.TagHelperConfig = {
className: 'helpicon', // The class to target for help icons
orgidkey: 'YOUR_COMPLEX_ORG_KEY' // Your secure organization key (ask your admin)
};
</script>
Note: orgidkey
is a secure, encoded value that maps to your organization in the backend. Never expose the plain orgid.
-
Add the Target Class to Your Elements
Use the configured class (e.g., helpicon
) on any element you want a help icon for:
<div class="form-group helpicon" id="usernameField">
<label for="username">Username</label>
<input type="text" id="username" />
</div>
-
Include the Script
Ensure taghelper.js
is included in your layout or page:
<script src="~/js/taghelper.js"></script>
What Users See
- Info icons appear next to your configured elements.
-
Clicking an icon opens a popover with:
- Help: Instructions and video (if available)
- FAQs: Frequently asked questions
- Prod Notes: Production notes
- Ask AI: Chat with AI for contextual help
- If no help exists, users can submit new help content.
- AI features allow users to generate or ask for more information.
Advanced: Organization Key
orgidkey
is a secure, encoded value (e.g., Base64 or hash) that maps to your organization in the backend.
- When the help icon is used, this key is sent to the server to fetch the correct help content.
- Never share your plain orgid; always use the provided key.
Troubleshooting
- Help content not loading: Ensure your
orgidkey
is valid and your backend API is accessible.
- AI features not working: Check with your admin that AI services are enabled and configured.
Example
<!-- In your layout -->
<script>
window.TagHelperConfig = {
className: 'helpicon',
orgidkey: 'MTAwMA==' // Example: Base64 encoded orgid
};
</script>
<script src="~/js/taghelper.js"></script>
<!-- In your page -->
<div class="form-group helpicon" id="emailField">
<label for="email">Email</label>
<input type="email" id="email" />
</div>
For advanced integration or support, contact your system administrator or the Lighthouse support team.
Admin Help: Help Item Detail
The Help Item Detail page allows administrators to view, edit, and enhance help content for any UI element in your application. This includes text help, video links, AI-generated FAQs, production notes, and video scripts.
1. Page Structure
- Help Config Details Tab: Edit/view all metadata for a help item, such as element ID, menu, section, colors, and description.
- AI AutoPilot Tab: Manage and generate AI-powered content: Raw Notes, FAQs, Production Notes, and Video Scripts.
2. Editing Help Item Details
- Fill in or update fields like Element Id, Parent Menu, Sub Menu, Tab, Section, Sub Section, Page Url, Video Url, Image Url, Text Color, Background Color, Position, Related ElementIds, and Description.
- Click Update Help Item to save changes. The system will update the help item in the database.
3. AI AutoPilot Tab
- Raw Notes: Enter or update raw notes for the help item. Click Save Raw Notes to persist.
-
FAQs, Production Notes, Video Script:
- Each section has a textarea for manual entry and a Generate button () to use AI for content generation.
- After generating or editing, click the Save () button in the top right of each card to persist your changes.
-
Generate Video:
- Expand the section to enter a video title, select an avatar, and set a background.
- Click Create Video to generate a video using the current script and settings.
4. AI Integration
- AI features use your Raw Notes or Production Notes as input to generate FAQs, production notes, or video scripts.
- Make sure to enter meaningful notes for best AI results.
- All AI actions show a loading spinner and display results in the corresponding textarea.
5. Tips & Best Practices
- Always assign a unique Element Id for each help item to ensure correct mapping.
- Use the Related ElementIds field to link help items for similar UI elements.
- Keep Raw Notes concise and relevant for better AI-generated content.
- Use the Update Help Item button after any manual changes in the Help Config Details tab.
- Use the Save buttons in the AI AutoPilot tab after generating or editing content.
6. Troubleshooting
- If AI generation fails, check your network connection and try again.
- If updates are not reflected, ensure you have filled all required fields and have the correct permissions.
- Contact your system administrator if you encounter persistent issues.
For further assistance, contact your system administrator or refer to the full admin documentation.