Outcode User Guide
Developers GuideSales Contacts
English
English
  • WHAT IS OUTCODE?
    • Introduction
    • Getting Start
    • FAQ (3 Minutes)
    • Differences
  • Apps
    • API
      • Actions
        • HTTP Request
      • Trouble Shootings
    • JavaScript
      • Actions
        • Function Execution
      • Trouble Shootings
    • Data Source
      • MySQL
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • PostgreSQL
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • MongoDB
        • Connection
        • Actions
          • Find Documents
          • Aggregation
          • Insert Single Document
          • Update Single Document
          • Delete Single Document
        • Trouble Shootings
      • Airtable
        • Connection
        • Actions
          • Webhook trigger
          • Insert a row
          • Get rows
          • Update a row
        • Trouble Shootings
      • Firebase Realtime Database
        • Connection
        • Actions
          • Insert a document
          • Get documents
          • Update a document
          • Delete a document
      • Google Sheets
        • Connection
        • Actions
          • Insert a row
          • Get rows
          • Delete a row
      • SQL Server (MS-SQL)
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • MariaDB
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • Amazon Redshift
        • Connection
        • Actions
          • Query Execution
          • Get Query Status
          • Get Query Results
        • Trouble Shootings
      • Oracle Database
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • Redash
        • Connection
        • Actions
          • Create a query
          • Update a query
          • Delete a query
          • Get query result
          • Create a query job
          • Get a job result
          • Get query result by query result ID
        • Trouble Shootings
      • Microsoft Office365 Excel
        • Connection
        • Actions
          • Get rows
        • Trouble Shootings
      • CockroachDB
        • Connection
        • Actions
          • Query
        • Trouble Shootings
      • Redis
        • Connection
        • Actions
          • Get all keys
          • Get value by key
          • Search a key
          • Save the key
          • Save the key with set expiration
          • Append
          • Get exists key result
          • Get expiration count of key
          • Decrease the value
          • Increase the value
          • Delete a key
          • Flush all
    • Mail
      • SendGrid
        • Connection
        • Actions
          • Sends an Email
      • Amazon SES (Simple Email Service)
        • Connection
        • Actions
          • Sends an Email
        • Trouble Shootings
      • Gmail
        • Connection
        • Actions
          • Sends an Email
      • Stibee
        • Connection
        • Actions
          • Send Email by Trigger
          • Add a Subscriber
          • Remove a Subscriber
          • Unsubscribe a Subscriber
          • Assign the Subscriber to a Group
          • Release the Subscriber from a Group
      • Mailchimp
        • Connection
        • Actions
          • Campaign Delivery
          • Adds or Updates a Subscriber
          • Deletes a Subscriber
      • Mandrill (Mailchimp Transactional)
        • Connection
        • Actions
          • Sends an Email
          • Template Delivery
      • Mailgun
        • Connection
        • Actions
          • Sends an Email
      • Microsoft Office365 Outlook
        • Connection
        • Actions
          • Retrieves Messages from Mailfolder
          • Sends an Email
    • Message
      • Slack
        • Connection
        • Actions
          • Send a Message to Channel
          • Send a Direct Message to User
      • Microsoft Teams
        • Connection
        • Actions
          • Post a Message
      • Jandi
        • Connection
        • Actions
          • Send a Message
      • Twilio
        • Connection
        • Actions
          • Sends a SMS
      • OneSignal
        • Connection
        • Actions
          • Send message by segment
      • Solapi
        • Connection
        • Actions
          • Sends a SMS
          • Sends a LMS
          • Sends a MMS
          • Sends a Kakao Alimtalk
          • Sends a Kakao FriendTalk
          • Sends a Kakao FriendTalk (Button Type)
          • Retrieve Sending History
          • Retrieve Blacklist
        • Trouble Shootings
      • Lark
        • Connection
        • Actions
          • Send a text message via Custom Bot
          • Send a interactive message via Custom Bot
      • Discord
        • Connection
        • Actions
          • Guild (Server)
            • Get Bot Guilds
            • Get Guild Channels
            • List Guild Members
            • Search Guild Members
            • Get Guild Roles
            • Add Guild Member Role
            • Remove Guild Member Role
            • Get Guild Bans
            • Create Guild Ban
            • Remove Guild Ban
          • Message
            • Create Channel Message
            • Create Direct Message
          • Guild Scheduled Event
            • List Scheduled Events for Guild
            • Create Guild Scheduled Event
            • Get Guild Scheduled Event Users
    • Productivity
      • Google Calendar
        • Connection
        • Actions
          • Get Events
          • Insert a Event
      • Naver Open API
        • Connection
        • Actions
          • Retrieves News
          • Retrieves Trend Index
          • Retrieves Blog Posts
      • Typeform
        • Connection
        • Actions
          • Webhook Trigger
          • Retrieve Responses
      • Calendly
        • Connection
        • Actions
          • Webhook Trigger
          • Create a Single Link
      • Octoparse
        • Connection
        • Actions
          • Get Data by Offset
      • Microsoft Excel (.xlsx File)
        • Connection
        • Actions
          • Get Rows
      • Naver works
        • Connection
        • Actions
          • Retrieves Mails
          • Sends Email
          • Send a Message To Channel
          • Send a Direct Message To User
      • Notion
        • Connection
        • Actions
          • Retrieves Rows
          • Retrieves Rows with Filter
          • Create a Row
          • Update a Row
      • Korea Data API Center
        • Connection
        • Actions
          • FSC API
          • Others API
      • Microsoft OneDrive
        • Connection
        • Actions
          • Retrieves Files
      • Jira Cloud
        • Connection
        • Actions
          • Get Issues by Project
          • Get Issues by Board
          • Get Issues by Sprint
          • Create Issue
          • Create Issue Comment
          • Edit Issue
          • Delete Issue
      • Webflow
        • Connection
        • Actions
          • Get Form Responses
      • Modusign
        • Connection
        • Actions
          • Get Documents
          • Get Templates
          • Request Sign Using a Template
          • Request Send a Reminder
          • Cancel a Sign Request
          • Change Signing Due
        • Trouble Shootings
      • Google Analytics 4
        • Connection
        • Actions
          • Run Report
          • Realtime Report
      • Google Tasks
        • Connection
        • Actions
          • Get Tasklists
          • Create a Tasklist
          • Update a Tasklist
          • Delete a Tasklist
          • Get Tasks
          • Create a Task
      • Google Forms
        • Connection
        • Actions
          • Get Form Responses
      • Microsoft To Do
        • Connection
        • Actions
          • Tasklist
            • Create a Tasklist
            • Get Tasklists
            • Update a Tasklist
            • Delete a Tasklist
          • Task
            • Get Tasks
            • Create a Task
            • Update a Task
            • Delete a Task
          • Checklist
            • Get Checklist
            • Create a Checklist Item
            • Update a Checklist Item
            • Delete a Checklist Item
      • RSS
        • Connection
        • Actions
          • Get RSS Feed
    • SNS
      • LinkedIn
        • Connection
        • Actions
          • Post a Text Article
          • Post a Share Article
    • Advertisement
      • Meta(Facebook) Business Center
        • Connection
        • Actions
          • Get Leads
          • Ad Account Insights
          • Campaign Insights
          • Adset Insights
          • Ad Insights
        • Trouble Shootings
      • NAVER Search Ads
        • Connection
        • Actions
          • Campaign Stats
          • Adgroup Stats
          • Keyword Stats
          • Criterion Stats
      • Kakao Keyword Ads
        • Connection
        • Actions
          • View report on ad accounts
          • View reports on campaigns
          • View reports on ad groups
          • View reports on keywords
          • View reports on creatives
        • Trouble Shootings
      • Kakao Moment
        • Connection
        • Actions
          • View report on ad account
          • View reports on campaigns
          • View reports on ad groups
          • View reports on creatives
        • Trouble Shootings
      • Google Ads
        • Connection
        • Actions
          • Campaign Insights
          • Ad Group Insights
          • Ad Group Ad Insights
          • GAQL Execution
    • ERP
      • ECOUNT ERP
        • Connection
        • Actions
          • New Customer/Vendor
          • New Item
          • New Purchase
          • New Quotation
          • New Sales
          • New Sales Order
          • Invoice II Auto Journal (Sales)
          • Invoice II Auto Journal (Purchase)
      • Pipedrive CRM
        • Connection
        • Actions
          • Activity
            • Get all activities assigned to a particular user
            • Add an activity
            • Delete an activity
          • Deals
            • Get all deals
            • List participants of a deal
            • List products attached to a deal
            • Add a deal
            • Duplicate deal
            • Add a participant to a deal
            • Add a Product To a Deal
            • Update a deal
            • Delete a deal
            • Delete a participant from a deal
            • Delete an attached product from a deal
          • Leads
            • Get all leads
            • Add a lead
            • Update a lead
          • Organizations
            • Get all organizations
            • Add an organization
            • Delete an organization
            • List mail messages associated with an organization
            • List followers of an organization
          • Persons
            • Get all persons
            • List products associated with a person
            • Add a person
            • Delete a person
          • Products
            • Get all products
            • Get deals where a product is attached to
            • List followers of a product
            • Add a product
            • Update a product
            • Delete a product
    • Commerce
      • Woo Commerce
        • Connection
        • Actions
          • Create a Coupon
          • List All Coupons
          • Update a Coupon
          • Delete a Coupon
          • Create a Customer
          • List All Customers
          • Update a Customer
          • Delete an User
          • List All Orders
          • Create a Product
          • List All Products
          • Update a Product
          • Duplicate Product
          • Delete a Product
          • Retrieve Sales Report
      • Imweb
        • Connection
        • Actions
          • Get All Coupons
          • Get All Inquires
          • Post a Inquiry Answer
          • Get All User
          • Get All Orders
          • Get All Products
          • Get All Reviews
    • AI
      • OpenAI API (ChatGPT)
        • Connection
        • Actions
          • Chat
            • Create Chat Completion
            • Get Chat Completion
            • Get Chat Messages
            • Get List Chat Completions
            • Update a Chat Completion
            • Delete a Chat Completion
          • Embedding
            • Create Embeddings
          • Moderation
            • Create Moderation
      • Anthropic (Claude)
        • Connection
        • Actions
          • Messages
          • Count Message Token
      • Google Gemini
        • Connection
        • Actions
          • Text Generation
          • Text Generation (Extended)
          • Counting Tokens
          • Embeddings
      • Perplexity
        • Connection
        • Actions
          • Chat Completions
      • xAI (Grok)
        • Connection
        • Actions
          • Chat completions
          • Get deferred chat completions
          • Tokenize text
  • Automation
    • Getting Start
    • Tips
      • Reference value assignment
      • How to use references
    • Running the app
      • Manual Execution Button
      • Schedule
    • Add Filters
      • Text, URL Filter
      • Number, Percentage, Currency Filter
      • Datetime Filter
    • Transform Type (Optional)
      • Text
      • Number
      • Percentage
      • Datetime
      • Currency
      • URL
  • Dataflow
    • Getting Start
    • Quickstart Guide
    • Reference value assignment
    • How to use
      • Manual Execution
      • Schedule
      • Webhook
  • Settings
    • Organization & Team
    • Run Count & Run History
    • Schedule Management
  • FAQ & Policy
    • Email Change Request
    • Pricing & Subscription Cancellation
    • Roles & Management
    • Secure Policies
      • Access Controls
      • Privacy Policy
      • Security Methods
