Automatically assign Contact Group

I think you fill find answer here

Best regards,
JF