NewIntroducing Arbiter AI. Experience the boundless capabilities of AI, right inside Arbiter. Check it out
  • Intro
    • Automations
    • Complex Decision-Making
    • Integrations
  • Docs
  • Support
  • Pricing
Try Arbiter

    Introduction

  • What is Arbiter?
    • Overview
    • Automations and Integrations
    • Decision-Making Software
    • Overview
    • Configure the Start Node
    • Connect to an HTTP API
    • Use Processor for Math Calculations
    • Add Conditions with Rule Node
    • Output Data and Workflow Tests
  • Concepts
  • Workflows

  • Projects
    • Intro
    • Workflow data state
    • Result schema
    • Canvas actions
    • Start node
    • Connector node
    • Rule node
    • Processor node
    • Workflow node
    • Setter node
    • Intro
    • Http request
    • Intro
      • Overview
        • Overview
        • Text
        • Date and Time
        • Math
        • Overview
        • Text Template
        • Find
        • Filter
  • Variables
    • Checkpoints
    • Workflows status
  • Data Types
  • Input Parameters Form
  • Arbiter AI
  • Visibility and Audit
  • Troubleshoot & FAQ

  • Roadmap
  • Changelog
Type '/' to Search

•Text

Generating textual output from template.

•Input parameters object

  • template (text: <required>) - The input text for a template is UTF-8-encoded text in any format. Control structures are delimited by "{{" and "}}". All text outside actions is copied to the output unchanged. To obtain data from an object, you can use the {{ .FieldName }} action, which will replace it with FieldName value of given struct.

  • arbitrary number of parameters (any allowed type: <optional>) - Any valid parameter defined by Go's template package

•Output parameters object

  • result (text: <required>) - Result text.

•Example

template: '{{.count}} items are made of {{.material}}'

count: 42

material: 'wool'

output: { result: '42 items are made of wool' }
template: '{{.count}} items are made of {{.material}}'
count: 42
material: 'wool'
output: { result: '42 items are made of wool' }

•Demo

DocsContactLegalCookies
©2022-2023 Arbiter Technologies Ltd. All rights reserved.