# Create View

<span class="rvts6">The following example shows how to create a view using the workflow interface:</span>

```python
voxelfarm_workflow.create_view(vf, request, 'Composite Difference', None, 'lambdas/view-terrain-composite-difference.py', 
{
    'previous_surface_id' : f'{previous_terrain_id}',
    'current_surface_id' : f'{voxel_terrain_id}',
    'non_mining_surface_id' : f'{active_hist_surf}',
    'nat_surface_id' : f'{active_nat_surf}',
}, {})
```