Some scientists are working on a liquid metal which could take preprogrammed forms:

Terminator style liquid robot may not be too far off | Science! | Geek.com