Skip to main content
Generate dynamic content at runtime using conversation context and AI.

Basic usage

AIField class

Create dynamic content with AI prompts:

Context available to AI

AIField prompts have access to:
  • Conversation history: Recent WhatsApp messages
  • Flow variables: User-defined variables
  • Flow events: Previous flow actions and results
  • Customer context: Phone number, channel info
  • Action context: Specific field being filled
Example prompt utilizing context:

Supported nodes

SendTextNode

SendTemplateNode

SendInteractiveNode

Best practices

Specific prompts

Context-aware prompts

Field-appropriate responses

Complete example

Requirements

  • provider_model_name required when using AIField
  • AI operations consume credits
  • Prompts have access to full conversation context
  • Generated content respects WhatsApp message limits