# Chatflow Integration with target as localhost URL

**URL:** <https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [January 7, 2021, 1:23pm UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843 "2021-01-07T13:23:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBhanushali](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbhanushali/32/14727_2.png) [@JBhanushali](https://community.hubspot.com/u/JBhanushali)\
**Post date:** [January 7, 2021, 1:23pm UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843/1 "2021-01-07T13:23:13Z")

</div>

I am trying to use chatflow in my project and want to restrict chat dialog to a few URLs in localhost. Can you put some light on this and help me figure out how this can be achieved?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 8, 2021, 2:50am UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843/2 "2021-01-08T02:50:05Z")

</div>

Hey @JBhanushali

You would do this as you normally would target pages with chatflow. Just replace the domain with localhost/pathtofile

Check out this [knowledgebase article](https://knowledge.hubspot.com/chatflows/create-a-bot#2-target-decide-when-the-bot-should-appear)

---

<div class="post-metadata">

**Author:** ![AOatley](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@AOatley](https://community.hubspot.com/u/AOatley)\
**Post date:** [February 18, 2022, 6:36pm UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843/3 "2022-02-18T18:36:45Z")

</div>

Except if you try to add [http://localhost](http://localhost) it will not let you save and ask you to add a valid url

---

<div class="post-metadata">

**Author:** ![lrolstad](https://avatars.discourse-cdn.com/v4/letter/l/f6c823/32.png) [@lrolstad](https://community.hubspot.com/u/lrolstad)\
**Post date:** [June 9, 2022, 12:47pm UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843/4 "2022-06-09T12:47:02Z")

</div>

Did you managed to get this to work?

---

<div class="post-metadata">

**Author:** ![JMollerup](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@JMollerup](https://community.hubspot.com/u/JMollerup)\
**Post date:** [July 21, 2022, 6:57pm UTC](https://community.hubspot.com/t/chatflow-integration-with-target-as-localhost-url/29843/5 "2022-07-21T18:57:27Z")

</div>

I got this to work by using [http://www.localhost:[port\_number]/[path]](http://www.localhost)

hope it helps
