# 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. Access the iOS Installation Screen

* Go to **“Install Your Chatbot”** from the bot dashboard.
* Click on **“Mobile App Chatbot”**.
* Select **“iOS”** as your mobile platform.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FM8njbCAv83NaBMjZfelt%2Fimage.png?alt=media&#x26;token=7f63ef37-e6d9-4945-bafe-ae3f85a0cd15" alt=""><figcaption></figcaption></figure>

***

#### 2. Copy the Installation Code

* Under **“Get Chatbot Installation Code”**, review the provided iOS code snippet.
* 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%2FuCJAaGLwVkFNFCGWQj4g%2Fimage.png?alt=media&#x26;token=e211b811-9a02-4dbd-9aea-8038f11a7541" 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.
