Input field mode: `config`
This pipe's input fields can be configured by you.
Output field mode: `config`
This pipe's output fields can be configured by you.
Code Examples
const options = {
method: 'POST',
headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
body: JSON.stringify({
config: {environment: 'production'},
pipes: [
{
pipe_id: 'prompt:run@1',
config: {
model: 'openai-gpt-latest',
prompt: {
template: '\n Tell me if {{ input name required="true" type="string" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.\n\n My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.\n\n Use the following information to make your decision:\n \n Job title: {{ input job_title type="string" }}.\n\n Profile headline (optional): {{ input profile_headline type="string" required="false" }}\n\n Output three fields:\n\n {{ output is_icp_fit type="boolean" description="A boolean flag indicating if the user is a good ICP fit for us" }}\n\n {{ output reason type="string" description="A text explanation of your decision process" }}\n\n {{ output json_summary type="json" schema="summary" description="A JSON object that combines both fields" }}\n ',
json_schemas: {
summary: {
type: 'object',
properties: {
is_icp_fit: {
type: 'boolean',
description: 'A boolean flag indicating if the user is a good ICP fit for us'
},
reason: {type: 'string', description: 'A text explanation of the decision process'}
},
required: ['is_icp_fit', 'reason']
}
}
}
}
}
],
input: [
{id: '1', name: 'John Doe', job_title: 'Founder'},
{
id: '2',
name: 'Jane Doe',
job_title: 'CTO',
profile_headline: 'CTO for a big tech company.'
}
]
})
};
fetch('https://api.pipe0.com/v1/pipes/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pipe0.com/v1/pipes/run"
payload = {
"config": { "environment": "production" },
"pipes": [
{
"pipe_id": "prompt:run@1",
"config": {
"model": "openai-gpt-latest",
"prompt": {
"template": "
Tell me if {{ input name required=\"true\" type=\"string\" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
Use the following information to make your decision:
Job title: {{ input job_title type=\"string\" }}.
Profile headline (optional): {{ input profile_headline type=\"string\" required=\"false\" }}
Output three fields:
{{ output is_icp_fit type=\"boolean\" description=\"A boolean flag indicating if the user is a good ICP fit for us\" }}
{{ output reason type=\"string\" description=\"A text explanation of your decision process\" }}
{{ output json_summary type=\"json\" schema=\"summary\" description=\"A JSON object that combines both fields\" }}
",
"json_schemas": { "summary": {
"type": "object",
"properties": {
"is_icp_fit": {
"type": "boolean",
"description": "A boolean flag indicating if the user is a good ICP fit for us"
},
"reason": {
"type": "string",
"description": "A text explanation of the decision process"
}
},
"required": ["is_icp_fit", "reason"]
} }
}
}
}
],
"input": [
{
"id": "1",
"name": "John Doe",
"job_title": "Founder"
},
{
"id": "2",
"name": "Jane Doe",
"job_title": "CTO",
"profile_headline": "CTO for a big tech company."
}
]
}
headers = {
"content-type": "application/json",
"authorization": "Bearer <TOKEN>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.pipe0.com/v1/pipes/run \
--header 'authorization: Bearer <TOKEN>' \
--header 'content-type: application/json' \
--data '
{
"config": {
"environment": "production"
},
"pipes": [
{
"pipe_id": "prompt:run@1",
"config": {
"model": "openai-gpt-latest",
"prompt": {
"template": "\n Tell me if {{ input name required=\"true\" type=\"string\" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.\n\n My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.\n\n Use the following information to make your decision:\n \n Job title: {{ input job_title type=\"string\" }}.\n\n Profile headline (optional): {{ input profile_headline type=\"string\" required=\"false\" }}\n\n Output three fields:\n\n {{ output is_icp_fit type=\"boolean\" description=\"A boolean flag indicating if the user is a good ICP fit for us\" }}\n\n {{ output reason type=\"string\" description=\"A text explanation of your decision process\" }}\n\n {{ output json_summary type=\"json\" schema=\"summary\" description=\"A JSON object that combines both fields\" }}\n ",
"json_schemas": {
"summary": {
"type": "object",
"properties": {
"is_icp_fit": {
"type": "boolean",
"description": "A boolean flag indicating if the user is a good ICP fit for us"
},
"reason": {
"type": "string",
"description": "A text explanation of the decision process"
}
},
"required": [
"is_icp_fit",
"reason"
]
}
}
}
}
}
],
"input": [
{
"id": "1",
"name": "John Doe",
"job_title": "Founder"
},
{
"id": "2",
"name": "Jane Doe",
"job_title": "CTO",
"profile_headline": "CTO for a big tech company."
}
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pipe0.com/v1/pipes/run"
payload := strings.NewReader("{\"config\":{\"environment\":\"production\"},\"pipes\":[{\"pipe_id\":\"prompt:run@1\",\"config\":{\"model\":\"openai-gpt-latest\",\"prompt\":{\"template\":\"\\n Tell me if {{ input name required=\\\"true\\\" type=\\\"string\\\" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.\\n\\n My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.\\n\\n Use the following information to make your decision:\\n \\n Job title: {{ input job_title type=\\\"string\\\" }}.\\n\\n Profile headline (optional): {{ input profile_headline type=\\\"string\\\" required=\\\"false\\\" }}\\n\\n Output three fields:\\n\\n {{ output is_icp_fit type=\\\"boolean\\\" description=\\\"A boolean flag indicating if the user is a good ICP fit for us\\\" }}\\n\\n {{ output reason type=\\\"string\\\" description=\\\"A text explanation of your decision process\\\" }}\\n\\n {{ output json_summary type=\\\"json\\\" schema=\\\"summary\\\" description=\\\"A JSON object that combines both fields\\\" }}\\n \",\"json_schemas\":{\"summary\":{\"type\":\"object\",\"properties\":{\"is_icp_fit\":{\"type\":\"boolean\",\"description\":\"A boolean flag indicating if the user is a good ICP fit for us\"},\"reason\":{\"type\":\"string\",\"description\":\"A text explanation of the decision process\"}},\"required\":[\"is_icp_fit\",\"reason\"]}}}}}],\"input\":[{\"id\":\"1\",\"name\":\"John Doe\",\"job_title\":\"Founder\"},{\"id\":\"2\",\"name\":\"Jane Doe\",\"job_title\":\"CTO\",\"profile_headline\":\"CTO for a big tech company.\"}]}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
req.Header.Add("authorization", "Bearer <TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://api.pipe0.com/v1/pipes/run', [
'body' => '{"config":{"environment":"production"},"pipes":[{"pipe_id":"prompt:run@1","config":{"model":"openai-gpt-latest","prompt":{"template":"\\n Tell me if {{ input name required=\\"true\\" type=\\"string\\" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.\\n\\n My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.\\n\\n Use the following information to make your decision:\\n \\n Job title: {{ input job_title type=\\"string\\" }}.\\n\\n Profile headline (optional): {{ input profile_headline type=\\"string\\" required=\\"false\\" }}\\n\\n Output three fields:\\n\\n {{ output is_icp_fit type=\\"boolean\\" description=\\"A boolean flag indicating if the user is a good ICP fit for us\\" }}\\n\\n {{ output reason type=\\"string\\" description=\\"A text explanation of your decision process\\" }}\\n\\n {{ output json_summary type=\\"json\\" schema=\\"summary\\" description=\\"A JSON object that combines both fields\\" }}\\n ","json_schemas":{"summary":{"type":"object","properties":{"is_icp_fit":{"type":"boolean","description":"A boolean flag indicating if the user is a good ICP fit for us"},"reason":{"type":"string","description":"A text explanation of the decision process"}},"required":["is_icp_fit","reason"]}}}}}],"input":[{"id":"1","name":"John Doe","job_title":"Founder"},{"id":"2","name":"Jane Doe","job_title":"CTO","profile_headline":"CTO for a big tech company."}]}',
'headers' => [
'authorization' => 'Bearer <TOKEN>',
'content-type' => 'application/json',
],
]);
echo $response->getBody();POST /v1/pipes/run HTTP/1.1
Content-Type: application/json
Authorization: Bearer <TOKEN>
Host: api.pipe0.com
Content-Length: 1415
{"config":{"environment":"production"},"pipes":[{"pipe_id":"prompt:run@1","config":{"model":"openai-gpt-latest","prompt":{"template":"\n Tell me if {{ input name required=\"true\" type=\"string\" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.\n\n My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.\n\n Use the following information to make your decision:\n \n Job title: {{ input job_title type=\"string\" }}.\n\n Profile headline (optional): {{ input profile_headline type=\"string\" required=\"false\" }}\n\n Output three fields:\n\n {{ output is_icp_fit type=\"boolean\" description=\"A boolean flag indicating if the user is a good ICP fit for us\" }}\n\n {{ output reason type=\"string\" description=\"A text explanation of your decision process\" }}\n\n {{ output json_summary type=\"json\" schema=\"summary\" description=\"A JSON object that combines both fields\" }}\n ","json_schemas":{"summary":{"type":"object","properties":{"is_icp_fit":{"type":"boolean","description":"A boolean flag indicating if the user is a good ICP fit for us"},"reason":{"type":"string","description":"A text explanation of the decision process"}},"required":["is_icp_fit","reason"]}}}}}],"input":[{"id":"1","name":"John Doe","job_title":"Founder"},{"id":"2","name":"Jane Doe","job_title":"CTO","profile_headline":"CTO for a big tech company."}]}