# 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="/files/oa0b9xkyL2dQTEpvmNQK" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/217TVNbAGYBDZ983OBsj" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/tosxXPCy5D8zc0XnUpWK" alt=""><figcaption></figcaption></figure>

4. Select the IOS Platform.

<figure><img src="/files/WTV9SxVdclBg6DmeHS4x" 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="/files/0MuhwqOLGmrQBOhYJows" 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.


---

# 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://help.botpenguin.com/bots/website-mobile-app-bot/bot-setup-and-installation/install-your-chatbot/install-your-mobile-app-chatbot/ios-swift-objective-c.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.
