Brainfish · Arazzo Workflow

Generate an answer and follow-up questions

Version 1.0.0

Generate a cited AI answer for an end-user question, then generate suggested follow-up questions.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanyAICustomer SupportKnowledge BaseHelp DeskAgentsSupport AutomationSaaSArazzoWorkflows

Provider

brainfish

Workflows

answer-and-followups
Answer a user question, then produce follow-up questions.
2 steps inputs: conversationId, question
1
answer
generateUserAnswer
2
followUps
generateFollowUpQuestions

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Generate an answer and follow-up questions
  version: 1.0.0
  summary: Generate a cited AI answer for an end-user question, then generate suggested follow-up questions.
sourceDescriptions:
  - name: brainfish
    url: ../openapi/brainfish-public-api-openapi-original.json
    type: openapi
workflows:
  - workflowId: answer-and-followups
    summary: Answer a user question, then produce follow-up questions.
    inputs:
      type: object
      properties:
        question: { type: string }
        conversationId: { type: string }
    steps:
      - stepId: answer
        operationId: generateUserAnswer
        requestBody:
          contentType: application/json
          payload:
            question: $inputs.question
        successCriteria:
          - condition: $statusCode == 200
      - stepId: followUps
        operationId: generateFollowUpQuestions
        parameters:
          - name: conversationId
            in: path
            value: $inputs.conversationId
        successCriteria:
          - condition: $statusCode == 200