Getting started with chat components
Learn how to use chat components to interact with large-language models and Retool Agents.
Retool provides two components that allow you to interact with AI in a chat-style interface:
- LLM Chat for use with AI actions.
- Agent Chat for use with agents.
The following tabs outline the differences between the chat types.
To enable comments and discussion between users of your app, choose the Comment Thread component instead.
- Agent Chat
- LLM Chat
Use the Agent Chat component to enable users to chat with one of your agents. When you add Agent Chat to your canvas, Retool generates an Invoke Agent
query that allows you to select the agent you want to call, with no additional configuration needed. Messages to Agent Chat with questions or requests trigger a run of your selected agent.
Agent Chat configuration.
Use the LLM Chat component to enable users to send messages to an LLM. When you add LLM Chat to your canvas, Retool generates a Retool AI query. In this query, you can configure the model you want users to chat with and the Retool Vectors that can add more context to your queries.