View as Markdown
Llama AI icon

Llama AI ACTION

Create Chat

Creates a new chat. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Llama AI account once, then configure and run Create Chat from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "llama_ai-create-chat",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    llama_ai: { authProvisionId: "apn_xxxxxxx" },
    messages: ["Messages"],
    functions: ["Functions"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Chat inputs
Property Type Description
messages Messages string[]
A collection of messages that form the ongoing conversation. Each message should be a JSON string.
Required
functions Functions string[]
A list of functions for which the model can generate JSON inputs. Each function should be a JSON string.
Optional
stream Stream boolean
When this option is enabled, the model will send partial message updates, similar to ChatGPT. Tokens will be transmitted as data-only server-sent events as they become available, and the streaming will conclude with a data: [DONE] marker.
Optional
functionCall Function Call string
This parameter governs the model's response to function calls. Choosing "none" indicates that the model will not invoke any functions and will respond directly to the end-user.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
llama_ai-create-chat
Version
0.0.2
App
Llama AI
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes