Crossplay Integration Kit
Chat Interface

Context Attachments

Attach Blueprint nodes and assets to your prompts

Context attachments let you include specific information from your project in your prompts, giving the AI precise context about what you're working with.

Attachment Types

Blueprint Nodes

Attach specific nodes from a graph:

  1. Open a Blueprint graph
  2. Select one or more nodes
  3. Right-click > Attach to Agent Prompt
  4. The nodes appear in the attachment indicator

The attachment includes:

  • Node type and name
  • All pin values
  • Connected nodes
  • Relevant context

Blueprint Overview

Attach an entire Blueprint's structure:

  1. In Content Browser, right-click a Blueprint
  2. Select Attach to Agent Prompt

The attachment includes:

  • Variables list
  • Components hierarchy
  • Functions and parameters
  • Event dispatchers

Images

Attach screenshots or textures:

  1. Right-click an image asset
  2. Select Attach to Agent Prompt

Useful for:

  • UI mockups
  • Reference images
  • Visual bug reports

Using Attachments

Viewing Attachments

The input area shows an attachment indicator:

  • Click to see attached items
  • Remove individual attachments
  • Clear all attachments

Sending with Attachments

When you send a message:

  1. Attachments are serialized to context
  2. Included at the start of your message
  3. AI receives full context

Example Workflow

1. Open BP_Enemy EventGraph
2. Select the TakeDamage function nodes
3. Right-click > Attach to Agent Prompt
4. Type: "Refactor this to use an event dispatcher"
5. Send

The AI sees:
- Your selected nodes and their connections
- The surrounding context
- Your instruction

Serialization Formats

Attachments are serialized for AI consumption:

Node Serialization

{
  "nodeType": "K2Node_CallFunction",
  "functionName": "TakeDamage",
  "pins": [
    {"name": "Amount", "type": "float", "value": "10.0", "connected": false},
    {"name": "ReturnValue", "type": "bool", "connected": true, "connectedTo": "Branch.Condition"}
  ]
}

Blueprint Overview

{
  "name": "BP_Enemy",
  "parentClass": "Character",
  "variables": [
    {"name": "Health", "type": "float", "default": "100.0"}
  ],
  "components": [
    {"name": "Mesh", "class": "SkeletalMeshComponent"}
  ]
}

Tips

  1. Be selective: Attach only relevant nodes, not entire graphs
  2. Combine with text: Explain what you want done with the attachment
  3. Use for debugging: Attach problematic nodes for analysis
  4. Reference images: Attach mockups for UI work
  5. Clear when done: Remove attachments after use to avoid confusion

On this page