# How to send data to chatbot via Javascript

1. Install chatbot script on your website.
2. Use the code similar to the given below which must be placed after the above script.

```
iticks.call('identify', {
    name:'Name', 
    email:'email@yopmail.com', 
    phone:'+919876543210',
    customField:'value'
})
```

None of the fields are required. name, email and phone has special meaning and they are set to the user's name, email, and phone fields. Other fields are saved as custom profile fields of the user who is browsing currently.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intelliticks.com/how-to/how-to-send-data-to-chatbot-via-javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
