Locations and Datasources
Ask Fern can be configured to appear in multiple locations and pull content from various datasources. This allows you to provide AI-powered assistance wherever your users need it and ensure access to relevant information.
Locations
The location
field in your ai-search
configuration determines where Ask Fern will be available to your users. You can specify one or more locations:
Available Locations
Enables Ask Fern on your documentation site. Users will see the AI search interface directly in your docs.
Enables Ask Fern in Slack. Learn more about the Slack app integration.
Enables Ask Fern in Discord. This allows your community to get AI-powered answers in your Discord server.
Datasources (coming soon)
The datasources
field allows you to specify additional content sources that Ask Fern should index and search. This is useful when you want to include content from external websites or documentation that isn’t part of your main docs.
Website Datasources
The URL of the website to index. Ask Fern will crawl and index the content from this URL.
An optional display name for this datasource. This helps users understand where the information is coming from when Ask Fern cites content from this source.
Preview Environments
Setting location: [docs]
enables Ask Fern on preview deployments generated with fern generate --docs --preview
, allowing you to test the AI search functionality before publishing to production.
Preview environments don’t interfere with your production Ask Fern deployment.
Best Practices
Start with docs location
Begin by enabling Ask Fern on your documentation site (location: [docs]
) to test and refine the experience before expanding to other channels like Slack or Discord.
Use descriptive titles for datasources
Always provide a title
for your datasources. This helps users understand the source of information when Ask Fern provides citations.
Keep datasources relevant
Only include datasources that contain information relevant to your users’ questions. Too many datasources can dilute the quality of search results.
Test with previews
Use preview deployments to test your Ask Fern configuration, including locations and datasources, before deploying to production.