Typescript sdk
Data Components
Copy page
Learn how to create and use data components for rich agent responses
What are Data Components?
Data Components allow your agents to return rich, interactive content instead of just text. Think of them as reusable UI building blocks that your agent can populate with data.
For example, instead of returning "You have 3 tasks: Task #123 (shipped), Task #124 (processing)...", your agent can return a properly formatted task list component.
Creating Data Components
You can create data components by adding them to your agent configuration.
When a user asks "Show me my tasks", the agent will respond with:
Frontend Integration
Basic Setup
First, create your React component:
Then register it with your Inkeep chat component:
Now when you ask the agent to show you your tasks, it will return a properly formatted task list component.