Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#EAE6FF

You need to have the “pipelines” and “events“ feature flags enabled to use this feature.

The Pipelines feature enables users to connect different components in a sequence to accomplish a specific objective. To begin, you can easily drag and drop the component(s) and establish the necessary links between them.

Notepanel
panelIconIdatlassian-warning
panelIcon:warning:
bgColor#EAE6FF

One-to-many or many-to-one links are not currently supported. You can only link one component to another.

Components

1. Create a report

Params

  • LLM Provider ID: To find this value, go to “My Team“ → edit the LLM service provider of your choice → at the end of the URL you’ll find the provider ID. For example, in this url “https://chatbots.dimagi.com/a/<your team>/service_providers/llm/15/” the provider id is 15

  • LLM model: The available models can be seen on the edit page as well.

  • LLM temperature: A good default is 1

  • Prompt: The prompt for the LLM to generate a report. Be sure to include the {input} key somewhere in this prompt. This is the input to this component that should go to the LLM.

2. Render a template

Params

  • template_string: The template that you want to use. We’re using Jinja templates, so variables are indicated with curly braces around them e.g. {my_variable}. The input to this template should include a mapping of all variable names that are expected in the template.

...

Ideally, it is recommended to execute the Create a Report step prior to this one and instruct the LLM to format the output in a manner that ensures all anticipated variables are present in the output.

3. Send an email

Params

  • Recipient list

  • Subject

4. Extract structured data (Basic)

This step is used to extract structured data from the the conversation history.

Params

  • LLM Provider ID: (See Create a Report for where to find this)

  • LLM model

  • LLM temperature

  • data_schema: The schema describing the data you want to extract. This schema follows the following format:

...

Code Block
{
  "first_name": "the first name of the user",
  "last_name": "the last name of the user",
  "pets": [
    {"name": "the name of the pet", "type": "the type of animal e.g. cat or dog"}
  ]
}
Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#EAE6FF

Note that the list should only have one schema entry. This entry (or object) describes the entries that should be included in this list. In the example, we want to have a list of pets, described by their name and type.

...

This step is utilized to update a participant's memory or data. To access a participant's data, navigate to Participants in the sidebar, then select the specific participant, proceed to the experiment they were involved in, and finally click on the "Participant Data" tab. It is important to observe that the data is structured, representing a mapping between keys and values.

Params

  • key_name: This refers to the key within the participant data mapping where the input value will be stored.

...