

# Best Practices for the SageMaker Data Agent


Be specific about your data sources  
Good: *"Calculate total sales by region from the sales\$1transactions table"*  
Less effective: *"Show me sales data"*

Specify desired output format  
Good: *"Create a bar chart showing top 10 products by revenue with labels"*  
Less effective: *"Visualize product performance"*

Provide context for multi-step workflows  
Good: *"Using the customer segments @customer\$1segment, calculate average lifetime value for each segment"*  
Less effective: *"Calculate lifetime value"*