> For the complete documentation index, see [llms.txt](https://alhena.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alhena.gitbook.io/docs/developer-reference.md).

# Developer Reference

- [Website SDK](https://alhena.gitbook.io/docs/developer-reference/website-sdk.md)
- [JavaScript API](https://alhena.gitbook.io/docs/developer-reference/website-sdk/javascript-api.md): Complete reference for the Alhena Website SDK JavaScript API including all methods, configuration options, and usage examples.
- [Events](https://alhena.gitbook.io/docs/developer-reference/website-sdk/events.md): Complete reference for all events emitted by the Alhena Website SDK, organized by category with callback signatures and examples.
- [Styles API](https://alhena.gitbook.io/docs/developer-reference/website-sdk/styles-api.md): Customize the appearance and positioning of the Alhena chat widget using the Styles API.
- [Custom Data](https://alhena.gitbook.io/docs/developer-reference/website-sdk/custom-data.md): Pass user data and custom metadata to the Alhena chat widget for personalized AI interactions and custom tool integrations.
- [A/B Testing](https://alhena.gitbook.io/docs/developer-reference/website-sdk/ab-testing.md): Measure the impact of Alhena AI by comparing key metrics against alternative support solutions like Zendesk or Intercom.
- [Cart & Checkout Events](https://alhena.gitbook.io/docs/developer-reference/website-sdk/cart-checkout-events.md): Track cart and checkout events to attribute e-commerce revenue to Alhena AI interactions.
- [Add to Cart](https://alhena.gitbook.io/docs/developer-reference/website-sdk/cart-checkout-events/add-to-cart.md): How the "Add to Cart" button works in the Alhena chat widget across Shopify and non-Shopify platforms.
- [HTTP APIs](https://alhena.gitbook.io/docs/developer-reference/website-sdk/cart-checkout-events/http-apis.md): You can call Alhena's APIs for cart and checkout events directly from your server, rather than using the JS APIs.
- [Revenue Attribution](https://alhena.gitbook.io/docs/developer-reference/website-sdk/cart-checkout-events/revenue-attribution.md): Learn how Alhena AI automatically attributes revenue to AI-driven conversations—tracking when chat, FAQ, or proactive nudges influence a purchase.
- [Code Examples](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples.md): Practical code examples demonstrating common Alhena Website SDK integration patterns.
- [A/B Test Guidelines](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/ab-test-guidelines.md): Configure different AI responses for A/B testing based on user group assignment.
- [Internationalization](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/internationalization.md): Configure the Alhena chat widget to display in different languages.
- [Human Handoff Widget](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/human-handoff-widget.md): Switch from Alhena to another support widget (Freshworks, Zendesk, Intercom, etc.) when human handoff is initiated.
- [Scroll-Triggered Widget](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/scroll-triggered-widget.md): Show the Alhena chat widget only after the user scrolls down the page, reducing initial visual clutter.
- [Custom Launcher & Nudge UI](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/custom-launcher-nudge.md): Replace Alhena's built-in launcher and nudge with your own UI, driven by the same standard nudge logic via the Website SDK.
- [Auto-Close After Handoff](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/auto-close-after-handoff.md): Automatically close the chat widget after a conversation is transferred to a human agent.
- [Price Conversion](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/price-conversion.md): Customize how product prices are displayed in the Alhena chat widget using convert price hooks.
- [WooCommerce Revenue Tracking](https://alhena.gitbook.io/docs/developer-reference/website-sdk/examples/woocommerce-revenue-tracking.md): Track cart and checkout events in WooCommerce for revenue attribution.
- [REST API](https://alhena.gitbook.io/docs/developer-reference/api.md)
- [AI Search](https://alhena.gitbook.io/docs/developer-reference/api/ai-search.md)
- [Managing API Keys](https://alhena.gitbook.io/docs/developer-reference/api/managing-api-keys.md)
