Transform how your end users interact with data. Zing’s React SDK now supports a natural language query object, making it easy to offer robust natural language querying, visualization, all embedded within your app.
Natural language querying eliminates the barrier between users and their data. Instead of learning SQL or complex query syntax, users can ask questions the way they naturally think:
Zing’s natural language querying is built for enterprise-grade reliability and security, with support for examples, layers, and row level security.
By connecting to your data model (semantic layer), Zing understands your business logic, relationships, and terminology. This means queries are accurate, consistent, and aligned with how your organization thinks about data.
Here’s where Zing truly shines: every natural language query automatically enforces your existing row-level access controls. When a sales manager asks “show me all customer accounts,” they only see the accounts they’re authorized to view. When a regional director queries revenue data, the results are automatically filtered to their territory.
This user-aware approach ensures that natural language querying doesn’t compromise your security model - it enhances it by making secure data access more intuitive.
Reduce ambiguity and improve accuracy by providing query templates and examples. Show the system how specific business questions should be interpreted in your domain, ensuring consistent and reliable results.
“What’s our customer acquisition cost trend over the past 6 months?"Executives get instant insights without waiting for analyst support.
“Which reps in the Northeast are tracking above quota this quarter?"Sales managers can explore performance data naturally while seeing only their authorized team data.
“Show me accounts with declining usage in the last 30 days”Success teams can identify at-risk customers, filtered automatically to their assigned accounts.
“Compare email campaign performance between Q2 and Q3”Marketers can analyze results instantly, with access controls ensuring they only see campaigns they’re authorized to view.
Integrating natural language querying into your app is straightforward:
import { ZingNLQuery } from '@zing/react-sdk';
function AnalyticsDashboard() {
return (
<ZingNlqChart
apiKey={import.meta.env.VITE_ZING_KEYVITE_ZINGDATA_API_KEY}
datasourceId={import.meta.env.VITE_ZINGDATA_DATASOURCE_ID}
token={token}
zingKey={import.meta.env.VITE_ZING_KEY}
/>
);
}
The SDK handles all the complexity of natural language processing, query generation, and security enforcement - you just provide your data model and user context.
You can customize the look and feel of the Embedded Natural Language component using a broad range of configuration options:
<ZingNlqChart
apiKey={import.meta.env.VITE_ZING_KEYVITE_ZINGDATA_API_KEY}
datasourceId={import.meta.env.VITE_ZINGDATA_DATASOURCE_ID}
token={token}
zingKey={import.meta.env.VITE_ZING_KEY}
customTexts={{
questionPlaceholder: 'Ask Zing',
submitIconText: '🔍',
}}
customClasses={{
container: 'w-100',
messagesContainer: 'w-100',
inputContainer: 'bg-muted',
input: 'text-secondary',
submitButton: 'bg-muted text-white',
questionBubble: 'bg-muted',
responseBubble: 'bg-primary',
}}
/>
Importantly, any calls to the Zing React SDK are signed and secure as outlined here.
Natural language querying represents a fundamental shift in how users and customers can answer questions - making data both more accessible and more customizable.By combining intuitive interaction with robust access controls, Zing ensures that everyone in your organization (or exposed to customers externally) can explore data safely and effectively.
Ready to give your users the power to ask questions and get answers? Start building more intuitive, secure analytics experiences today with the Zing Data React SDK here.
Note: NLQ support in the embedded React SDK is only included with the enterprise tier of Zing.
Available on iOS, Android, and the web
Learn how Zing can help you and your organization collaborate with data
Schedule Demo