# 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.
- [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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alhena.gitbook.io/docs/developer-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
