Ask LLM Advance
Action ID: pml_llm
Description
Access advanced large language models with chat history support. This node provides sophisticated AI responses with conversation memory and customizable model selection.
Connection
PixelML Connection
The PixelML connection to use for the assistant.
True
pixelml
Input Parameters
human_message
string
✓
-
The prompt that is fed to the model. Max length: 640,000 characters
model
string
✓
-
The AI model to use to generate the response
system_message
string
-
-
System message that tells the model how to behave. Max length: 640,000 characters
chat_history_id
string
-
-
Chat history ID to retrieve conversation context. If not provided, a new chat history will be created
temperature
number
-
0.5
Temperature for response generation. Higher values result in more creative responses. Range: 0 to 1
How It Works
This node provides access to various large language models through PixelML's unified API with conversation memory capabilities. When you send a prompt, the node checks if a chat history ID is provided. If so, it retrieves previous conversation context and includes it with your new message. The selected AI model then processes your prompt along with the system message (which defines the AI's behavior) and chat history, generating a contextually relevant response. The node returns both the response content and a chat history ID for maintaining conversation continuity across multiple interactions.
Usage Examples
Example 1: Simple One-Time Query
Input:
Output:
Example 2: Multi-Turn Conversation
Input (Turn 1):
Output (Turn 1):
Input (Turn 2):
Output (Turn 2):
Example 3: Creative Content Generation
Input:
Output:
Common Use Cases
Conversational AI Applications: Build chatbots and virtual assistants with conversation memory across multiple exchanges
Content Generation: Create marketing copy, blog posts, product descriptions, and creative content with customizable tone
Code Assistance: Get programming help, code reviews, debugging suggestions, and technical explanations
Customer Support: Provide intelligent, context-aware responses to customer inquiries with conversation history
Data Analysis: Ask questions about data, get insights, and request follow-up analysis in a conversational manner
Document Summarization: Summarize long documents, articles, or reports with follow-up questions for clarification
Language Translation: Translate text with context preservation and ability to refine translations through conversation
Error Handling
Empty Prompt
human_message field is empty or null
Provide a valid prompt in the human_message field
Invalid Model
Model identifier doesn't exist or isn't available
Check PixelML documentation for available model names
Invalid Chat History ID
Chat history ID doesn't exist or has expired
Start a new conversation without chat_history_id or verify the ID is correct
Message Too Long
human_message or system_message exceeds 640,000 characters
Shorten your message or split it into multiple requests
Invalid Temperature
Temperature outside 0-1 range
Set temperature between 0 (deterministic) and 1 (creative)
Rate Limit Exceeded
Too many requests sent in short time period
Implement delays between requests or upgrade your PixelML plan
PixelML Connection Error
Invalid or missing PixelML API credentials
Verify your PixelML connection is properly configured with valid API key
Notes
Chat History Management: Save the chat_history_id from responses to maintain conversation context in subsequent requests
System Message Impact: The system message shapes the AI's behavior and tone—be specific about the role and style you want
Temperature Control: Use low temperature (0.0-0.3) for factual, consistent responses; high (0.7-1.0) for creative, varied outputs
Model Selection: Different models have different strengths—GPT-4 for reasoning, Claude for long contexts, smaller models for speed
Context Windows: Be aware of model context limits when using long chat histories or system messages
Cost Optimization: Smaller, faster models cost less—use them for simple tasks and reserve larger models for complex reasoning
Conversation Expiry: Chat histories may expire after a period of inactivity, so handle expired IDs gracefully
Prompt Engineering: Well-crafted prompts with clear instructions and examples produce better results than vague requests
Output Parameters
content
string
The response content from the LLM
chat_history_id
string
The chat history ID for conversation continuity
Last updated
Was this helpful?