Automatically create shortcode using the post ID

<?php

add_filter( 'facetwp_builder_item_value', function( $value, $item ) {
    if ( 'el-z9v5wp' == $item['settings']['name'] ) {
        $shortcode = '[awts-total-sales product_id="' . $value . '" include_setting="true"]';
        $value = do_shortcode( $shortcode );
    }
    return $value;
}, 10, 2 );