Powered by GitBook
On this page
  • User Interface
  • How to make messages?
  • Message Context Example:
  • What is Metadata?
  • Example:
  • What is Logic Bias?
  • Example:
  • What is JSON Schema?
  • Example:
  • What is Tools?
  • Example:
  • What is Tool Choice?
  • Options:
  • Response Datas

Was this helpful?

  1. Apps
  2. AI
  3. OpenAI API (ChatGPT)
  4. Actions
  5. Chat

Create Chat Completion

Last updated 25 days ago

Was this helpful?

User Interface

Field
Description
Comment

Model

Select GPT Model

Messages

A list of messages comprising the conversation so far.

Refer to "How to make messages?" section below this page.

Store

Default: false

Reasoning Effort

low, medium(default), high o-series models only

Metadata

Set of 16 key-value pairs that can be attached to an object. (Optional)

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters. Refer to "What is Metadata?" section below this page.

Frequency penalty

An optional parameter that controls repetition of the same words or phrases. (Optional)

Allow Range : -2.0 ~ 2.0 (Default : 0)

Logic bias

Modify the likelihood of specified tokens appearing in the completion.

(Optional)

Refer to "What is Logic Bias?" section below this page.

Max Completion Tokens

N

The number of responses to generate per request. (Optional)

A positive integer (default is 1)

