Quickstart

This release contains access to DataStax Langflow as a Tech Preview. The Tech Preview is intended for you to view the capabilities of DataStax Langflow, and to provide your feedback to the product team. You are permitted to use the information only for evaluation purposes and not for use in a production environment. IBM provides the information without obligation of support and "as is" without warranty of any kind.

Get started with Langflow by loading a template flow and running it.

Run the Simple Agent template flow

  1. In the Astra Portal header, switch your active app from Astra DB Serverless to Langflow.

  2. In Langflow, click New Flow, and then select the Simple Agent flow.

    quickstart simple agent flow

    The Simple Agent template consists of an Agent component connected to Chat Input and Chat Output components, a Calculator component, and a URL component. When you run this flow, you submit a query to the agent through the Chat Input component, the agent uses the Calculator and URL tools to generate a response, and then returns the response through the Chat Output component.

    Many components can be tools for agents. The agent decides which tools to call based on the context of a given query.

  3. In the Agent component, enter your OpenAI API key directly or use a global variable.

    This example uses the Agent component’s built-in OpenAI model. If you want to use a different provider, edit the model provider, model name, and credentials accordingly. If your preferred provider or model isn’t listed, set Model Provider to Connect other models, and then connect any language model component.

  4. To run the flow, click Playground.

  5. To test the Calculator tool, ask the agent a simple math question, such as I want to add 4 and 4.

    To help you test and evaluate your flows, the Playground shows the agent’s reasoning process as it analyzes the prompt, selects a tool, and then uses the tool to generate a response. In this case, a math question causes the agent to select the Calculator tool and use an action like evaluate_expression.

    quickstart simple agent playground
  6. To test the URL tool, ask the agent about current events.

    For this request, the agent selects the URL tool’s fetch_content action, and then returns a summary of current news headlines.

  7. When you are done testing the flow, click Close.

Now that you’ve run your first flow, try these next steps:

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2025 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM