Latitude icon

Latitude

Execute AI prompts and manage logs with the Latitude.so platform. Run prompts, chat, and create logs.

Actions3

Log → Create

AI-generated

Summary

Creates a log entry on Latitude associated with a prompt path, recording conversation messages and an optional AI response.

Inputs

  • promptPath (required) — The prompt to associate this log with. Loaded via getPrompts; value must match a prompt path in the project.
  • messagesUi (required) — The conversation messages to log. At least one message with content is required; each message includes a role (user/assistant/system) and content string.
  • response — The AI-generated response text from the model (optional). If omitted, an empty object is sent to the SDK.

Output shape

json

The raw SDK result from Latitude's logs.create endpoint, reflecting the created log entry. Returned as the node's JSON output item.

Examples

Example 1: Log a user message with an AI response

Prompt Path: my-project/main-prompt; Messages: [role=user, content=Hello!]; Response: The model said hi back.

Discussion