Precense penalty

A parameter that encourages the model to explore topics not previously mentioned. (Optional)

Allow Range : -2.0 ~ 2.0 (Default : 0)

Response Type

Select Response Type (Optional)

  • Text: Returns the response as a plain string (Default)

  • JSON Object: Returns the response as a JSON object

  • JSON Schema: Returns the response in the specified JSON Schema format

JSON Schema

Setting to receive the response as a desired JSON object. (Optional)

Required when specifying the response data type as JSON Schema. Refer to "What is JSON Schema?" section below this page.

Service Tier

Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service (Optional)

  • Auto(Default)

  • Default

Stop

Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence. (Optional)

Use commas (,) to separate multiple settings Example: stop,halt

Temperature

A parameter that controls randomness during the model's response generation (Optional).

Allow Range : 0.0 ~ 2.0 (Default 1)

Top P

Limits sampling to only the top-p portion of the probability distribution during response generation. (Optional)

Allow Range : 0.0 ~ 1.0 (Default 1)

Tools

Specifies the list of functions the model is allowed to call (Optional).

Refer to "What is Tools?" section below this page.

Tool Choice

Optional setting to determine whether the model should call a tool. (Optional)

Refer to "What is Tool Choice?" section below this page.

Tool Choice Option

Setting to enable or disable parallel tool calls. (Optional)

