[workflow]
name = "Chat Models Communication Workflow"
description = "This workflow demonstrates two ChatModelsNode instances communicating with each other, followed by output processing."
start_node = chat_model_1

[node:chat_model_1]
type = ChatModels
api_key = ${OPENAI_API_KEY}
input_text = Explain the concept of quantum entanglement in simple terms.
model = gpt-4o

[node:chat_model_2]
type = ChatModels
api_key = ${OPENAI_API_KEY}
input_text = {{chat_model_1.result.response}} Now, summarize this explanation in three bullet points.
model = gpt-4o


[env]
SLACK_BOT_TOKEN = ${SLACK_BOT_TOKEN}
OPENAI_API_KEY = ${OPENAI_API_KEY}
GITLAB_API_TOKEN = ${GITLAB_API_TOKEN}
GITLAB_PROJECT_ID = ${GITLAB_PROJECT_ID}

[edges]
chat_model_1 = chat_model_2
; chat_model_2 = process_output