# MyOwnConference

* [How to set up the connection](#how-to-set-up-the-connection)&#x20;
* [How to search webinars](#how-to-search-webinars)&#x20;
* [How to check if a user is present in an active webinar](#how-to-check-if-a-user-is-present-in-an-active-webinar)&#x20;
* [How to get user history data](#how-to-get-user-history-data)&#x20;
* [How to check if a user is in the list of all participants](#how-to-check-if-a-user-is-in-the-list-of-all-participants)&#x20;
* [How to create a participant](#how-to-create-a-participant)&#x20;
* [How to register a participant to a webinar](#how-to-register-a-participant-to-a-webinar)

## How to set up the connection

First you need to get the **API key**. You can find it in the **Profile** section in your **personal account** on [MyOwnConference ](https://myownconference.com)

![](https://lh4.googleusercontent.com/qewIXxHvrxD2EAzu6Z5ehv4mFsludab5f3HoaPqXZcJdSJsrGux40sRFhPoileMKMK0SbSkBm2NZYHPdVmmOnUCm4OyVb4X82iVhdoxis22p_RfmV4CgTg1V9WcxsTRcit2NzS8WeN2sDn2kaA)

After copying the key, open **Settings -> Project constants** on Salebot and paste it in the variable **myownconference\_api\_key**:

![](https://lh3.googleusercontent.com/VrwGM1wYrbl0E-5sLigjuV8gDIOiF9GY9KoZEkAN3KL-QMdzGlZP9_39wXnO2aWGMfZvRIGAFQrePwl9xJrbIgPcAmhmOYTUsHxj5idKCHz3NdAUk1RQAj6MKgjLDOYN6C4ah13atFWQ8W8dcw)

{% hint style="warning" %}
Each function returns a dictionary that has a parameter **status**; its value can be 0 and 1.

If status=1 then the request in MyOwnConference cam through successfully and the parameter **result** will hold the request result, like:

{'status': '1', 'result': \[{'name': 'Super web', 'alias': 'csml-sjgf-cnjp-clkw', 'start': '2022-02-12 00:00:00'}]}

or the request came through successfully, but nothing was found:

{'status': '1', 'result': \[]}

If status=0 then there’s a problem and the description will be held in **error**, like:

{"status":"0","error":"Webinar with alias "wenk-gjkc-teqp-nteh" not active"} {'status': '0', 'error': 'Missing required variables - email'}
{% endhint %}

## How to search webinars

The function **myownconference\_find\_webinars(date, status)** is used for searching webinars, where

**date** - the date in the dd.mm.yyyy - choosing webinars for a specific date \
**status** - value 1 - active or future webinars, 0 - finished&#x20;

**myownconference\_find\_webinars()** - returns the array of all found webinars

The function returns a dictionary of this kind:

**If successful (example):**

{'status': '1', 'result': \[{'name': 'Super web', 'alias': 'csml-sjgf-cnjp-clkw', 'start': '2022-02-12 00:00:00'}]}

**If unsuccessful (example):**

{"status":"0","error":"Format not supported or date is not valid. Params must be yyyy-mm-dd"}

## How to check if a user is present in an active webinar

The function **myownconference\_is\_online\_user(webinar\_id, email)**, where:

**webinar\_id** - the webinar’s id, or, in other words, the value “alias” from the request when searching the webinar \
**email** - the user’s email address, if it doesn’t get shared, then an email from the variable email is used, if there is one

**The result if the function was successful:**

{"status":"1","result":true} - the user is present at this moment in the webinar {"status":"1","result":false} - the user isn’t present

**The result if there was an error in the request:**

{"status":"0","error":"Webinar with alias "serg-dhpq-mznf-fwcb" not active"}

## How to get user history data

The function **myownconference\_history\_user(webinar\_id, email)**, where

**webinar\_id** - the webinar’s id, or, in other words, the value “alias” from the request when searching the webinar \
**email** - the user’s email address, if it doesn’t get shared, then an email from the variable email is used, if there is one

**The result if successful:**

In the parameter result there will be an array with user data

{'status': '1', 'result': \['John Smith', '<exam@gmail.com>', 'ua', '12:02:45', '12:12:15', 'G', '28%']} {"status":"1","result":false} - the user wasn’t found

**In case of failure:**

{'status': '0', 'error': 'Missing required variables - email'} - the email wasn’t shared and wasn’t found in the email variable

**An example of the request and getting the name of the user:**

![An example of the request to get user history data](https://lh5.googleusercontent.com/LWvIPgOAPRyggrudssJD_1ZJL3h8hJc5b4fIav5aWF4pz-xDsOjd_5DFHyjDMdghvewx3yL3aafk5JmQUOXFWoC8FHXngtVjiWvTyzuMLClENzB6DSq6NU_7EYnG9WiPDzgDX89rUVGUESdDmw)

![An example of the request result](https://lh5.googleusercontent.com/eFiI-RaFUIobEYPLEM7bPhvRw9mVWDlQY8aUIBHeXdALhduhhLAtZZlKODW3X-MJQSJYHI2KQk41sYzi1X824pliAy2bgrCnHgWcBMDVV50RLGIvE1a3u2L34DmKl6qsIa2nYXv-zd17Ua2_aA)

## How to check if a user is in the list of all participants

The function **myownconference\_is\_our\_user(email)**, where:

**email** - the user’s email address, if it doesn’t get shared, then an email from the variable email is used, if there is one

**The result if successful:**

{"status":"1","result":true} - the user is in your database {"status":"1","result":false} - there is no such user in your database

**If unsuccessful:**

{'status': '0', 'error': 'Missing required variables - email'} - the email wasn’t shared and wasn’t found in the email variable

## How to create a participant

This function adds a webinar participant to the list of all users. After the successful creation this user can be registered to a webinar (more on that below)

The function **myownconference\_add\_user(email)**, where:

**email** - the user’s email address, if it doesn’t get shared, then an email from the variable email is used, if there is one

**The result if successful:**

{"status":"1","result":true} - the user was added to your list of all participants

**If unsuccessful:**

{'status': '0', 'error': 'Missing required variables - email'} - the email wasn’t shared and wasn’t found in the email variable.

## How to register a participant to a webinar

It’s mandatory to ask the client their email for the registration to happen. Anything else is optional.

The function **myownconference\_add\_user\_to\_webinar(webinar\_id, email)**, where

**webinar\_id** - the webinar’s id, or, in other words, the value “alias” from the request when searching the webinar \
**email** - the user’s email address, if it doesn’t get shared, then an email from the variable email is used, if there is one

**The result if successful:**

{"status":"1","result":true} - the user was registered to the webinar

**If unsuccessful:**

{"status":"0","error":"Webinar with alias "serg-dhpq-mznf-fwcb" not active"}


---

# 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.mavibot.ai/integrations/other/infobusiness/myown.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.