None (default) Yes No

User

Setting to assign a unique ID for identifying the end user. (Optional)

How to make messages?

The message content is structured as an array of message objects, and each message follows the format below.

Key
Description
Comment

content

Message Content

role

Message Role

  • system: Defines the purpose or behavior of the AI model for the conversation.

  • user: Represents the message or question sent by the user to the AI—this is the actual input the AI should respond to.

  • assistant: Represents the AI model’s response to the user’s input.

  • developer: Provides additional information to the AI model from the developer.

Message Context Example:

[
  {
    "role": "system",                          // Defines the nature of the conversation
    "content": "You assist users in creating workflows."
  },
  {
    "role": "assistant",                       // AI's sample response
    "content": "Hello! How can I help you today?"
  },
  {
    "role": "user",                            // User request to the AI
    "content": "Could you explain what an automation workflow is, in English?"
  },
  {
    "role": "developer",                       // Developer's instruction to guide the conversation
    "content": "The user wants an explanation of a workflow in English. Please translate accordingly."
  }
]

What is Metadata?

A field provided to allow users to store additional information related to the API request.

Example:

{
  "user_id": "c2453689-9888-4222-b870-fb36cbd8fa93" // Identified by an opaque identifier.
}

What is Logic Bias?

A feature that allows you to forcibly adjust the probability of specific words (or tokens) appearing.

Example:

