Xml sitemap and robot texts

Ive recently been asked to add a robot txt file & an xml sitemap to improve the crawlability of the site. But i need clarification please, i know what each is for but why do i need both of them? Second guessing i summise the robot txt file is to tell the search engine where the sitemap is or to block certain pages from being indexed. Does this make sense?

Thanks in advance :slight_smile:

Xml Site map and robots.txt both plays important role in SEO and its helps in Visibility in Search Engine …and you are doing right…definite it make sense u can restrict what u want …