# iOS (Swift / Objective-C)

### What is Install Mobile App Chatbot (iOS)?

The **iOS Mobile App Chatbot installation** allows you to embed your BotPenguin chatbot directly into an iOS application using a native **WKWebView** setup. This enables real-time, in-app conversations and automated support for iOS users without redirecting them outside your app.

***

### Benefits of Install Mobile App Chatbot (iOS)

* 📱 Enables native chatbot experience inside iOS apps
* 🤖 Provides instant automated customer support
* ⚡ Lightweight integration using WKWebView
* 🔐 Secure and seamless in-app communication
* 🛠️ Flexible installation with developer or support assistance

***

### How to Use Install Mobile App Chatbot (iOS)

Follow the steps below to successfully integrate the chatbot into your iOS application.

***

1. Click on Bots from the Left menu and select the bot.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FZmLdcxPFEodJeMreFAKp%2Fimage.png?alt=media&#x26;token=8567c327-344f-495d-9263-8d311c493803" alt=""><figcaption></figcaption></figure>

2. Now click on **“Install Your Chatbot.”**

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FnySbpv3zBrItfl8rgo6L%2Fimage.png?alt=media&#x26;token=940db384-ae93-4dd1-9f6d-a82ab555c4e3" alt=""><figcaption></figcaption></figure>

3. Select the **“Mobile App Chatbot”** tab.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FVHbmaFIDCqMPsocCXEdf%2Fimage.png?alt=media&#x26;token=415b1707-4072-42a9-985b-ef27ae703e1d" alt=""><figcaption></figcaption></figure>

4. Select the IOS Platform.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2Fi9yhiKYwuJbvTgpWKM7o%2Fimage.png?alt=media&#x26;token=60828884-f68d-4b09-95ae-4dad924e0aab" alt=""><figcaption></figcaption></figure>

***

#### 1. Copy the Installation Code

* a. Under **“Get Chatbot Installation Code”**, review the provided iOS code snippet.
* b. Click **“Copy”** to copy the complete code.

> This code uses **WKWebView** to load and display your chatbot inside the iOS app.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FyqxCmuSPVlDjD1fDeaci%2Fimage.png?alt=media&#x26;token=548ef0ad-02d1-4270-a664-b36fab4d333a" alt=""><figcaption></figcaption></figure>

***

#### 3. Add Code to Your iOS App

* Open your iOS project in Xcode.
* Paste the copied code into the ViewController where you want the chatbot to appear.
* Ensure `WKWebView` permissions are enabled in your project settings.

***

#### 4. Share Code with Your Developer (Optional)

* Enter the developer’s email address in the **“Share Installation Code”** section.
* Click **“Send Email”** to share the integration code instantly.

***

#### 5. Request BotPenguin Installation Support (Optional)

* Click **“Help me in Installing ChatBot”** if you want BotPenguin’s support team to handle the installation for you.
* Submit the request and our team will assist you.

***

Once completed, the chatbot will be live inside your iOS app and ready to interact with users.

***

🎉 **Congratulations, you have successfully completed this section! You're one step closer to mastering BotPenguin.**

***

### FAQ's

Here are some common questions asked regarding training with FAQ's:

<details>

<summary>What iOS versions are supported for chatbot installation?</summary>

BotPenguin supports modern iOS versions that allow WKWebView integration.

</details>

<details>

<summary>Do I need Swift knowledge to install the chatbot?</summary>

Yes, basic Swift or iOS development knowledge is recommended to add the code correctly.

</details>

<details>

<summary>Can I install the chatbot in multiple screens of my app?</summary>

Yes, you can reuse the chatbot code in multiple ViewControllers as needed.

</details>

<details>

<summary>Is the chatbot loaded using a web view?</summary>

Yes, the chatbot is embedded using WKWebView for a seamless in-app experience.

</details>

<details>

<summary>Can BotPenguin install the chatbot for me?</summary>

Yes, you can click **“Help me in Installing ChatBot”** to request installation support.

</details>

<details>

<summary>Will chatbot installation affect app performance?</summary>

No, the integration is lightweight and optimized for smooth performance.

</details>

***

### Support

If you still have questions for our team, write to us at [**support@botpenguin.com**](mailto:support@botpenguin.com). We’ll get back to you within 48 hours.