// To increase the likelihood of the word "Cat" appearing more often
// The token ID for "Cat" is 9240
{
    "9240": 50
}
// Value range: -100 to 100
// Positive values increase repetition of the word
// Negative values suppress or block the word

What is JSON Schema?

A setting that emphasizes the model to respond in a specific JSON format.

Example:

{
  "type": "json_schema",
  "json_schema": {
    "type": "object",
    "properties": {  // Defines the structure and data types of the response
      "temperature": { "type": "number" },
      "condition": { "type": "string" },
      "humidity": { "type": "integer" },
      "city": { "type": "string" }
    },
    "required": ["temperature", "condition", "city"] // Specifies required fields in the response
  }
}


// Example response based on the defined JSON Schema: 
{
  "temperature": 12.5,
  "condition": "Sunny",
  "humidity": 60,
  "city": "Seoul"
}

What is Tools?

A feature that allows the model to call specific functions. In other words, the model can generate JSON directly to invoke APIs or interact with external systems.

Example:

// Example tool setup to allow the model to fetch current weather for a specific city

[
  {
    "type": "function",
    "function": {
      "name": "get_weather",
      "description": "Fetches the current weather for a specific city.",
      "parameters": {
        "type": "object",
        "properties": {
          "city": { "type": "string", "description": "Name of the city to retrieve the weather for" },
          "unit": { "type": "string", "enum": ["metric", "imperial"], "description": "Temperature unit (metric = Celsius, imperial = Fahrenheit)" }
        },
        "required": ["city"]
      }
    }
  }
]


// Example output in a conversation using the tool

{
  "model": "gpt-4-turbo",
  "messages": [
    { "role": "system", "content": "You are an AI that provides weather information." },
    { "role": "user", "content": "Tell me the weather in Seoul." },
    {
      "role": "tool",
      "tool_call_id": "123456",
      "name": "get_weather",
      "arguments": {
        "city": "Seoul",
        "unit": "metric"
      }
    },
    {
      "role": "assistant",
      "content": "The current weather in Seoul is clear, with a temperature of 12°C."
    }
  ]
}

What is Tool Choice?

An option that determines how the model chooses to use a tool.

Options:

Option
Description

auto

The model will call the tool if needed, and will not call it if unnecessary. (Default setting)

none

The model will never call a tool. Only text responses are allowed.

required

The model must call at least one tool.

{ "type": "function", "function": { "name": "my_function" } }

Forces the model to call a specific tool (my_function).


Response Datas

Key
Description

id

Unique identifier of the response request

object

The type of the response object, indicating a conversational reply from GPT.

created

The Unix timestamp (in seconds) when the response was generated.

model

The name of the GPT model used to generate the response.

system_fingerprint

A unique system fingerprint used for internal logging and tracking.

choices[].index

The index of the response, used to distinguish between multiple responses in a single request.

choices[].message.role

The role of the entity that generated the message.

choices[].message.content

The content of the generated response.

choices[].message.refusal

Indicates whether the request was denied.

choices[].logprobs

Log probabilities used during response generation.

choices[].finish_reason

The reason why the response generation was stopped.

usage.prompt_tokens

The number of tokens used in the input prompt.

usage.completion_tokens

The number of tokens used in the generated response (completion).

usage.total_tokens

The total number of tokens used, including both the input prompt and the generated response.

usage.prompt_tokens_details.cached_tokens

The number of cached prompt tokens.

usage.completion_tokens_details.reasoning_tokens

The number of tokens used for reasoning during response generation.

usage.completion_tokens_details.accepted_prediction_tokens

The number of predicted tokens accepted by the model during response generation.

usage.completion_tokens_details.rejected_prediction_tokens

The number of predicted tokens rejected by the model during response generation.

Whether or not to store the output of this chat completion request for use in our or products.

Constrains effort on reasoning for . (Optional)

An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and . (Optional)

model distillation
evals
reasoning models
reasoning tokens